Skip to content
Permalink
Browse files

Update PhpStorm usage (#2410)

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 1bc2bb6386e639a2f3faff0218b6050873121756
Showing with 3 additions and 2 deletions.
  1. +3 −2 docs/running_psalm/language_server.md
@@ -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.

0 comments on commit 1bc2bb6

Please sign in to comment.
You can’t perform that action at this time.