Failed to start SonarTS Server

SonarLint Version - 1.15.0
VS Code Version: 1.44.2
Node.js: 12.8.1
typescript version - 3.5.3

Error Message-

[Error - 12:48:51.652] java.net.SocketTimeoutException: Accept timed out
	at java.net.DualStackPlainSocketImpl.waitForNewConnection(Native Method)
	at java.net.DualStackPlainSocketImpl.socketAccept(Unknown Source)
	at java.net.AbstractPlainSocketImpl.accept(Unknown Source)
	at java.net.PlainSocketImpl.accept(Unknown Source)
	at java.net.ServerSocket.implAccept(Unknown Source)
	at java.net.ServerSocket.accept(Unknown Source)
	at org.sonar.plugin.typescript.ContextualServer.startSonarTSServer(ContextualServer.java:118)
	at org.sonar.plugin.typescript.ContextualServer.start(ContextualServer.java:92)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.sonarsource.sonarlint.shaded.org.picocontainer.lifecycle.ReflectionLifecycleStrategy.invokeMethod(ReflectionLifecycleStrategy.java:110)
	at org.sonarsource.sonarlint.shaded.org.picocontainer.lifecycle.ReflectionLifecycleStrategy.start(ReflectionLifecycleStrategy.java:89)
	at org.sonarsource.sonarlint.core.container.ComponentContainer$1.start(ComponentContainer.java:271)
	at org.sonarsource.sonarlint.shaded.org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.start(AbstractInjectionFactory.java:84)
	at org.sonarsource.sonarlint.shaded.org.picocontainer.behaviors.AbstractBehavior.start(AbstractBehavior.java:169)
	at org.sonarsource.sonarlint.shaded.org.picocontainer.behaviors.Stored$RealComponentLifecycle.start(Stored.java:132)
	at org.sonarsource.sonarlint.shaded.org.picocontainer.behaviors.Stored.start(Stored.java:110)
	at org.sonarsource.sonarlint.shaded.org.picocontainer.DefaultPicoContainer.potentiallyStartAdapter(DefaultPicoContainer.java:1016)
	at org.sonarsource.sonarlint.shaded.org.picocontainer.DefaultPicoContainer.startAdapters(DefaultPicoContainer.java:1009)
	at org.sonarsource.sonarlint.shaded.org.picocontainer.DefaultPicoContainer.start(DefaultPicoContainer.java:767)
	at org.sonarsource.sonarlint.core.container.ComponentContainer.startComponents(ComponentContainer.java:124)
	at org.sonarsource.sonarlint.core.container.standalone.StandaloneGlobalContainer.doAfterStart(StandaloneGlobalContainer.java:107)
	at org.sonarsource.sonarlint.core.container.ComponentContainer.startComponents(ComponentContainer.java:125)
	at org.sonarsource.sonarlint.core.StandaloneSonarLintEngineImpl.start(StandaloneSonarLintEngineImpl.java:66)
	at org.sonarsource.sonarlint.core.StandaloneSonarLintEngineImpl.<init>(StandaloneSonarLintEngineImpl.java:54)
	at org.sonarsource.sonarlint.ls.EnginesFactory.newStandaloneEngine(EnginesFactory.java:77)
	at org.sonarsource.sonarlint.ls.EnginesFactory.createStandaloneEngine(EnginesFactory.java:67)
	at org.sonarsource.sonarlint.ls.AnalysisManager.getOrCreateStandaloneEngine(AnalysisManager.java:130)
	at org.sonarsource.sonarlint.ls.CommandManager.listAllStandaloneRules(CommandManager.java:104)
	at org.sonarsource.sonarlint.ls.SonarLintLanguageServer.lambda$listAllRules$4(SonarLintLanguageServer.java:241)
	at java.util.concurrent.CompletableFuture.uniApply(Unknown Source)
	at java.util.concurrent.CompletableFuture$UniApply.tryFire(Unknown Source)
	at java.util.concurrent.CompletableFuture$Completion.exec(Unknown Source)
	at java.util.concurrent.ForkJoinTask.doExec(Unknown Source)
	at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(Unknown Source)
	at java.util.concurrent.ForkJoinPool.runWorker(Unknown Source)
	at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source)

