Hi,
i’m currently testing the latest Sonarlint for Eclipse 8.0.0.80157 with Eclipse 2023-06 on Windows 10
and Sonarqube Enterprise 9.9.0 LTS
nodeJS is on PATH, but after some time - in general the startup of Sonarlint consumes a lot of time compared with Sonarlint for Eclipse 7.12.0.72679 we use right now in production - an error dialog appears
The Sonarlint console verbose output has
Initializing SonarLint backend…
Starting SonarLint for Eclipse 8.0.0.80157
Starting SonarLint engine for connection ‘sonar’…
Node.js path provided by configuration: C:\Program Files\nodejs\node.exe
Checking node version…
Execute command ‘C:\Program Files\nodejs\node.exe -v’…
[…]
Starting server
No workDir in SonarLint
Running in SonarLint context, metrics will not be computed.
Using Node.js executable C:\Program Files\nodejs\node.exe from property sonar.nodejs.executable.
Checking Node.js version
Launching command C:\Program Files\nodejs\node.exe -v
Using Node.js v18.12.1.
Starting Node.js process to start the bridge server at port 49438
Launching command C:\Program Files\nodejs\node.exe C:\Wks\Eclipse\2023-06.sonarlint\work\sonar.sonarlinttmp_8608677076455321860\bridge-bundle\package\bin\server 49438 127.0.0.1 C:\Wks\git\sonar-custom-rules\java-custom-rules true true
Context set with {“workDir”:“C:\Wks\git\sonar-custom-rules\java-custom-rules”,“shouldUseTypeScriptParserForJS”:true,“sonarlint”:true,“bundles”:}
starting the bridge server at port 49438
the bridge server is running at port 49438
the bridge server closed
GET 200 https://sonar/api/developers/search_events?projects=com.foo.sonar.custom.java%3Ajava-custom-rules&from=2023-09-18T16%3A27%3A31%2B0200 | response time=49ms
Storing last event polling in C:\Wks\Eclipse\2023-06.sonarlint\storage\736f6e6172\projects\64652e68756b2e736f6e61722e637573746f6d2e6a6176613a6a6176612d637573746f6d2d72756c6573\last_event_polling.pb
GET 200 https://sonar/api/developers/search_events?projects=com.foo.sonar.custom.java%3Ajava-custom-rules&from=2023-09-18T16%3A28%3A31%2B0200 | response time=49ms
Storing last event polling in C:\Wks\Eclipse\2023-06.sonarlint\storage\736f6e6172\projects\64652e68756b2e736f6e61722e637573746f6d2e6a6176613a6a6176612d637573746f6d2d72756c6573\last_event_polling.pb
GET 200 https://sonar/api/developers/search_events?projects=com.foo.sonar.custom.java%3Ajava-custom-rules&from=2023-09-18T16%3A29%3A31%2B0200 | response time=295ms
Storing last event polling in C:\Wks\Eclipse\2023-06.sonarlint\storage\736f6e6172\projects\64652e68756b2e736f6e61722e637573746f6d2e6a6176613a6a6176612d637573746f6d2d72756c6573\last_event_polling.pb
GET 200 https://sonar/api/developers/search_events?projects=com.foo.sonar.custom.java%3Ajava-custom-rules&from=2023-09-18T16%3A30%3A31%2B0200 | response time=52ms
Storing last event polling in C:\Wks\Eclipse\2023-06.sonarlint\storage\736f6e6172\projects\64652e68756b2e736f6e61722e637573746f6d2e6a6176613a6a6176612d637573746f6d2d72756c6573\last_event_polling.pb
GET 200 https://sonar/api/developers/search_events?projects=com.foo.sonar.custom.java%3Ajava-custom-rules&from=2023-09-18T16%3A31%3A31%2B0200 | response time=74ms
Storing last event polling in C:\Wks\Eclipse\2023-06.sonarlint\storage\736f6e6172\projects\64652e68756b2e736f6e61722e637573746f6d2e6a6176613a6a6176612d637573746f6d2d72756c6573\last_event_polling.pb
Failed to start server (300s timeout)
org.sonar.plugins.javascript.nodejs.NodeCommandException: Failed to start server (300s timeout)
at org.sonar.plugins.javascript.eslint.BridgeServerImpl.startServer(BridgeServerImpl.java:188)
at org.sonar.plugins.javascript.eslint.BridgeServerImpl.startServerLazily(BridgeServerImpl.java:293)
at org.sonar.plugins.javascript.eslint.AbstractEslintSensor.execute(AbstractEslintSensor.java:73)
at org.sonarsource.sonarlint.core.analysis.container.analysis.sensor.SensorsExecutor.executeSensor(SensorsExecutor.java:75)
at org.sonarsource.sonarlint.core.analysis.container.analysis.sensor.SensorsExecutor.execute(SensorsExecutor.java:66)
at org.sonarsource.sonarlint.core.analysis.container.analysis.AnalysisContainer.doAfterStart(AnalysisContainer.java:122)
at org.sonarsource.sonarlint.core.plugin.commons.container.SpringComponentContainer.startComponents(SpringComponentContainer.java:182)
at org.sonarsource.sonarlint.core.plugin.commons.container.SpringComponentContainer.execute(SpringComponentContainer.java:161)
at org.sonarsource.sonarlint.core.analysis.container.module.ModuleContainer.analyze(ModuleContainer.java:71)
at org.sonarsource.sonarlint.core.analysis.command.AnalyzeCommand.execute(AnalyzeCommand.java:58)
at org.sonarsource.sonarlint.core.analysis.command.AnalyzeCommand.execute(AnalyzeCommand.java:32)
at org.sonarsource.sonarlint.core.analysis.AnalysisEngine$AsyncCommand.execute(AnalysisEngine.java:153)
at org.sonarsource.sonarlint.core.analysis.AnalysisEngine.executeQueuedCommands(AnalysisEngine.java:71)
at java.base/java.lang.Thread.run(Thread.java:833)
Gilbert