redhat-developer / vscode-java

Java Language Support for Visual Studio Code
Eclipse Public License 2.0
2.05k stars 420 forks source link

Fall back to 'stdio' transport if 'pipe' is likely to fail. #3652

Closed rgrunber closed 1 month ago

rgrunber commented 1 month ago

Note : This may feel a bit unsatisfying because there might be other ways pipe may fail on initialization. The more complete solution might be to re-start at https://github.com/redhat-developer/vscode-java/blob/2f5094fb858235120f55952cfb8f6ec987a1a4ac/src/TracingLanguageClient.ts#L27-L37 when detecting that the reason for failure was related to "pipe". That can be complicated though and the current approach would have caught the last 2 issues relating to pipe (permissions on the folder, and folder too long to generate file name)