Open CherryDT opened 5 years ago
Note: This issue still exists on 1.39.0-insiders...
Update: Debugging shows that starting the client never finishes, it stays in ClientState.Starting
. It gets up to the connection.initialize
call but the callback then never executes.
Update 2: Adding a delay of 1s before the connection.initialize
call inside the vscode-languageclient
solved the problem for me for the moment, but that's of course not a real solution
Bump - this error still happens. With every update of the extension the error comes back and I have to manually patch it by inserting my 1s delay again.
Thanks for your bug report! @CherryDT Feel free to open a PR to fix this bug. :smile:
Hm, I'm not sure how to fix it! My workaround is just that - a workaround. And adding code inside a dependency isn't really something a PR can do anyway ^^ It would require somebody who knows how VSCode extensions and language servers and all these things actually work to figure out what's wrong.
When using this extension in a WSL remote window, no linting is done. Executing a command such as "auto-fix problems" shows this error in the "Log (Remote Extension Host)" output panel:
This happens even hours after starting, so I doubt that something is really "not ready yet"...
VSCode version:
Version: 1.37.0-insider (system setup) Commit: 7e03eb1a1fce3beb6ccea5f3b8f828e01940be61 Date: 2019-07-05T18:31:56.611Z Electron: 4.2.5 Chrome: 69.0.3497.128 Node.js: 10.11.0 V8: 6.9.427.31-electron.0 OS: Windows_NT x64 10.0.17763
...however it is like this already for many weeks, so it is probably not because of an Insider feature. I've waited with reporting this until the WSL remote feature made it out of Insiders.
(StandardJS version: Irrelevant but it's 12.0.1, JS Standard output panel is empty - I couldn't find any other errors in any of the other output panels except for a "bower.json not found" which I think shouldn't cause anything bad, I don't even use Bower)