Skip to content
Permalink
Browse files

[For PhpStorm] How to find the global install of the language server …

…under Windows (#2582)

* Handholding to find the global install of the language server under Windows

* Hint about a 'proper' timeout for things like Laravel
  • Loading branch information
HenkPoley authored and muglug committed Jan 10, 2020
1 parent 2c7197a commit d22b13262fdd06a4a1eabd369c3d8b6adec6ba73
Showing with 2 additions and 2 deletions.
  1. +2 −2 docs/running_psalm/language_server.md
@@ -41,9 +41,9 @@ In the "Server definitions" tab you should add a definition for Psalm:
- Extension: `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` (on Windows use `vendor/vimeo/psalm/psalm-language-server`)
- Args: `vendor/bin/psalm-language-server` (on Windows use `vendor/vimeo/psalm/psalm-language-server`, or for a 'global' install '%APPDATA%' + `\Composer\vendor\vimeo\psalm\psalm-language-server`, where the '%APPDATA%' environment variable is probably something like `C:\Users\<homedir>\AppData\Roaming\`)

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.
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. For opening a couple of projects that use large PHP frameworks, on a high end business laptop, try `240000` milliseconds for Init.

## Sublime Text

0 comments on commit d22b132

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