Unable to start Elm Language Server
See original GitHub issueThank you for creating this plugin, I’m excited to try it out.
I’ve installed the plugin, but I can’t figure out how to get it to start. I’ve tried it natively on Windows and using my Windows VS Code installation to SSH into a Linux server using the Remote-SSH tools.
Natively in Windows, I get this output for elmLS:
[Info - 1:12:24 PM] Starting language server for c:\Users\ben\Development\smartpos-reports\src\panel-groups\
[Info - 1:12:43 PM] Rebuilding tree-sitter for local Electron version
[Info - 1:12:43 PM] Fetching tree-sitter
[Info - 1:12:43 PM] Downloading (or using local cache for) https://github.com/tree-sitter/node-tree-sitter/releases/download/v0.14.0/tree-sitter-v0.14.0-electron-v69-win32-x64.tar.gz
[Info - 1:12:43 PM] Fetching tree-sitter-elm
[Info - 1:12:43 PM] Downloading (or using local cache for) https://github.com/razzeee/tree-sitter-elm/releases/download/v2.2.4/tree-sitter-elm-v2.2.4-electron-v69-win32-x64.tar.gz
[Error - 1:12:43 PM] Server initialization failed.
Message: Request initialize failed unexpectedly without providing any details.
Code: -32603
When I’m using a VS Code to SSH into Linux, I get this output:
[Info - 5:57:50 PM] Starting language server for /home/smartserver/Development/smartpos-reports/src/customer/
[Info - 5:57:53 PM] Rebuilding tree-sitter for local Electron version
[Info - 5:57:53 PM] Fetching tree-sitter
[Info - 5:57:53 PM] Downloading (or using local cache for) https://github.com/tree-sitter/node-tree-sitter/releases/download/v0.14.0/tree-sitter-v0.14.0-electron-v64-linux-x64.tar.gz
[Info - 5:57:53 PM] Fetching tree-sitter-elm
[Info - 5:57:53 PM] Downloading (or using local cache for) https://github.com/razzeee/tree-sitter-elm/releases/download/v2.2.4/tree-sitter-elm-v2.2.4-electron-v64-linux-x64.tar.gz
[Info - 5:57:53 PM] Rebuild succeeded!
[Info - 5:57:53 PM] Connection to server got closed. Server will restart.
[Info - 5:57:55 PM] Rebuilding tree-sitter for local Electron version
[Info - 5:57:55 PM] Fetching tree-sitter
[Info - 5:57:55 PM] Downloading (or using local cache for) https://github.com/tree-sitter/node-tree-sitter/releases/download/v0.14.0/tree-sitter-v0.14.0-electron-v64-linux-x64.tar.gz
[Info - 5:57:55 PM] Fetching tree-sitter-elm
[Info - 5:57:55 PM] Downloading (or using local cache for) https://github.com/razzeee/tree-sitter-elm/releases/download/v2.2.4/tree-sitter-elm-v2.2.4-electron-v64-linux-x64.tar.gz
[Info - 5:57:55 PM] Rebuild succeeded!
/home/smartserver/.vscode-server/bin/0f3794b38477eea13fb47fbe15a42798e6129338/node: symbol lookup error: /home/smartserver/.vscode-server/extensions/elmtooling.elm-ls-vscode-0.3.0/server/node_modules/tree-sitter/build/Release/tree_sitter_runtime_binding.node: undefined symbol: _ZN2v816FunctionTemplate3NewEPNS_7IsolateEPFvRKNS_20FunctionCallbackInfoINS_5ValueEEEENS_5LocalIS4_EENSA_INS_9SignatureEEEiNS_19ConstructorBehaviorE
[Info - 5:57:55 PM] Connection to server got closed. Server will restart.
[Info - 5:57:57 PM] Rebuilding tree-sitter for local Electron version
[Info - 5:57:57 PM] Fetching tree-sitter
[Info - 5:57:57 PM] Downloading (or using local cache for) https://github.com/tree-sitter/node-tree-sitter/releases/download/v0.14.0/tree-sitter-v0.14.0-electron-v64-linux-x64.tar.gz
[Info - 5:57:57 PM] Fetching tree-sitter-elm
[Info - 5:57:57 PM] Downloading (or using local cache for) https://github.com/razzeee/tree-sitter-elm/releases/download/v2.2.4/tree-sitter-elm-v2.2.4-electron-v64-linux-x64.tar.gz
[Info - 5:57:57 PM] Rebuild succeeded!
[Info - 5:57:57 PM] Connection to server got closed. Server will restart.
[Info - 5:57:58 PM] Rebuilding tree-sitter for local Electron version
[Info - 5:57:58 PM] Fetching tree-sitter
[Info - 5:57:58 PM] Downloading (or using local cache for) https://github.com/tree-sitter/node-tree-sitter/releases/download/v0.14.0/tree-sitter-v0.14.0-electron-v64-linux-x64.tar.gz
[Info - 5:57:58 PM] Fetching tree-sitter-elm
[Info - 5:57:58 PM] Downloading (or using local cache for) https://github.com/razzeee/tree-sitter-elm/releases/download/v2.2.4/tree-sitter-elm-v2.2.4-electron-v64-linux-x64.tar.gz
[Info - 5:57:58 PM] Rebuild succeeded!
[Info - 5:57:59 PM] Connection to server got closed. Server will restart.
[Info - 5:57:59 PM] Rebuilding tree-sitter for local Electron version
[Info - 5:57:59 PM] Fetching tree-sitter
[Info - 5:57:59 PM] Downloading (or using local cache for) https://github.com/tree-sitter/node-tree-sitter/releases/download/v0.14.0/tree-sitter-v0.14.0-electron-v64-linux-x64.tar.gz
[Info - 5:57:59 PM] Fetching tree-sitter-elm
[Info - 5:57:59 PM] Downloading (or using local cache for) https://github.com/razzeee/tree-sitter-elm/releases/download/v2.2.4/tree-sitter-elm-v2.2.4-electron-v64-linux-x64.tar.gz
[Info - 5:57:59 PM] Rebuild succeeded!
/home/smartserver/.vscode-server/bin/0f3794b38477eea13fb47fbe15a42798e6129338/node: symbol lookup error: /home/smartserver/.vscode-server/extensions/elmtooling.elm-ls-vscode-0.3.0/server/node_modules/tree-sitter/build/Release/tree_sitter_runtime_binding.node: undefined symbol: _ZN2v816FunctionTemplate3NewEPNS_7IsolateEPFvRKNS_20FunctionCallbackInfoINS_5ValueEEEENS_5LocalIS4_EENSA_INS_9SignatureEEEiNS_19ConstructorBehaviorE
[Error - 5:57:59 PM] Connection to server got closed. Server will not be restarted.
If I can provide any additional information, please let me know.
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Language server fails to start if dependencies are not in ~/.elm ...
I have moved to a new machine since I last worked on my elm project. ... Language server fails to start if dependencies...
Read more >Can not get elm-analyse and elm-language-server work - Learn
I have a project with the code from Elm's tutorial. Page itself works great, elm-format also works well. But elm-language-server and elm-analyse fails...
Read more >elm language server does not work with neovim - Stack Overflow
Also, how to describe the contents of :LspLog. [START][2022-07-19 11:26:29] LSP logging ...
Read more >Language Server
Language Maintainer Repository
Ada AdaCore github.com/AdaCore/ada_language_server
ANTLR Ken Domino github.com/kaby76/AntlrVSIX
Apache Camel Camel Tooling github.com/camel‑tooling/camel‑language‑server
Read more >Configuring lsp-mode to run elm-language-server
That Error parsing file is from elm-analyse and it has to do with the file not starting with module MyModule exposing (.
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
Probably due to your node switch
I followed the directions on the README to build the language server, uninstalled the plugin and reinstalled it and now it’s working in Windows.
Thanks for your help!