SonarQube Cloud, SonarQube Server, or SonarQube Community Build? (if one of the latter two, which version?): SonarQube Server, Data Center Edition, Version 9.9.4 (build 87374)
And a thorough description of the problem / question:
We are upgrading our “IBM Developer for z/OS Enterprise Edition” to 17.0.2.
This runs under Eclipse version 4.31.
We would like to load the plugin for SonarQube for IDE (SonarLint) into it, but we can’t find the correct information which version to download that is compatible with our IDz/Eclipse version.
you can install the latest version of the plug-in either via the Eclipse Marketplace or the Eclipse Update Site. The documentation shows that your version is compatible and that the COBOL IDE is also supported.
I’ve installed, as you suggested, the latest version of SonarQube for IDE/Eclipse (org.sonarlint.eclipse.site-11.14.0.83019.zip) in our IBM Explorer for z/OS v 17.0.2, on Eclipse 4.31.
The install did go successful, and I can see SonarQube in the Preferences now.
But, when we start up our IBM Explorer, we get next error message box now :
”Could not find node.js. …”
Reading this, we realize we don’t need this, which is also stated in the post as :
”On the other hand, there might be users not relying on Node.js (e.g., because they don’t develop with JavaScript/TypeScript/CSS) that don’t even care if it is available or not.”
But we can’t find any info how to switch off the need of the node.js in the Preferences, so that we don’t get the popup about the node.js when starting our IBM Explorer for z/OS.
Can you help us out with that issue ?
Besides that I have some other question on the Preferences.
When selecting in the Preferences → SonarQube → Rules Configuration, we can see rules for a lot of languages to switch on/off.
But we don’t see Cobol in the list, the one we use.
Is there anything extra needed for this ?
can you please send a screenshot of the message with the Node.js error. There are different notifications related to Node.js and this would help with finding the correct answer to your question.
Yes indeed, COBOL is not in there, as these are only the rules available in Standalone Mode. COBOL is only available with your SonarQube Server. To have the files be analyzed locally, you have to set up Connected Mode. But be aware: After the connection is created, the rules won’t appear in the settings as the configuration for these rules is done on the Server to be synced to everyone.
Thanks for the fast response. This error is not coming from the SonarQube for IDE plug-in but rather from the Eclipse WWD plug-in that is apparently bundled with IDz.
There is a similar notification for SonarQube for IDE, but it would have only appeared if you tried to open a JavaScript/TypeScript-related file. That’s the reason behind my question ^^
However, when installing SonarQube for IDE, the plug-in mentioned above is not installed automatically and therefore it is part of IDz. I have a guess, tho for why this pops up. Internally, SonarQube for IDE leverages the Eclipse WWD plug-in for checking the existence of the embedded Node.js runtime. This expects the Eclipse WWD plug-in to be working correctly, which it seems not to do.
I could not find a direct solution for this dialog, and as this is not related to SonarQube for IDE directly I would ask you to reach out to the Eclipse WWD maintainers.
On the contrary, in SonarQube for IDE there is no option to disable everything related to Node.js (and therefore the JavaScript/TypeScript/CSS analysis) altogether. I would leave this with the people over at Sonar and stop here.
I confirm what @EclipseWizard said. We leverage WWD, if it is installed, to help us detect the path to Node.js. There is no setting in our plugin to turn off this detection, and the popup comes from WWD when no Node.js can be found (displayed only once per session).
Maybe in your case you could simply remove the WWD plugin from your installation, if you’re not interested in Web development? SonarQube would not try to invoke it if it is not present.