OpenLiberty / liberty-tools-intellij

IntelliJ IDEA extension for Liberty
https://plugins.jetbrains.com/plugin/14856-open-liberty-tools
Eclipse Public License 2.0
12 stars 24 forks source link

Despite specifying the version, only the latest Marketplace version of Lsp4ij gets installed during buildPlugin. #793

Closed anusreelakshmi934 closed 3 months ago

anusreelakshmi934 commented 4 months ago

When running the ./gradlew buildPlugin task with the version set to def lsp4ijNightlyVersion = '0.0.1-20240518-012816' in the build.gradle file, the resulting zip file is generated in build/distributions. However, upon attempting to install the zip file using "install plugin from disk," it installs the latest nightly build version from the marketplace, which is 0.0.2-20240530-012934. But when launching the extension using runIde, it correctly utilizes the specified version.

Attaching SS below When Installing the Zip file: we get version - 0.0.2-20240530-012934

image

When running the extension: we get version - 0.0.1-20240518-012816

image

The Branch I am working on - useLSP4IJmarket_2024.1_intellij_Support

mrglavas commented 3 months ago

After a discussion with JetBrains we determined that this is working as designed. By default (through the Plugins UI), IntelliJ will install the latest compatible version of a plug-in from the Marketplace. LTI has no control over which version of LSP4iJ will be installed. See this discussion on LSP4iJ versioning: https://github.com/redhat-developer/lsp4ij/discussions/353 for more insights on this topic.