Fetching children of a translation unit results in an endless loop · Issue #358 · eclipse-cdt/cdt-lsp · GitHub
More Web Proxy on the site http://driver.im/
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When an exception occur while fetching children of a translation unit in the project explorer view:
The fetch will result in an endless call loop of org.eclipse.cdt.lsp.internal.ui.navigator.SymbolsManager.refreshTreeContentFromLS(CompileUnit)
!ENTRYorg.eclipse.lsp4e402024-07-2611:12:36.436
!MESSAGEjava.io.UncheckedIOException: java.io.IOException: Cannotrunprogram"C:\clangd\clangd_18.1.3\bi\clangd.exe" (indirectory"C:\Users\blub\cdt-main\eclipse"): CreateProcesserror=2, Thesystemcannotfindthefilespecified
!STACK0java.util.concurrent.CompletionException: java.io.UncheckedIOException: java.io.IOException: Cannotrunprogram"C:\clangd\clangd_18.1.3\bi\clangd.exe" (indirectory"C:\Users\blub\cdt-main\eclipse"): CreateProcesserror=2, Thesystemcannotfindthefilespecifiedatjava.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:315)
atjava.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:320)
atjava.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1770)
atjava.base/java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1760)
atjava.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387)
atjava.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312)
atjava.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843)
atjava.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808)
atjava.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188)
Causedby: java.io.UncheckedIOException: java.io.IOException: Cannotrunprogram "C:\clangd\clangd_18.1.3\bi\clangd.exe" (indirectory "C:\Users\blub\cdt-main\eclipse"): CreateProcess error=2, The system cannot find the file specified at org.eclipse.lsp4e.LanguageServerWrapper.lambda$0(LanguageServerWrapper.java:297) at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768) ... 6 moreCaused by: java.io.IOException: Cannot run program "C:\clangd\clangd_18.1.3\bi\clangd.exe" (in directory "C:\Users\blub\cdt-main\eclipse"): CreateProcess error=2, The system cannot find the file specified
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1170)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1089)
at org.eclipse.lsp4e.server.ProcessStreamConnectionProvider.start(ProcessStreamConnectionProvider.java:55)
at org.eclipse.lsp4e.LoggingStreamConnectionProviderProxy.start(LoggingStreamConnectionProviderProxy.java:227)
at org.eclipse.lsp4e.LanguageServerWrapper.lambda$0(LanguageServerWrapper.java:295)
... 7 more
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
at java.base/java.lang.ProcessImpl.create(Native Method)
at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:500)
at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:159)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1126)
... 11 more
!ENTRY org.eclipse.cdt.lsp 4 0 2024-07-26 11:12:36.437
!MESSAGE java.util.concurrent.CancellationException
!STACK 0
java.util.concurrent.ExecutionException: java.util.concurrent.CancellationException
at java.base/java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:396)
at java.base/java.util.concurrent.CompletableFuture.get(CompletableFuture.java:2096)
at org.eclipse.cdt.lsp.internal.ui.navigator.SymbolsManager.refreshTreeContentFromLS(SymbolsManager.java:248)
at org.eclipse.cdt.lsp.internal.ui.navigator.SymbolsManager.getCompileUnitElements(SymbolsManager.java:223)
at org.eclipse.cdt.lsp.internal.ui.navigator.SymbolsManager.fetchDeferredChildren(SymbolsManager.java:129)
at org.eclipse.ui.progress.DeferredTreeContentManager$1.run(DeferredTreeContentManager.java:215)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
Caused by: java.util.concurrent.CancellationException
at java.base/java.util.concurrent.CompletableFuture.cancel(CompletableFuture.java:2510)
at org.eclipse.lsp4e.LanguageServerWrapper.stop(LanguageServerWrapper.java:535)
at org.eclipse.lsp4e.LanguageServerWrapper.lambda$9(LanguageServerWrapper.java:359)
at java.base/java.util.concurrent.CompletableFuture.uniExceptionally(CompletableFuture.java:990)
at java.base/java.util.concurrent.CompletableFuture$UniExceptionally.tryFire(CompletableFuture.java:974)
at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:510)
at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1773)
at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1760)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312)
at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188)
The text was updated successfully, but these errors were encountered:
…lorer
as long as compileUnit.isDirty == true, the tree tries to fetch the
children on the translation unit. The reason why compileUnit.isDirty was
assigned to response == null, was when a TimeoutException may occur.
This has been considered.
fixeseclipse-cdt#358
as long as compileUnit.isDirty == true, the tree tries to fetch the
children on the translation unit. The reason why compileUnit.isDirty was
assigned to response == null, was when a TimeoutException may occur.
This has been considered.
fixes#358
When an exception occur while fetching children of a translation unit in the project explorer view:

The fetch will result in an endless call loop of
org.eclipse.cdt.lsp.internal.ui.navigator.SymbolsManager.refreshTreeContentFromLS(CompileUnit)
The text was updated successfully, but these errors were encountered: