Skip to content

Commit

Permalink
Update PhpStorm usage (#2410)
Browse files Browse the repository at this point in the history
There is a new option that defaults to Artifact. It should be Executable.
Windows can't figure out that the PHP interpreter will run a shell script that then calls  PHP (not sure if this even works on Unix)
And added a PHP bin dir example for Wins
  • Loading branch information
leocavalcante authored and muglug committed Dec 4, 2019
1 parent a3e51d6 commit 1bc2bb6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/running_psalm/language_server.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,11 @@ When you install the plugin, you should see a "Language Server Protocol" section

In the "Server definitions" tab you should add a definition for Psalm:

- Select `Executable`
- Extension: `php`
- Path: `<path-to-php-binary>` e.g. `/usr/local/bin/php`
- Path: `<path-to-php-binary>` e.g. `/usr/local/bin/php` or `C:\php\php.exe`
- this should be an absolute path, not just `php`
- Args: `vendor/bin/psalm-language-server`
- Args: `vendor/bin/psalm-language-server` (on Windows use `vendor/vimeo/psalm/psalm-language-server`)

In the "Timeouts" tab you can adjust the initialization timeout. This is important if you have a large project. You should set the "Init" value to the number of milliseconds you allow Psalm to scan your entire project and your project's dependencies.

Expand Down

0 comments on commit 1bc2bb6

Please sign in to comment.