eclipse / xtext

Eclipse Xtext™ is a language development framework
http://www.eclipse.org/Xtext
Eclipse Public License 2.0
767 stars 320 forks source link

Documentation on IntelliJ LSP Support might be outdated #2212

Open jnt0r opened 1 year ago

jnt0r commented 1 year ago

I just followed the documentation on https://www.eclipse.org/Xtext/documentation/340_lsp_support.html#getting-started-intellij and ran into an issue. The Plugin "LSP Support" mentioned in the documentation is not available in my IntelliJ installation (IntelliJ IDEA 2022.3). On GitHub, the Repository of the plugins seems to be dead.

Is there a workaround like the old gradle goal "runIdea"? I don't find this in a newly created XText project.

cdietrich commented 1 year ago

no run idea was working in Xtext 2.9 only. you might play around with

or check if you get the original plugin running https://github.com/gtache/intellij-lsp that the docs is referring to

jnt0r commented 1 year ago

To clarify the problem. I tried installing the LSP Support extension in IntelliJ. But I didn't find it and could not install it in the newest version of IntelliJ. So this step is not working for me: grafik

I don't want to build n dedicated IntelliJ Plugin to use my DSL with. So a client library is no solution for me yet.

cdietrich commented 1 year ago

i have no idea why it is not there. as this is a third party plugin and i am not involved in that project at all. the plugin that is maintained does not seem to have an option not to build it for a specific language thus you basically need to build your own plugin

i cannot tell you why the idea community seems to have zero interest in language servers. and how other lsp providers contribute their stuff to idea, if at all.

cdietrich commented 1 year ago

@jnt0r the plugin is at least listed here https://plugins.jetbrains.com/plugin/10209-lsp-support it says "Not compatible with the version of your running IDE (IntelliJ IDEA 2023.1)" but not why maybe download and install from disk works or at least says why

jnt0r commented 1 year ago

Thanks, @cdietrich. I will try to download the plugin and debug the error locally.

cdietrich commented 1 year ago

@jnt0r i at least could install it, and see the preference part for it. but currently cant try it out

jnt0r commented 1 year ago

Looks like the compatibility level of the plugin is simply too low. Code seems to be working with new versions. I created a PR over there https://github.com/gtache/intellij-lsp/pull/173.

cdietrich commented 1 year ago

i fear the pr wont get merged should we remove this from the docs?

szarnekow commented 1 year ago

should we remove this from the docs?

Yes, I'm in favor of removing this.

cdietrich commented 1 year ago

see also https://github.com/eclipse/xtext/issues/2739

angelozerr commented 3 months ago

@cdietrich please note that we have relased https://github.com/redhat-developer/lsp4ij an Intellij plugin which provides free LSP support with LSP console

Please read following documentation: