-
Notifications
You must be signed in to change notification settings - Fork 273
fix(amazonq): fix LinkageError when starting AmazonQLspService (attempt 2) #5627
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
Conversation
Qodana Community for JVM1 new problem were found
💡 Qodana analysis was run in the pull request mode: only the changed files were checked Contact Qodana teamContact us at [email protected]
|
| // Make sure we exclude stuff we either A) ships with IDE, B) we don't use to cut down on size | ||
| runtimeClasspath { | ||
| exclude(group = "org.slf4j") | ||
| exclude(group = "com.google.code.gson") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This package is included only in certain environments right but we exclude it in all?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah it does not hurt
In certain IDE environments, for example when user has the latest Scala plugin, Amazon Q attempts to load lsp4j through
transitive optional dependencies instead of through the IDE.
Ideally we do not bundle the library, but this is not possible until JetBrains can guarantee stronger isolation between plugins
As part of this we optimistically exclude Gson in hopes that it does not have the same issue. SLF4J is additionally packaged due to the same linkage error, though it seems to be pulling in an older version from somewhere else.
We also need to bump the Kotlin version, since there is a bug where Kotlin compiler runs out of memory for some reason if we exclude Gson from the distribution bundle.
License
I confirm that my contribution is made under the terms of the Apache 2.0 license.