Hello, thank you for reporting this.

Could you please provide a bit more context?

  • Which OS are you using?
  • Do you have other messages in the SonarLint output? You might want to enable sonarlint.output.showAnalyzerLogs and sonarlint.output.showVerboseLogs for more details

I am using Windows 10 Enterprise (1809, OS Build 17763.1158) and ia m trying to use sonar lint in disconnected mode below are the logs
I have removed rules from few places to reduce limit the chataters in the post

Executing C:\Program Files (x86)\Java\jre1.8.0_241\bin\java -jar c:\Users\xxxx\.vscode\extensions\sonarsource.sonarlint-vscode-1.15.0\server\sonarlint-ls.jar 54605 file:///c:/Users/xxxx/.vscode/extensions/sonarsource.sonarlint-vscode-1.15.0/analyzers/sonarjava.jar file:///c:/Users/xxxx/.vscode/extensions/sonarsource.sonarlint-vscode-1.15.0/analyzers/sonarjs.jar file:///c:/Users/xxxx/.vscode/extensions/sonarsource.sonarlint-vscode-1.15.0/analyzers/sonarphp.jar file:///c:/Users/xxxx/.vscode/extensions/sonarsource.sonarlint-vscode-1.15.0/analyzers/sonarpython.jar file:///c:/Users/xxxx/.vscode/extensions/sonarsource.sonarlint-vscode-1.15.0/analyzers/sonarts.jar file:///c:/Users/xxxx/.vscode/extensions/sonarsource.sonarlint-vscode-1.15.0/analyzers/sonarhtml.jar
[stdout] Binding to 54605
Child process connected on port 54605
[Trace - 12:48:30 PM] Sending request 'initialize - (0)'.
Params: {
    "processId": 6832,
    "rootPath": "c:\\Users\\xxxx\\xx\\ClientApp",
    "rootUri": "file:///c%3A/Users/xxxx/xx/ClientApp",
    "capabilities": {
        "workspace": {
            "applyEdit": true,
            "workspaceEdit": {
                "documentChanges": true,
                "resourceOperations": [
                    "create",
                    "rename",
                    "delete"
                ],
                "failureHandling": "textOnlyTransactional"
            },
            "didChangeConfiguration": {
                "dynamicRegistration": true
            },
            "didChangeWatchedFiles": {
                "dynamicRegistration": true
            },
            "symbol": {
                "dynamicRegistration": true,
                "symbolKind": {
                    "valueSet": [
                        1,
                        2,
                        3,
                        4,
                        5,
                        6,
                        7,
                        8,
                        9,
                        10,
                        11,
                        12,
                        13,
                        14,
                        15,
                        16,
                        17,
                        18,
                        19,
                        20,
                        21,
                        22,
                        23,
                        24,
                        25,
                        26
                    ]
                }
            },
            "executeCommand": {
                "dynamicRegistration": true
            },
            "configuration": true,
            "workspaceFolders": true
        },
        "textDocument": {
            "publishDiagnostics": {
                "relatedInformation": true
            },
            "synchronization": {
                "dynamicRegistration": true,
                "willSave": true,
                "willSaveWaitUntil": true,
                "didSave": true
            },
            "completion": {
                "dynamicRegistration": true,
                "contextSupport": true,
                "completionItem": {
                    "snippetSupport": true,
                    "commitCharactersSupport": true,
                    "documentationFormat": [
                        "markdown",
                        "plaintext"
                    ],
                    "deprecatedSupport": true,
                    "preselectSupport": true
                },
                "completionItemKind": {
                    "valueSet": [
                        1,
                        2,
                        3,
                        4,
                        5,
                        6,
                        7,
                        8,
                        9,
                        10,
                        11,
                        12,
                        13,
                        14,
                        15,
                        16,
                        17,
                        18,
                        19,
                        20,
                        21,
                        22,
                        23,
                        24,
                        25
                    ]
                }
            },
            "hover": {
                "dynamicRegistration": true,
                "contentFormat": [
                    "markdown",
                    "plaintext"
                ]
            },
            "signatureHelp": {
                "dynamicRegistration": true,
                "signatureInformation": {
                    "documentationFormat": [
                        "markdown",
                        "plaintext"
                    ],
                    "parameterInformation": {
                        "labelOffsetSupport": true
                    }
                }
            },
            "definition": {
                "dynamicRegistration": true,
                "linkSupport": true
            },
            "references": {
                "dynamicRegistration": true
            },
            "documentHighlight": {
                "dynamicRegistration": true
            },
            "documentSymbol": {
                "dynamicRegistration": true,
                "symbolKind": {
                    "valueSet": [
                        1,
                        2,
                        3,
                        4,
                        5,
                        6,
                        7,
                        8,
                        9,
                        10,
                        11,
                        12,
                        13,
                        14,
                        15,
                        16,
                        17,
                        18,
                        19,
                        20,
                        21,
                        22,
                        23,
                        24,
                        25,
                        26
                    ]
                },
                "hierarchicalDocumentSymbolSupport": true
            },
            "codeAction": {
                "dynamicRegistration": true,
                "codeActionLiteralSupport": {
                    "codeActionKind": {
                        "valueSet": [
                            "",
                            "quickfix",
                            "refactor",
                            "refactor.extract",
                            "refactor.inline",
                            "refactor.rewrite",
                            "source",
                            "source.organizeImports"
                        ]
                    }
                }
            },
            "codeLens": {
                "dynamicRegistration": true
            },
            "formatting": {
                "dynamicRegistration": true
            },
            "rangeFormatting": {
                "dynamicRegistration": true
            },
            "onTypeFormatting": {
                "dynamicRegistration": true
            },
            "rename": {
                "dynamicRegistration": true,
                "prepareSupport": true
            },
            "documentLink": {
                "dynamicRegistration": true
            },
            "typeDefinition": {
                "dynamicRegistration": true,
                "linkSupport": true
            },
            "implementation": {
                "dynamicRegistration": true,
                "linkSupport": true
            },
            "colorProvider": {
                "dynamicRegistration": true
            },
            "foldingRange": {
                "dynamicRegistration": true,
                "rangeLimit": 5000,
                "lineFoldingOnly": true
            },
            "declaration": {
                "dynamicRegistration": true,
                "linkSupport": true
            }
        }
    },
    "initializationOptions": {
        "productKey": "vscode",
        "telemetryStorage": "c:\\Users\\xxxx\\.vscode\\extensions\\sonarlint_usage",
        "productName": "SonarLint VSCode",
        "productVersion": "1.15.0",
        "ideVersion": "1.44.2",
        "typeScriptLocation": "c:\\Users\\xxxx\\AppData\\Local\\Programs\\Microsoft VS Code\\resources\\app\\extensions\\node_modules"
    },
    "trace": "verbose",
    "workspaceFolders": [
        {
            "uri": "file:///c%3A/Users/xxxx/xx/ClientApp",
            "name": "ClientApp"
        }
    ]
}


