Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: handle different plugin paths #100

Merged
merged 1 commit into from
Sep 12, 2024

Conversation

zzehring
Copy link
Owner

@zzehring zzehring commented Sep 12, 2024

It seems that depending on what version the language server plugin was first installed (or perhaps what version of IDE you are using), the plugin path can be jsonnet-language-server and Jsonnet Language Server under the plugins/ root. v0.3.0 switched to jsonnet-language-server, which broke existing plugins.

This change handles both scenarios by checking if
jsonnet-language-server dir exists, and if not falls back to using Jsonnet Language Server.

Fixes: #97

It seems that depending on what version the language server plugin was
first installed, the plugin path can be `jsonnet-language-server` and
`Jsonnet Language Server` under the `plugins/` root. v0.3.0 switched to
`jsonnet-language-server`, which broke existing plugins.

This change handles both scenarios by checking if
`jsonnet-language-server` dir exists, and if not falls back to using
`Jsonnet Language Server`.

 Fixes: #97
@zzehring zzehring merged commit b3feb6b into main Sep 12, 2024
2 checks passed
@zzehring zzehring deleted the zzehring/handle-different-plugin-paths branch September 12, 2024 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Plugin failed to load after upgrading to IDEA 2024.2.0.2
1 participant