Here is the log. The issues seems to be a permission issue, but I doubt, as the former version works as expected.
org.sonar.api.utils.command.CommandException: java.io.IOException: Cannot run program "/opt/homebrew/opt/node": error=13, Permission denied
at org.sonar.api.utils.command.CommandExecutor.execute(CommandExecutor.java:102)
at org.sonarsource.sonarlint.core.nodejs.NodeJsHelper.runSimpleCommand(NodeJsHelper.java:155)
at org.sonarsource.sonarlint.core.nodejs.NodeJsHelper.readNodeVersion(NodeJsHelper.java:86)
at org.sonarsource.sonarlint.core.nodejs.NodeJsHelper.detect(NodeJsHelper.java:67)
at org.sonarsource.sonarlint.core.analysis.NodeJsService.getClientForcedNodeJs(NodeJsService.java:92)
at org.sonarsource.sonarlint.core.analysis.NodeJsService.getActiveNodeJs(NodeJsService.java:70)
at org.sonarsource.sonarlint.core.analysis.NodeJsService.getActiveNodeJsVersion(NodeJsService.java:74)
at org.sonarsource.sonarlint.core.plugin.PluginsService.loadPlugins(PluginsService.java:148)
at org.sonarsource.sonarlint.core.plugin.PluginsService.getEmbeddedPlugins(PluginsService.java:82)
at org.sonarsource.sonarlint.core.analysis.AnalysisEngineCache.getOrCreateStandaloneEngine(AnalysisEngineCache.java:83)
Could you create a “PhpStorm Workshop Project” using the template under new project options, go to the “1.1_Basic_Completion.php” file, and check if it works?
Could you also share the node.js version you were using while doing that and share it with us, as well as logs if it is also not working?
Any idea, why it works with version 10.7.0 and not with 10.8.1 - there seems to be a change, which causes the plugin not to work with my project, which it did before
As Nicolas mentioned, a minimal reproducing project would be really helpful(especially if we can find it on a public GitHub repository)
If it is not possible,
Could you verify with me that the plugin is not working with every file, not just specific ones under specific folders?
Could you also try deleting the “PhpStorm Workshop Project” contents or any simple project currently working on your machine, deleting everything inside, and then copying the contents of your current original project folder by folder to this new one? Can you share with me if the same issue starts to appear and if so at which point?
nope - it’s the code of our DigitalSignage software, so I can’t share it.
It’s not working at all, but works fine with the versions before 10.8.0 - so it is related to the changes in that release.
So maybe the issue could be related to the fact, that 3 git repositories are included in the project? If I just copy over the source to a vanilla project, the code works, but copying the files is not moving the .git folder - right?
We have a known error on our side, where if a .gitignore file has rules that contradict each other, some files end up being ignored when they should not. I suspect this might be the root cause here. Could you check if you have .gitignore file, and if the content might be the source of the issue?
Yes, there are several .gitignore files, as there are a bunch of composer libraries with .gitignore files, and all of three projects are having a .gitignore file as well:
Yes, removing the “services” entry in the .gitignore which is marked on the screenshot solves the issue. Thanks for figuring out. Will it be fixed in a future release?