live-php icon indicating copy to clipboard operation
live-php copied to clipboard

Doesn't work on linux on latest vscode

Open amcorp opened this issue 7 years ago • 3 comments

Doesn't work on linux on latest vscode

Installs fine, does not work (after issuing the start command)

amcorp avatar Jan 20 '19 21:01 amcorp

It's worked fine after using the latest VS code. My Linux OS environment information are as follows:

  • Ubuntu 16.04 image

Do you install the latest hugobot version? Do you install this extension? It needs this extension and you should set the "php.validate.executablePath" setting on settings.json.

peter279k avatar Jan 21 '19 03:01 peter279k

It does run, you need to edit the file after running the start command.

Every time you make a change, hugobot runs the file/script.

Michael-Stokoe avatar Jan 21 '19 11:01 Michael-Stokoe

g@1337:~$ uname -a Linux 1337 4.9.0-4-amd64 #1 SMP Debian 4.9.65-3+deb9u1 (2017-12-23) x86_64 GNU/Linux g@1337:~$ php -v PHP 7.0.30-0+deb9u1 (cli) (built: Jun 14 2018 13:50:25) ( NTS ) Copyright (c) 1997-2017 The PHP Group Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies with Zend OPcache v7.0.30-0+deb9u1, Copyright (c) 1999-2017, by Zend Technologies g@1337:~$ lsb_release -a No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux 9.6 (stretch) Release: 9.6 Codename: stretch

I have installed the latest hugobot and the extension you mention.

g@1337:~$ whereis php php: /usr/bin/php /usr/bin/php7.0 /usr/lib/php /etc/php /usr/share/php7.0-bcmath /usr/share/php7.0-mbstring /usr/share/php7.0-readline /usr/share/php7.0-common /usr/share/php7.0-mysql /usr/share/php7.0-opcache /usr/share/php7.0-json /usr/share/php7.0-xml /usr/share/man/man1/php.1.gz

and i've added to the usersettings:

{ "telemetry.enableTelemetry": false, "telemetry.enableCrashReporter": false, "php.validate.executablePath": "/usr/bin/php", "php.validate.run": "onType", "php.executablePath": "/usr/bin/php"

}

amcorp avatar Jan 21 '19 16:01 amcorp