[Trace - 12:48:32 PM] Received response 'initialize - (0)' in 2073ms.
Result: {
    "capabilities": {
        "textDocumentSync": {
            "openClose": true,
            "change": 1,
            "save": {
                "includeText": true
            }
        },
        "codeActionProvider": true,
        "executeCommandProvider": {
            "commands": [
                "SonarLint.UpdateAllBindings",
                "SonarLint.OpenRuleDescCodeAction",
                "SonarLint.OpenStandaloneRuleDesc"
            ]
        },
        "workspace": {
            "workspaceFolders": {
                "supported": true,
                "changeNotifications": true
            }
        }
    }
}


[Trace - 12:48:32 PM] Sending notification 'initialized'.
Params: {}


[Trace - 12:48:32 PM] Sending notification 'workspace/didChangeConfiguration'.
Params: {
    "settings": {
        "sonarlint": {
            "output": {
                "showAnalyzerLogs": true,
                "showVerboseLogs": true
            },
            "trace": {
                "server": "verbose"
            },
            "testFilePattern": "",
            "analyzerProperties": {},
            "disableTelemetry": true,
            "rules": {
                "typescript:S1440": {
                    "level": "on"
                },
                "typescript:S2685": {
                    "level": "on"
                },
                "typescript:S4326": {
                    "level": "on"
                },
                "typescript:S4139": {
                    "level": "on"
                },
                "typescript:S4138": {
                    "level": "on"
                },
                "typescript:S3533": {
                    "level": "on"
                },
                "typescript:S4156": {
                    "level": "on"
                },
                "typescript:S1821": {
                    "level": "on"
                },
                "typescript:S4327": {
                    "level": "on"
                },
                "typescript:S1105": {
                    "level": "on"
                },
                "typescript:S1121": {
                    "level": "on"
                },
                "typescript:S101": {
                    "level": "on"
                },
                "typescript:S3776": {
                    "level": "on"
                },
                "typescript:S1066": {
                    "level": "on"
                },
                "typescript:S2228": {
                    "level": "on"
                },
                "typescript:S121": {
                    "level": "on"
                },
                "typescript:S4157": {
                    "level": "on"
                },
                "typescript:S4328": {
                    "level": "on"
                },
                "typescript:S1874": {
                    "level": "on"
                },
                "typescript:S113": {
                    "level": "on"
                },
                "typescript:S104": {
                    "level": "on"
                },
                "typescript:S1541": {
                    "level": "on"
                },
                "typescript:S138": {
                    "level": "on"
                },
                "typescript:S107": {
                    "level": "on"
                },
                "typescript:S3801": {
                    "level": "on"
                },
                "typescript:S3863": {
                    "level": "on"
                },
                "typescript:S881": {
                    "level": "on"
                },
                "typescript:S4023": {
                    "level": "on"
                },
                "typescript:S3626": {
                    "level": "on"
                },
                "typescript:S103": {
                    "level": "on"
                },
                "typescript:S1488": {
                    "level": "on"
                },
                "typescript:S109": {
                    "level": "on"
                },
                "typescript:S4136": {
                    "level": "on"
                },
                "typescript:S2966": {
                    "level": "on"
                },
                "typescript:S3498": {
                    "level": "on"
                },
                "typescript:S1439": {
                    "level": "on"
                },
                "typescript:S4798": {
                    "level": "on"
                },
                "typescript:S4782": {
                    "level": "on"
                },
                "typescript:S4324": {
                    "level": "on"
                },
                "typescript:S3257": {
                    "level": "on"
                },
                "typescript:S2933": {
                    "level": "on"
                },
                "typescript:S1441": {
                    "level": "on"
                },
                "typescript:S125": {
                    "level": "on"
                },
                "typescript:S4634": {
                    "level": "on"
                },
                "typescript:S122": {
                    "level": "on"
                },
                "typescript:S1438": {
                    "level": "on"
                },
                "typescript:S1192": {
                    "level": "on"
                },
                "typescript:S3402": {
                    "level": "on"
                },
                "typescript:S3696": {
                    "level": "on"
                },
                "typescript:S105": {
                    "level": "on"
                },
                "typescript:S3786": {
                    "level": "on"
                },
                "typescript:S4624": {
                    "level": "on"
                },
                "typescript:S3512": {
                    "level": "on"
                },
                "typescript:S4204": {
                    "level": "on"
                },
                "typescript:S1451": {
                    "level": "on"
                },
                "typescript:S4323": {
                    "level": "on"
                },
                "typescript:S4137": {
                    "level": "on"
                },
                "typescript:S4322": {
                    "level": "on"
                },
                "typescript:S3353": {
                    "level": "on"
                },
                "typescript:S4622": {
                    "level": "on"
                },
                "typescript:S117": {
                    "level": "on"
                },
                "typescript:S3504": {
                    "level": "on"
                },
                "typescript:S1524": {
                    "level": "on"
                },
                "Web:InputWithoutLabelCheck": {
                    "level": "on"
                },
                "Web:UnclosedTagCheck": {
                    "level": "on"
                },
                "Web:DoubleQuotesCheck": {
                    "level": "on"
                },
                "Web:IllegalTagLibsCheck": {
                    "level": "on"
                },
                "Web:DynamicJspIncludeCheck": {
                    "level": "on"
                },
                "Web:PageWithoutFaviconCheck": {
                    "level": "on"
                },
                "Web:ComplexityCheck": {
                    "level": "on"
                },
                "Web:FileLengthCheck": {
                    "level": "on"
                },
                "Web:WmodeIsWindowCheck": {
                    "level": "on"
                },
                "Web:NonConsecutiveHeadingCheck": {
                    "level": "on"
                },
                "Web:AvoidHtmlCommentCheck": {
                    "level": "on"
                },
                "Web:ImgWithoutWidthOrHeightCheck": {
                    "level": "on"
                },
                "Web:LongJavaScriptCheck": {
                    "level": "on"
                },
                "Web:UnifiedExpressionCheck": {
                    "level": "on"
                },
                "Web:JspScriptletCheck": {
                    "level": "on"
                },
                "Web:InternationalizationCheck": {
                    "level": "on"
                },
                "Web:MaxLineLengthCheck": {
                    "level": "on"
                },
                "Web:LinkToNothingCheck": {
                    "level": "on"
                },
                "Web:LinksIdenticalTextsDifferentTargetsCheck": {
                    "level": "on"
                },
                "Web:MouseEventWithoutKeyboardEquivalentCheck": {
                    "level": "on"
                },
                "Web:MultiplePageDirectivesCheck": {
                    "level": "on"
                },
                "Web:IllegalTabCheck": {
                    "level": "on"
                },
                "Web:InlineStyleCheck": {
                    "level": "on"
                },
                "Web:HeaderCheck": {
                    "level": "on"
                },
                "Web:S1436": {
                    "level": "on"
                },
                "Web:RequiredAttributeCheck": {
                    "level": "on"
                },
                "Web:IllegalElementCheck": {
                    "level": "on"
                },
                "Web:IllegalNamespaceCheck": {
                    "level": "on"
                },
                "Web:S1829": {
                    "level": "on"
                },
                "Web:WhiteSpaceAroundCheck": {
                    "level": "on"
                }
            },
            "ls": {
                "javaHome": "C:\\Program Files (x86)\\Java\\jre1.8.0_241",
                "vmargs": ""
            },
            "connectedMode": {
                "servers": [],
                "connections": {
                    "sonarqube": [],
                    "sonarcloud": []
                },
                "project": {}
            }
        }
    }
}


