-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
sonarlint plugin doesn't work #16589
sonarlint plugin doesn't work #16589
Comments
Something isn't working, unless I am missing some step. It works fine in VS Code but fails on Che. |
Well, sonarlint simply does not support Java in the version we have in the plugin registry: these are the activation events:
|
I was able to make V 1.16.0 of the extension work for Java if I include the Java extension in the Che plugin. |
Seems if I just activate the Java Che plugin, Java support in does not work for sonarlint. Same with typescript support:
|
I think there are couple of issues
so sonalint could be updated to match the correct/new way of searching extensions with the identifier or we need to add prefix
|
Handle more properties from the exports also handle constants directly (as some plugin's are checking if the returned value is a string and not a function that might return a string) Change-Id: Icbb026f65577422168f1acab486e598c6146c170 Signed-off-by: Florent Benoit <fbenoit@redhat.com>
For java support, meta.yaml of latest sonarlint (1.16.0) version should contain as well
as it tries to load m2 dependencies |
Handle more properties from the exports also handle constants directly (as some plugin's are checking if the returned value is a string and not a function that might return a string) Change-Id: Icbb026f65577422168f1acab486e598c6146c170 Signed-off-by: Florent Benoit <fbenoit@redhat.com>
After eclipse-che/che-theia#794 is merged, there is one remaining problem for it's because sonarlint VS Code plug-in, grab the extension path named
but as it's in another container, filesystem access is not OK so either, we need to:
|
Sonarlint looking up the typescript libs is conceptually the same problem as #16851: it's trying to pick up a target environment. So we should
|
When I fixed the field
Seems the name that works is |
in fact the real name is |
Handle more properties from the exports also handle constants directly (as some plugin's are checking if the returned value is a string and not a function that might return a string) Change-Id: Icbb026f65577422168f1acab486e598c6146c170 Signed-off-by: Florent Benoit <fbenoit@redhat.com>
Sonarlint would already pickup the setting |
it looks like I don't see anymore one of my comment on this issue I paste few hour ago. This is what I was instructing |
We'd have to do the same for the typescript plugin, as well, though: preferences are shared among sidecars. |
@tsmaeder I'm doing that on the typescript plug-in |
what would be nice is to be able to specify it in the meta.yaml and not in the devfile.yaml (maybe it's what you were saying) ? but for that it means we should have multi-workspace root enabled to always have the relative BTW it's nice to have the typescript really used by the project but extension switch to default if |
sonarlint plugin doesn't work (eclipse che version: 7.7.0)
Soanrlint is not visible, but javalint is visible.
Please, tell me how to use Sonarlint plugin.
sonarlint plugin test order:
create workspace: Java Maven Stack
Eclipse Che UI Workspaces > configure workspace > Plugins > vscode-sonarlint Enable > Apply
File > Settings > Open Preferences > input
{
"sonarlint.connectedMode.servers": [
{
"serverId": "my_sonarqube",
"serverUrl": "http://172.22.11.2:9000",
"token": "457be3c16b703110e68380bcc7f53b2727b2771c"
}
],
"sonarlint.ls.javaHome": "/usr/lib/jvm/java-1.8-openjdk",
"sonarlint.connectedMode.project": {
"serverId": "my_sonarqube",
"projectKey": "petclinic"
}
}
F1 > Update Sonarlint binding to SonarQube/SonarCloud
Result: Solarlint seems unapplied
Is there anything else I need to set up?
The text was updated successfully, but these errors were encountered: