Language server fails to initialize
See original GitHub issueI’m trying to use coc-pyright but after installing and opening a python file I get the following:
[coc.nvim] The "pyright" server crashed 5 times in the last 3 minutes. The server will not be restarted.
The output is the following message repeated several times:
internal/modules/cjs/loader.js:638
throw err;
^
Error: Cannot find module 'worker_threads'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
at Function.Module._load (internal/modules/cjs/loader.js:562:25)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object.5013 (/home/marco/.config/coc/extensions/node_modules/coc-pyright/node_modules/pyright/dist/pyright-langserver.js:1:561)
at s (/home/marco/.config/coc/extensions/node_modules/coc-pyright/node_modules/pyright/dist/pyright-langserver.js:1:687)
at Object.8863 (/home/marco/.config/coc/extensions/node_modules/coc-pyright/node_modules/pyright/dist/pyright-internal.js:1:801994)
at s (/home/marco/.config/coc/extensions/node_modules/coc-pyright/node_modules/pyright/dist/pyright-langserver.js:1:687)
at Object.5822 (/home/marco/.config/coc/extensions/node_modules/coc-pyright/node_modules/pyright/dist/pyright-langserver.js:1:46)
at s (/home/marco/.config/coc/extensions/node_modules/coc-pyright/node_modules/pyright/dist/pyright-langserver.js:1:687)
CocInfo:
vim version: NVIM v0.5.0-823-g42ffa2d62
node version: v10.19.0
coc.nvim version: 0.0.79-bd91ae4254
coc.nvim directory: /home/marco/.config/nvim/plugged/coc.nvim
term: xterm-256color
platform: linux
Am I missing something?
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
LanguageClient failing to initialize language server on 1.62.1
We're running into an issue that seems to have been introduced with 1.62.1. Upon initialization of our LanguageClient in our VSCode ...
Read more >Vivado 2021.1 stuck initializing language server - Xilinx Support
1) Delete the manifest.tcl file. 2) Start Vivado and open a project. 3) Let it freeze trying to open a source file. 4)...
Read more >Errors occurred in initializing language server - Stack Overflow
Try to copy the code project to another directory and reopen it. This should solve the problem.
Read more >Task Failed - Activating language client HtmlLanguageClient
VS 17.0.4 -- Task Failed - Activating language client HtmlLanguageClient: HtmlLanguageClient failed to initialize.
Read more >VSCode can't start InterSystems Language Server
But every time VSCode starts, the message "Request initialize failed with message: Dynamic Linking Error: Win32 error 126" is displayed and InterSystems ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Pyright needs node v12+ to work https://github.com/microsoft/pyright/issues/769.
Just want to weigh in on this, for what it’s worth I’m also using coc-pyright with node v15.4.0 but I’m not experiencing this error on coc-pyright, only with coc-grammarly… Sorry, I know that doesn’t really clear things up, but that’s the behaviour I’m experiencing.