[Trace - 12:48:32 PM] Sending request 'sonarlint/listAllRules - (1)'.
[Trace - 12:48:32 PM] Received request 'workspace/configuration - (1)'.
Params: {
    "items": [
        {
            "section": "sonarlint"
        }
    ]
}


[Trace - 12:48:32 PM] Sending response 'workspace/configuration - (1)'. Processing request took 14ms
Result: [
    {
        "output": {
            "showAnalyzerLogs": true,
            "showVerboseLogs": true
        },
        "trace": {
            "server": "verbose"
        },
        "testFilePattern": "",
        "analyzerProperties": {},
        "disableTelemetry": true,
        "rules": {
        },
        "ls": {
            "javaHome": "C:\\Program Files (x86)\\Java\\jre1.8.0_241",
            "vmargs": ""
        },
        "connectedMode": {
            "servers": [],
            "connections": {
                "sonarqube": [],
                "sonarcloud": []
            },
            "project": {}
        }
    }
]


[Trace - 12:48:32 PM] Received request 'workspace/configuration - (2)'.
Params: {
    "items": [
        {
            "scopeUri": "file:///c%3A/Users/xxxx/xx/ClientApp",
            "section": "sonarlint"
        }
    ]
}


[Trace - 12:48:32 PM] Sending response 'workspace/configuration - (2)'. Processing request took 6ms
Result: [
    {
        "output": {
            "showAnalyzerLogs": true,
            "showVerboseLogs": true
        },
        "trace": {
            "server": "verbose"
        },
        "testFilePattern": "",
        "analyzerProperties": {},
        "disableTelemetry": true,
        "rules": {          
        },
        "ls": {
            "javaHome": "C:\\Program Files (x86)\\Java\\jre1.8.0_241",
            "vmargs": ""
        },
        "connectedMode": {
            "servers": [],
            "connections": {
                "sonarqube": [],
                "sonarcloud": []
            },
            "project": {}
        }
    }
]


