Visual Studio Code: The Solidity Language Server server crashed 5 times in the last 3 minutes. The server will not be restarted
See original GitHub issueI am working on Win10 and getting this error from VSCode after installing the Solidity extension and then opening a .sol file:
[Error - 14:16:07] (node:10264) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): TypeError: Path must be a string. Received null
[Error - 14:16:07] (node:10264) DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
C:\Users\user\.vscode\extensions\JuanBlanco.solidity-0.0.27\node_modules\solc\soljson.js:1
(function (exports, require, module, __filename, __dirname, process, global, Buffer) { return function (exports, require, module, __filename, __dirname) { var Module;if(!Module)Module=(typeof Module!=="undefined"?Module:null)||{};var moduleOverrides={};for(var key in Module){if(Module.hasOwnProperty(key)){moduleOverrides[key]=Module[key]}}var ENVIRONMENT_IS_WEB=typeof window==="object";var ENVIRONMENT_IS_WORKER=typeof importScripts==="function";var ENVIRONMENT_IS_NODE=typeof process==="object"&&typeof require==="function"&&!ENVIRONMENT_IS_WEB&&!ENVIRONMENT_IS_WORKER;var ENVIRONMENT_IS_SHELL=!ENVIRONMENT_IS_WEB&&!ENVIRONMENT_IS_NODE&&!ENVIRONMENT_IS_WORKER;if(ENVIRONMENT_IS_NODE){if(!Module["print"])Module["print"]=function print(x){process["stdout"].write(x+"\n")};if(!Module["printErr"])Module["printErr"]=function printErr(x){process["stderr"].write(x+"\n")};var nodeFS=require("fs");var nodePath=require("path")
TypeError: Path must be a string. Received null
at assertPath (path.js:7:11)
at Object.join (path.js:468:7)
at createPackage (C:\Users\user\.vscode\extensions\JuanBlanco.solidity-0.0.27\out\src\projectService.js:12:35)
at createProjectPackage (C:\Users\user\.vscode\extensions\JuanBlanco.solidity-0.0.27\out\src\projectService.js:87:26)
at Object.initialiseProject (C:\Users\user\.vscode\extensions\JuanBlanco.solidity-0.0.27\out\src\projectService.js:33:26)
at SolcCompiler.compileSolidityDocumentAndGetDiagnosticErrors (C:\Users\user\.vscode\extensions\JuanBlanco.solidity-0.0.27\out\src\solcCompiler.js:108:87)
at validate (C:\Users\user\.vscode\extensions\JuanBlanco.solidity-0.0.27\out\src\server.js:36:52)
at Timeout.setTimeout [as _onTimeout] (C:\Users\user\.vscode\extensions\JuanBlanco.solidity-0.0.27\out\src\server.js:125:26)
at ontimeout (timers.js:365:14)
at tryOnTimeout (timers.js:237:5)
[Error - 14:16:09] Connection to server got closed. Server will not be restarted.
Issue Analytics
- State:
- Created 6 years ago
- Comments:76 (43 by maintainers)
Top Results From Across the Web
The Language Support for Java server crashed 5 times in the ...
The Language Support for Java server crashed 5 times in the last 3 minutes. The server will not be restarted. Any idea how...
Read more >The language server crashed 5 times in the last 3 minutes. In c ...
I worked on a medium sized C project and at times it became so slow that I constantly have to restart VSCode.
Read more >Visual Studio Code Extension - Solang Solidity Compiler
Solang has a language server built into the executable, which can be used by the Visual Studio Code extension, or by any editor...
Read more >The PHP Language Server server crashed 5 times in the last 3 ...
Hello! Unable to use the extension. How to fix: Restart vscode till next crash. Or... disable devsense and use another php intellisense.
Read more >The Php Language Server Server Crashed 5 Times ... - ADocLib
The Php Language Server Server Crashed 5 Times In The Last 3 Minutes. The Server Will Not Be Restarted. Jeremy lists 3 advantages...
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
@jsjoeio Ahh now I understand, also I missed the link!! (doh!) Thanks
This is happening again with vscode@1.45.1 and vscode-solidity@0.0.73 on my macOS@10.15.4:
My settings: