Extension failing to start with error: "The "yaml" server crashed 5 times in the last 3 minutes. The server will not be restarted"
See original GitHub issueThe error happened as soon as I opened the first yaml file after install. Below is debug output from CocCommand workspace.showOutput
node:internal/modules/cjs/loader:903
throw err;
^
Error: Cannot find module 'vscode-json-languageservice/lib/umd/services/jsonDefinition'
Require stack:
- <HOME>/.config/coc/extensions/node_modules/coc-yaml/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlDefinition.js
- <HOME>/.config/coc/extensions/node_modules/coc-yaml/node_modules/yaml-language-server/out/server/src/languageservice/yamlLanguageService.js
- <HOME>/.config/coc/extensions/node_modules/coc-yaml/node_modules/yaml-language-server/out/server/src/server.js
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:900:15)
at Function.Module._load (node:internal/modules/cjs/loader:745:27)
at Module.require (node:internal/modules/cjs/loader:972:19)
at require (node:internal/modules/cjs/helpers:88:18)
at Object.<anonymous> (<HOME>/.config/coc/extensions/node_modules/coc-yaml/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlDefinition.js:5:26)
at Module._compile (node:internal/modules/cjs/loader:1083:30)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1112:10)
at Module.load (node:internal/modules/cjs/loader:948:32)
at Function.Module._load (node:internal/modules/cjs/loader:789:14)
at Module.require (node:internal/modules/cjs/loader:972:19) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'<HOME>/.config/coc/extensions/node_modules/coc-yaml/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlDefinition.js',
'<HOME>/.config/coc/extensions/node_modules/coc-yaml/node_modules/yaml-language-server/out/server/src/languageservice/yamlLanguageService.js',
'<HOME>/.config/coc/extensions/node_modules/coc-yaml/node_modules/yaml-language-server/out/server/src/server.js'
]
}
[Info - 6:44:16 PM] Connection to server got closed. Server will restart.
Here is also the contents of the directory node_modules/vscode-json-languageservice/lib/umd/services/
showing that the module jsonDefinition
does not exist:
β― tree node_modules/vscode-json-languageservice/lib/umd/services/
node_modules/vscode-json-languageservice/lib/umd/services/
βββ configuration.js
βββ jsonCompletion.js
βββ jsonDocumentSymbols.js
βββ jsonFolding.js
βββ jsonHover.js
βββ jsonLinks.js
βββ jsonSchemaService.js
βββ jsonSelectionRanges.js
βββ jsonValidation.js
0 directories, 9 files
Issue Analytics
- State:
- Created 3 years ago
- Reactions:4
- Comments:15 (4 by maintainers)
Top Results From Across the Web
Yaml Support server crashed 5 times in the last 3 minutes. #52
I'm getting a prompt at the top of VS Code, "The Yaml Support server crashed 5 times in the last 3 minutes. The...
Read more >Visual Studio Code C/C++ extension : The language server ...
Visual Studio Code C/C++ extension : The language server crashed 5 times in the last 3 minutes. It will not be restarted.
Read more >Troubleshooting | Google Kubernetes Engine (GKE)
After creating a cluster, attempting to run the kubectl command against the cluster returns an error, such as Unable to connect to the...
Read more >Vscode tab completion suddenly broken - Julia Discourse
My guess is that this is related to the error message The Julia Language Server server crashed 5 times in the last 3...
Read more >Troubleshoot pipeline runs - Azure DevOps - Microsoft Learn
An additional reason that runs may not start is that your organization goes dormant five minutes after the last user signs out of...
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
Fixed on v1.1.2
happens here too after update.
Fixed by running
CocInstall coc-yaml@1.0.4