[Trace - 12:48:32 PM] Received notification 'window/logMessage'.
Params: {
    "type": 4,
    "message": "[Debug - 12:48:32.396] Default settings updated: WorkspaceFolderSettings[analyzerProperties={},testFilePattern=,connectionId=<null>,projectKey=<null>]"
}


[Debug - 12:48:32.396] Default settings updated: WorkspaceFolderSettings[analyzerProperties={},testFilePattern=,connectionId=<null>,projectKey=<null>]
[Trace - 12:48:33 PM] Received notification 'window/logMessage'.
Params: {
    "type": 4,
    "message": "[Debug - 12:48:33.114] Create : C:\\Users\\xxxx\\.sonarlint\\plugins"
}


[Debug - 12:48:33.114] Create : C:\Users\xxxx\.sonarlint\plugins
[Trace - 12:48:33 PM] Received notification 'window/logMessage'.
Params: {
    "type": 4,
    "message": "[Debug - 12:48:33.121] Plugin cache: C:\\Users\\xxxx\\.sonarlint\\plugins"
}


[Debug - 12:48:33.121] Plugin cache: C:\Users\xxxx\.sonarlint\plugins
[Trace - 12:48:33 PM] Received notification 'window/logMessage'.
Params: {
    "type": 4,
    "message": "[Debug - 12:48:33.122] Create : C:\\Users\\xxxx\\.sonarlint\\plugins\\_tmp"
}


