HvyIndustries / crane

PHP Intellisense/code-completion for VS Code
https://hvy.io/crane
Other
240 stars 25 forks source link

The PHP Language Server server crashed 5 times in the last 3 minutes. The server will not be restarted. #362

Closed martinandersen3d closed 6 years ago

martinandersen3d commented 6 years ago

VS Code Windows 10 64 Pro

Anyone know how to fix?

Vs code > Output > Crane Language Server:


    throw err;
    ^

Error: Cannot find module './providers/workspaceSymbol'
    at Function.Module._resolveFilename (module.js:470:15)
    at Function.Module._load (module.js:418:25)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (C:\Users\Martin\.vscode\extensions\HvyIndustries.crane-0.3.8\server\server.js:17:27)
    at Object.<anonymous> (C:\Users\Martin\.vscode\extensions\HvyIndustries.crane-0.3.8\server\server.js:399:3)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
[Info  - 17:10:55] Connection to server got closed. Server will restart.
module.js:472
    throw err;
    ^```
nevadascout commented 6 years ago

Which version of VS Code do you have?

martinandersen3d commented 6 years ago

Latest version (autoupdate)

vscodeversion

martinandersen3d commented 6 years ago

okay found solution...

  1. in commandpromt cd directory and execute npm install in this dir: C:\Users\.vscode\extensions\HvyIndustries.crane-0.3.8

  2. Just uninstall and reinstall "php intellisence crane" inside vs-code.

This fix my issue:)

When did this happend? > Right after windows reinstall