RubyMine support
https://blog.jetbrains.com/platform/2023/07/lsp-for-plugin-developers/
@marcoroth I'm going to see if I can figure this out
@marcoroth I've got this somewhat working locally. It seems like Intellij allows you to either bundle the language server inside the plugin or have users configure where the language server is installed on their computer. Would you recommend a particular approach?
Oh sweet, thanks for giving this a shot @kcdragon! This is exciting!
I guess bundling it with the plugin would be easier to setup and get started, but it depends if that actually works with a language server that's written in Node.js.
I use RubyMine, and would very much appreciate help getting this great tooling into my editor!
I wanted to bundle the language server in the plugin to make it easier to setup but I couldn't figure out how to do that. I've got a version of the plugin that depends on the stimulus-language-server executable being on your PATH. That should be good enough for a first version.
This is the repository. I submitted the plugin to JetBrains for review. Assuming they approve it, it should appear in the Plugin Marketplace soon.
@marcoroth Is it intended that installing stimulus-language-server globally will add an executable that can be ran? When I run yarn global add stimulus-language-server, it mentions that it installed an executable but I don't see one in my bin directory.
$ yarn global add stimulus-language-server
...
success Installed "[email protected]" with binaries:
- stimulus-language-server
$ yarn global bin stimulus-language-server
/opt/homebrew/bin
$ ls /opt/homebrew/bin/stim*
zsh: no matches found: /opt/homebrew/bin/stim*
I was able to work around this and test the plugin by cloning this repo, running yarn build in server/ and then sym-linking out/stimulus-language-server to a directory on my PATH.
Thanks for exploring this! @kcdragon!
This is the repository. I submitted the plugin to JetBrains for review. Assuming they approve it, it should appear in the Plugin Marketplace soon.
Would it make sense to host the code for that here in this repo too? Given we bundle the executable with the plugin I think we'd want to also have the same release cycle.
Is it intended that installing stimulus-language-server globally will add an executable that can be ran?
Yes! At least that's how it works for me. But I also see that nodenv is shimming it:
❯ which stimulus-language-server
/Users/marcoroth/.anyenv/envs/nodenv/shims/stimulus-language-server
Might be worth to check how other plugins for JetBrains IDEs do it.
Would it make sense to host the code for that here in this repo too?
Sure I'm fine with having it in this repo. Once I get a good enough version of it, I'll open a PR here
Awesome, thank you Mike. Let me know if I can help somehow 🙌🏼
@kcdragon if you wish to provide a free plugin please try https://github.com/redhat-developer/lsp4ij