[Debug - 12:48:33.122] Create : C:\Users\xxxx\.sonarlint\plugins\_tmp
[Trace - 12:48:33 PM] Received notification 'window/logMessage'.
Params: {
    "type": 4,
    "message": "[Debug - 12:48:33.539] Load plugins"
}


[Debug - 12:48:33.539] Load plugins
[Trace - 12:48:33 PM] Received notification 'window/logMessage'.
Params: {
    "type": 4,
    "message": "[Debug - 12:48:33.657] Load plugins (done) | time=118ms"
}


[Debug - 12:48:33.657] Load plugins (done) | time=118ms
[Trace - 12:48:33 PM] Received notification 'window/logMessage'.
Params: {
    "type": 4,
    "message": "[Debug - 12:48:33.769] Plugins:"
}


[Debug - 12:48:33.769] Plugins:
[Trace - 12:48:33 PM] Received notification 'window/logMessage'.
Params: {
    "type": 4,
    "message": "[Debug - 12:48:33.770]   * SonarPython 2.5.0.5733 (python)"
}


[Debug - 12:48:33.770]   * SonarPython 2.5.0.5733 (python)
[Trace - 12:48:33 PM] Received notification 'window/logMessage'.
Params: {
    "type": 4,
    "message": "[Debug - 12:48:33.771]   * SonarJava 6.1.0.20866 (java)"
}


[Debug - 12:48:33.771]   * SonarJava 6.1.0.20866 (java)
[Trace - 12:48:33 PM] Received notification 'window/logMessage'.
Params: {
    "type": 4,
    "message": "[Debug - 12:48:33.772]   * SonarHTML 3.2.0.2082 (web)"
}


[Debug - 12:48:33.772]   * SonarHTML 3.2.0.2082 (web)
[Trace - 12:48:33 PM] Received notification 'window/logMessage'.
Params: {
    "type": 4,
    "message": "[Debug - 12:48:33.773]   * SonarPHP 3.3.0.5166 (php)"
}


[Debug - 12:48:33.773]   * SonarPHP 3.3.0.5166 (php)
[Trace - 12:48:33 PM] Received notification 'window/logMessage'.
Params: {
    "type": 4,
    "message": "[Debug - 12:48:33.774]   * SonarTS 1.9.0.3766 (typescript)"
}


[Debug - 12:48:33.774]   * SonarTS 1.9.0.3766 (typescript)
[Trace - 12:48:33 PM] Received notification 'window/logMessage'.
Params: {
    "type": 4,
    "message": "[Debug - 12:48:33.775]   * SonarJS 5.1.1.7506 (javascript)"
}


[Debug - 12:48:33.775]   * SonarJS 5.1.1.7506 (javascript)
[Trace - 12:48:37 PM] Received notification 'window/logMessage'.
Params: {
    "type": 4,
    "message": "[Info  - 12:48:37.303] Starting SonarTS Server"
}


[Info  - 12:48:37.303] Starting SonarTS Server
[Trace - 12:48:37 PM] Received notification 'window/logMessage'.
Params: {
    "type": 4,
    "message": "[Debug - 12:48:37.307] Deploying bundle to C:\\Users\\xxxx\\.sonarlint\\work\\.sonartmp_6160872063041201621\\2242873487172972256"
}


[Debug - 12:48:37.307] Deploying bundle to C:\Users\xxxx\.sonarlint\work\.sonartmp_6160872063041201621\2242873487172972256
[Trace - 12:48:47 PM] Received notification 'window/logMessage'.
Params: {
    "type": 4,
    "message": "[Info  - 12:48:47.302] The node identifier for xxxxx is qa9xchue8x."
}


[Info  - 12:48:47.302] The node identifier for xxxxx is qa9xchue8x.
[Trace - 12:48:51 PM] Received notification 'window/logMessage'.
Params: {
    "type": 4,
    "message": "[Error - 12:48:51.650] Failed to start SonarTS Server"
}


[Error - 12:48:51.650] Failed to start SonarTS Server
[Trace - 12:48:51 PM] Received notification 'window/logMessage'.
Params: {
    "type": 4,
    "message": "[Error - 12:48:51.652] java.net.SocketTimeoutException: Accept timed out\r\n\tat java.net.DualStackPlainSocketImpl.waitForNewConnection(Native Method)\r\n\tat java.net.DualStackPlainSocketImpl.socketAccept(Unknown Source)\r\n\tat java.net.AbstractPlainSocketImpl.accept(Unknown Source)\r\n\tat java.net.PlainSocketImpl.accept(Unknown Source)\r\n\tat java.net.ServerSocket.implAccept(Unknown Source)\r\n\tat java.net.ServerSocket.accept(Unknown Source)\r\n\tat org.sonar.plugin.typescript.ContextualServer.startSonarTSServer(ContextualServer.java:118)\r\n\tat org.sonar.plugin.typescript.ContextualServer.start(ContextualServer.java:92)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)\r\n\tat java.lang.reflect.Method.invoke(Unknown Source)\r\n\tat org.sonarsource.sonarlint.shaded.org.picocontainer.lifecycle.ReflectionLifecycleStrategy.invokeMethod(ReflectionLifecycleStrategy.java:110)\r\n\tat org.sonarsource.sonarlint.shaded.org.picocontainer.lifecycle.ReflectionLifecycleStrategy.start(ReflectionLifecycleStrategy.java:89)\r\n\tat org.sonarsource.sonarlint.core.container.ComponentContainer$1.start(ComponentContainer.java:271)\r\n\tat org.sonarsource.sonarlint.shaded.org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.start(AbstractInjectionFactory.java:84)\r\n\tat org.sonarsource.sonarlint.shaded.org.picocontainer.behaviors.AbstractBehavior.start(AbstractBehavior.java:169)\r\n\tat org.sonarsource.sonarlint.shaded.org.picocontainer.behaviors.Stored$RealComponentLifecycle.start(Stored.java:132)\r\n\tat org.sonarsource.sonarlint.shaded.org.picocontainer.behaviors.Stored.start(Stored.java:110)\r\n\tat org.sonarsource.sonarlint.shaded.org.picocontainer.DefaultPicoContainer.potentiallyStartAdapter(DefaultPicoContainer.java:1016)\r\n\tat org.sonarsource.sonarlint.shaded.org.picocontainer.DefaultPicoContainer.startAdapters(DefaultPicoContainer.java:1009)\r\n\tat org.sonarsource.sonarlint.shaded.org.picocontainer.DefaultPicoContainer.start(DefaultPicoContainer.java:767)\r\n\tat org.sonarsource.sonarlint.core.container.ComponentContainer.startComponents(ComponentContainer.java:124)\r\n\tat org.sonarsource.sonarlint.core.container.standalone.StandaloneGlobalContainer.doAfterStart(StandaloneGlobalContainer.java:107)\r\n\tat org.sonarsource.sonarlint.core.container.ComponentContainer.startComponents(ComponentContainer.java:125)\r\n\tat org.sonarsource.sonarlint.core.StandaloneSonarLintEngineImpl.start(StandaloneSonarLintEngineImpl.java:66)\r\n\tat org.sonarsource.sonarlint.core.StandaloneSonarLintEngineImpl.<init>(StandaloneSonarLintEngineImpl.java:54)\r\n\tat org.sonarsource.sonarlint.ls.EnginesFactory.newStandaloneEngine(EnginesFactory.java:77)\r\n\tat org.sonarsource.sonarlint.ls.EnginesFactory.createStandaloneEngine(EnginesFactory.java:67)\r\n\tat org.sonarsource.sonarlint.ls.AnalysisManager.getOrCreateStandaloneEngine(AnalysisManager.java:130)\r\n\tat org.sonarsource.sonarlint.ls.CommandManager.listAllStandaloneRules(CommandManager.java:104)\r\n\tat org.sonarsource.sonarlint.ls.SonarLintLanguageServer.lambda$listAllRules$4(SonarLintLanguageServer.java:241)\r\n\tat java.util.concurrent.CompletableFuture.uniApply(Unknown Source)\r\n\tat java.util.concurrent.CompletableFuture$UniApply.tryFire(Unknown Source)\r\n\tat java.util.concurrent.CompletableFuture$Completion.exec(Unknown Source)\r\n\tat java.util.concurrent.ForkJoinTask.doExec(Unknown Source)\r\n\tat java.util.concurrent.ForkJoinPool$WorkQueue.runTask(Unknown Source)\r\n\tat java.util.concurrent.ForkJoinPool.runWorker(Unknown Source)\r\n\tat java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source)\r\n"
}

Thank you for these additional details.

It looks like the (Java-based) language server is having trouble communicating with the (Node-based) TypeScript analysis server.

  • Is the node executable somewhere in the %PATH% environment variable?
    • Best way to check this would be to run the following on a command prompt:
      node -v
  • When opening a TS file, do you notice a node process starting in the background?
  • Could you have a firewall or paranoid malware scanner that could prevent the communication between the (Java-based) SonarLint language server and the (node-based) TS analyzer?

I have found the root cause of the issue.
Root Cause: Harvest SCM is installed on system which have node.exe file in it. Its path is also added to environment path variable. So, when it tries to run node it reaches harvest SCCM node.

Is there any other way we can set path of nodejs in the SonarLint will be helpful. so, it connects to correct node.exe

1 Like

Hey, thank you for reporting back, and glad that you found the root cause!

Unfortunately, there is currently no setting that I know of to “force” SonarLint (or the JS/TS analyzer) to use a given Node.js runtime - and I think your use case gives a very valid example of why we could work on such a feature.

In the meantime, a possible workaround could be to start VS Code from a command line window that has Node.js before Harvest SCCM on the %PATH%.

1 Like