question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Not working with kak-lsp

See original GitHub issue

Expected Behavior

When running elm-language-server with kak-lsp, should display errors, show hints, etc.

Current Behavior

ELS is failing to compile elm & can’t find an input file. In the debug buffer of kakoune, it errors with:

  5│ LSP: Loading Elm tree-sitter syntax from ../../../../../../../nix/store/82ysym9hak1f1avisyqpl6m3l3ys1rq3-node__at_elm-tooling_slash_elm-language-server-2.0.2/lib/node_modules/@elm-tooling/elm-language-server/out/tree-sitter-elm.wasm
  6│ LSP: Found 1 elm.json files for workspace /home/jared/dev/github/replenysh/core/dashboard                                                                                
  7│ LSP: Found 1 unique elmWorkspaces for workspace /home/jared/dev/github/replenysh/core/dashboard                                                                          
  8│ LSP: Starting language server for folder: file:///home/jared/dev/github/replenysh/core/dashboard                                                                         
  9│ LSP: Elm version 0.19.1 detected.                                                                                                                                        
 10│ LSP: Reading elm.json from /home/jared/dev/github/replenysh/core/dashboard/elm.json                                                                                      
 11│ LSP: {"shortMessage":"Command failed with exit code 1: ./node_modules/.bin/elm make","command":"./node_modules/.bin/elm make","exitCode":1,"stdout":"","stderr":"-- NO INPUT --------------------------------------------------------------------\n\nWhat should I make though?  I need specific files like:\n\n    elm make src/Main.elm\n    elm make src/This.elm src/That.elm\n\nI recommend reading through https://guide.elm-lang.org for guidance on what to\nactually put in those files!\n\n","failed":true,"timedOut":false,"isCanceled":false,"killed":false}
 12│ LSP: Glob /home/jared/dev/.../src/elm/**/*.elm 
 13| LSP: Glob ... // All my other dependencies

Possible Solution

Steps to Reproduce (for bugs)

Download & setup elm-language-sever and kak-lsp as described in the documentation.

Context

Just trying to get a great editor experience with Elm!

My elm-tooling.json file looks like:

{
    "entrypoints": ["./src/elm/Main.elm"]
}

Your Environment

  • ELS Vesrion: 2.02
  • Editor used: Kakoune v2020.09.01
  • Environment name and version (e.g. node.js 5.4): Node v12.20.2
  • Operating System and version: MacOS Big Sur 11.2.3
  • Kak-LSP Version: 8.0.0

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
krobeluscommented, May 7, 2021

Ok the spec says that "true" is valid`

linkedEditingRangeProvider?: boolean | LinkedEditingRangeOptions | LinkedEditingRangeRegistrationOptions;

so this is a bug in lsp-types, the library kak-lsp uses. I’ll submit a fix and report the status in kak-lsp/kak-lsp#484. Sorry for the troubles and thanks for reporting.

0reactions
jaredramirezcommented, May 12, 2021

This is fixed on the kak-lsp side, thanks so much @krobelus!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issues · kak-lsp/kak-lsp - GitHub
Inlay diagnostics cause weird jump when selecting the newline character external dependency Something need to be fixed upstream.
Read more >
kak-lsp not working for me (rust) : r/kakoune - Reddit
I'm trying to get kak-lsp to work. Ultimately I want to get it going with elm, but first I'm trying rust because that's...
Read more >
Unable to verify if kak-lsp is working - mac
The error shows that kak-lsp tries to run the flow server for javascript, which is the server in the default config. This means...
Read more >
kak-lsp - Bountysource
I was testing the usage of kak-lsp with the python-language-server and found the command lsp-definition and lsp-hover to not work on every function....
Read more >
Kakoune - Erlang LS
This file has language specific settings for the Kakoune kak-lsp plugin. ... you can add this toml snippet yourself to kak-lsp.toml without any...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found