-
Notifications
You must be signed in to change notification settings - Fork 6
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
Use nodejs from options from NetBeans itself #17
Comments
Thanks for you feedback. I keep this issue open to realize this later, thanks again for your feedback ;) |
Thx for the info. I use node for my other plugins so there is no problem. For part two, the search seems not work properly. As I said, I got this error from your plugin:
So that means, that It can't find my node.exe but when I call "where" in my CLI it gives me the path. |
OK thanks. |
Great. Thx. Will also try to work on your plugin sooner or later :). |
Hi @Chris2011, |
Cool @philippefichet thx for the info :) |
I created a patch to use the default nodejs path (like NodeCommandBuilderImpl) in the "fix-default-nodejs-path" branch. |
I tested it and when I open a JS file, the analyzer is working w/o the need to set the options. Now is the question, why we still need the options section to set node? If you use the nodejs from NetBeans, you should show it on the page and when I want to change it, that would be possible anyway. But this is just guessing, I dunno exactly, whether the section is now obsoleted or not. Thx for the fix :) |
The options section can be used to define another version of nodeJS that might be required by one of the analyzers. |
I close this issue because next step is in #23 ;) |
I saw, that the analyzer for Javascript is disabled because of this error:
Disable: UnsatisfiedRuntimeRequirement [runtime=NODEJS, currentVersion=null, minVersion=10.12.0]
I didn't understand why because node is installed and also nodejs executable is set via options from the official node.js module:
After clicking through your plugin options, I saw that there is an extra options node in SonarLint and I see that I need to set the nodejs executable manual. So my suggestion is, please use the path from within NetBeans, because it was already set. No need to set it again. If there was no nodejs set, it needs to be set in the options, that you see in the screenshot.
The text was updated successfully, but these errors were encountered: