And feel free to test (it will need a lot of testing) and contribute in any way. That being code, issues or maybe graphics.
Or maybe join the #elm-language-server channel on the elm slack.
One thing that I’m actively looking for is what features people are missing and which would bring the biggest benefits. So if you got ideas/opinions about that feel free to reach out here, via the issue tracker or slack.
Interesting, not sure how we can reproduce that best. So I would think, moving this to a github issue would be the right thing to do. Or even the slack channel?
Nesting elm projects (like benchmarks and tests) seems to interfere with the plugin. For examle: I have an inner projects that utilizes ports, but because the outer project is a package, I’m getting warnings. A workaround I’ve used was to open the inner projects in a separate window. I could perhaps instead flatten my repo in a separate folder for each project.
Haven’t had any other issues so far it’s really great!
Using this with Vim and Coc and it’s excellent, with a bit of tweaking it’s buttery smooth. I didn’t realise how much I missed “gd” working properly! Good job.
One feature I use a lot is ‘symbols’, so if you hit Ctrl+Shift+O you can then go to a definition in a similar way to Ctrl+g is goto line. As you type it shows you completions.
I know there is ‘go to definition’, but that requires you to be near a call site, sometimes I know for example I want to add a new message so I do Ctrl+Shift+O Msg and I’m at the definition for the Msg type.
Unfortunately I cannot try it as it won’t work on NixOS (hit me up on Slack if you want to talk about possible solutions), but I think having a Language Server is definitely a must have for any serious language, so kudos for the important work!
A ha, yes it does work for `elm-spa-example’, apologies I just tried it on the code I was working on and perhaps that has a file that isn’t linting or something. I will investigate further and report back.
In the folder that isn’t working, there is no outline.
So the ‘folder’ I had open in VSCode actually had two elm projects, let’s call them A and B, and hence two elm.json files.
The outline + symbols were not working in the files in project B that I was working on.
It turns out, they were working in project A (I just hadn’t noticed because I wasn’t working on that project).
If I close the containing folder and open a sub folder that contains project B but not A, then the outline+symbols works for me.
So in summary, the issue seemed to be caused by having a folder open (in the VSCode sense) which contained more than one elm project. It didn’t seem related to having a non-linting elm file (I don’t seem to have one in either project).
Hrm, that might actually be an upstream bug, can you create an issue on github, so that I can track this? I will probably need to report that to the https://github.com/Microsoft/vscode-languageserver-node people. After checking if i’m using the api correctly.