Uploaded image for project: 'SonarLint For IntelliJ'
  1. SonarLint For IntelliJ
  2. SLI-262

java.io.IOException when connecting to a SonarQube with SonarTS

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Connected Mode
    • Labels:
      None

      Description

      SLI doesn't yet support SonarTS but tries to start SonarTS server which generates the following exception:

      Starting SonarTS Server
      Deploying bundle from `/sonarts-bundle.zip` to `/Users/christophelevis/Library/Caches/IdeaIC2017.3/tmp/sonarlint/.sonartmp_3944677559353685044/4175871961251783334`
      No value provided by SonarLint for TypeScript location; property sonar.typescript.internal.typescriptLocation is missing
      Failed to start SonarTS Server
      java.io.IOException: Cannot run program "node": error=2, No such file or directory
      	at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048) ~[na:1.8.0_152-release]
      	at org.sonar.plugin.typescript.ContextualServer.startSonarTSServer(ContextualServer.java:106) [sonar-typescript-plugin-1.5.0.2122.jar:na]
      	at org.sonar.plugin.typescript.ContextualServer.start(ContextualServer.java:82) [sonar-typescript-plugin-1.5.0.2122.jar:na]
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_152-release]
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_152-release]
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_152-release]
      	at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_152-release]
      	at org.picocontainer.lifecycle.ReflectionLifecycleStrategy.invokeMethod(ReflectionLifecycleStrategy.java:110) [na:na]
      	at org.picocontainer.lifecycle.ReflectionLifecycleStrategy.start(ReflectionLifecycleStrategy.java:89) [na:na]
      	at org.sonarsource.sonarlint.core.container.ComponentContainer$1.start(ComponentContainer.java:279) [na:na]
      	at org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.start(AbstractInjectionFactory.java:84) [na:na]
      	at org.picocontainer.behaviors.AbstractBehavior.start(AbstractBehavior.java:169) [na:na]
      	at org.picocontainer.behaviors.Stored$RealComponentLifecycle.start(Stored.java:132) [na:na]
      	at org.picocontainer.behaviors.Stored.start(Stored.java:110) [na:na]
      	at org.picocontainer.DefaultPicoContainer.potentiallyStartAdapter(DefaultPicoContainer.java:1016) [na:na]
      	at org.picocontainer.DefaultPicoContainer.startAdapters(DefaultPicoContainer.java:1009) [na:na]
      	at org.picocontainer.DefaultPicoContainer.start(DefaultPicoContainer.java:767) [na:na]
      	at org.sonarsource.sonarlint.core.container.ComponentContainer.startComponents(ComponentContainer.java:124) [na:na]
      	at org.sonarsource.sonarlint.core.container.storage.StorageContainer.doAfterStart(StorageContainer.java:118) [na:na]
      	at org.sonarsource.sonarlint.core.container.ComponentContainer.startComponents(ComponentContainer.java:125) [na:na]
      	at org.sonarsource.sonarlint.core.ConnectedSonarLintEngineImpl.start(ConnectedSonarLintEngineImpl.java:120) [na:na]
      	at org.sonarsource.sonarlint.core.ConnectedSonarLintEngineImpl.lambda$update$2(ConnectedSonarLintEngineImpl.java:182) [na:na]
      	at org.sonarsource.sonarlint.core.ConnectedSonarLintEngineImpl.withRwLock(ConnectedSonarLintEngineImpl.java:326) [na:na]
      	at org.sonarsource.sonarlint.core.ConnectedSonarLintEngineImpl.update(ConnectedSonarLintEngineImpl.java:175) [na:na]
      	at org.sonarlint.intellij.tasks.ServerUpdateTask.run(ServerUpdateTask.java:94) ~[na:na]
      	at org.sonarlint.intellij.tasks.ServerUpdateTask$2.run(ServerUpdateTask.java:81) ~[na:na]
      	at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:713) ~[na:na]
      	at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$1(CoreProgressManager.java:157) ~[na:na]
      	at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:543) ~[na:na]
      	at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:488) ~[na:na]
      	at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:94) ~[na:na]
      	at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:144) ~[na:na]
      	at com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run(ProgressManagerImpl.java:165) ~[na:na]
      	at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:315) ~[na:na]
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[na:1.8.0_152-release]
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[na:1.8.0_152-release]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) ~[na:1.8.0_152-release]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) ~[na:1.8.0_152-release]
      	at java.lang.Thread.run(Thread.java:745) ~[na:1.8.0_152-release]
      Caused by: java.io.IOException: error=2, No such file or directory
      	at java.lang.UNIXProcess.forkAndExec(Native Method) ~[na:1.8.0_152-release]
      	at java.lang.UNIXProcess.<init>(UNIXProcess.java:247) ~[na:1.8.0_152-release]
      	at java.lang.ProcessImpl.start(ProcessImpl.java:134) ~[na:1.8.0_152-release]
      	at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029) ~[na:1.8.0_152-release]
      	... 38 common frames omitted
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                christophe.levis Christophe Levis
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: