-
Notifications
You must be signed in to change notification settings - Fork 185
The PHP Language Server server crashed 5 times in the last 3 minutes. The server will not be restarted. #381
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Could you give steps how to reproduce? |
I'm on a Symfony 3 project (api-platform based) on Windows, with PHP 7.0.16
With a new api-platform project it is working fine. I don't know if I have a bad php-language cache. How can I clear it ? |
I would attach a debugger, but I can't debug it without having the code that causes this. |
I'm getting the error because php-language server try to parse my node modules. The server starts if I remove my node_modules folder. |
Could we get the repository, or at least what node modules you have installed in that workspace? |
I can't give you the repository (private sources) but I can give you the package.json : {
"name": "api",
"private": true,
"dependencies": {
"aglio": "^2.3.0"
},
"devDependencies": {
"drakov": "^1.0.1",
"dredd": "^2.2.5"
}
} |
@alex-pex please see other issues with node_modules https://github.com/felixfbecker/php-language-server/issues?utf8=%E2%9C%93&q=node_modules |
#159 could fix my problem, given php intellisense should read files.exclude setting + php.excludeFiles (with {"**/node_modules": true"} by default). I'll post a comment on the related issue. |
Does this still happen with the newest version? |
Yes it does |
So this thread actually contains two errors, one is related to too long node_modules path and can be fixed by upgrading npm to >=3. Your original error not. Which one are you getting? I need code that I can reproduce the problem with (even if it's a set of dependencies), otherwise I am afraid I cannot look into this |
You're right : it's a different error now. I tried the same package.json on a vanilla api-platform project and the server runs. I'll try to build a fake project to show the error. |
I've found the issue : I was using a npm-shrinkwrap generated from an old npm version. With a new one (generated from npm@4) I don't have the issue. Do you still want project sources to see the previous issue, or do you consider this as SOLVED? |
Solved |
The PHP Language Server doesn't work anymore, I'm getting this error :
The text was updated successfully, but these errors were encountered: