phpactor: Indexing crashes the language-server with status 255.
I’m trying to use the language server with a laravel project using Emacs with eglot. Even though Emacs has phpactor.el it doesn’t work like I want to, and I want to use the language server for a more consistent experience. The problem is, when eglot starts the server it exits abruptly after idexing ~28% of the project (2000 files).
[eglot] Connected! Server `EGLOT (proyecto/php-mode)' now managing `php-mode' buffers in project `proyecto'.
[eglot] Server reports (type=3): Indexing "6974" PHP files
[eglot] Server reports (type=3): Indexed 500/6974 (7.17%)
[eglot] Server reports (type=3): Indexed 1000/6974 (14.34%)
[eglot] Server reports (type=3): Indexed 1500/6974 (21.51%)
[eglot] Server reports (type=3): Indexed 2000/6974 (28.68%)
[jsonrpc] Server exited with status 255
I tried running it with the tcp server and got [jsonrpc] Server exited with status 256 instead. It doesn’t say much as to the cause of the problem.
[INFO][347124.966710] OUT: {
"method": "window\/showMessage",
"params": {
"type": 3,
"message": "Indexed 1500\/6974 (21.51%)"
},
"jsonrpc": "2.0"
}
[INFO][347131.277387] OUT: {
"method": "window\/showMessage",
"params": {
"type": 3,
"message": "Indexed 2000\/6974 (28.68%)"
},
"jsonrpc": "2.0"
}
And here’s the output of phpactor status.
[pablo@pablo-pc proyecto]$ phpactor status
Version: 2403e25 (5 days ago) fix-phpactor-Status-use-the-configured-paths-1112
Filesystems: git, simple, composer
Working directory: /home/pablo/Prog/php/proyecto
Config files (missing is not bad):
✘ /home/pablo/.config/phpactor/phpactor.json
✘ /home/pablo/.config/phpactor/phpactor.yml
✘ /home/pablo/Prog/php/proyecto/.phpactor.json
✘ /home/pablo/Prog/php/proyecto/.phpactor.yml
Diagnostics:
✔ Composer detected - Phpactor could work faster without an index
✔ Git detected - enables faster refactorings in your repository scope!
✔ XDebug is disabled. XDebug has a negative effect on performance.
When I run it in a small project it indexes around ~400 files with no problem.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 15 (5 by maintainers)
It will now show the memory usage and the memory limit as it is indexing
[coc.nvim] Indexed 500/6744 (7.41%) 141/500 mbfor example. Should be indevelopsoon,I tried with the following project: https://github.com/framgia/laravel-test-examples The indexer does not start when I open the project, no message printed in vim, no error in the terminal. When I try to index manually with
phpactor index:build --resetI have an error:We might want to exclude unreadable files ?