code-server: PHP Intelephense extension not working
code-serverversion: 1.31.1-100- OS Version: CentOS 7.6
- Extension: https://github.com/bmewburn/vscode-intelephense
Description
Error: Cannot find module 'vscode-languageserver'
at Module.r.require.e [as require] (/app/code-server:468:26234)
at Object.i.__awaiter.n (~/.code-server/extensions/bmewburn.vscode-intelephense-client-1.0.8/node_modules/intelephense/lib/intelephense.js:39:155362)
at n (~/.code-server/extensions/bmewburn.vscode-intelephense-client-1.0.8/node_modules/intelephense/lib/intelephense.js:39:113)
at Object.<anonymous> (~/.code-server/extensions/bmewburn.vscode-intelephense-client-1.0.8/node_modules/intelephense/lib/intelephense.js:39:147092)
at n (~/.code-server/extensions/bmewburn.vscode-intelephense-client-1.0.8/node_modules/intelephense/lib/intelephense.js:39:113)
at Object.i.__awaiter.n (~/.code-server/extensions/bmewburn.vscode-intelephense-client-1.0.8/node_modules/intelephense/lib/intelephense.js:39:146712)
[Error - 18:00:17] Connection to server got closed. Server will not be restarted.
Steps to Reproduce
Install the extension and open a php file.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 18 (6 by maintainers)
Works like a charm. Thanks!
@foresthoffman My man, nicely done
Ok now I’m pretty much 95% positive it is the paths that is the issue here. If you go in to the file requiring whatever, for example I was using shinn.stylelint to debug because the code isn’t minified.
Originally the error comes from
Then if you change that to an absolute path from your filesystem root, it will find that module and error our on the next relative path require it hits, I went on fixing 4 or 5 levels up of this til I was convinced this is the issue.
Hope it help, great project btw!
I deleted the complete .code-server folder and restarted the server. I’m still getting this error message: