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
The language server keeps logging the following error since #3140:
May 8, 2024, 3:44:46 PM Failed to build workspace.
jdt.ls-java-project does not exist
Java Model Exception: Error in Java Model (code 969): jdt.ls-java-project does not exist
at org.eclipse.jdt.internal.core.JavaElement.newJavaModelException(JavaElement.java:572)
at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:233)
at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:585)
at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:308)
at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:294)
at org.eclipse.jdt.internal.core.JavaElement.getChildren(JavaElement.java:249)
at org.eclipse.jdt.internal.core.JavaProject.getPackageFragmentRoots(JavaProject.java:2294)
at org.eclipse.jdt.internal.core.JavaProject.getPackageFragments(JavaProject.java:2318)
at org.eclipse.jdt.ls.core.internal.managers.ProjectsManager.cleanupResources(ProjectsManager.java:349)
at org.eclipse.jdt.ls.core.internal.handlers.BuildWorkspaceHandler.buildWorkspace(BuildWorkspaceHandler.java:64)
at org.eclipse.jdt.ls.core.internal.handlers.JDTLanguageServer.lambda$28(JDTLanguageServer.java:1001)
at org.eclipse.jdt.ls.core.internal.handlers.JDTLanguageServer.lambda$61(JDTLanguageServer.java:1236)
at java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:646)
at java.base/java.util.concurrent.CompletableFuture$Completion.exec(CompletableFuture.java:483)
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)
It's trying to clean the default project even though it was never created. In my setup, I'm adding workspace folders through workspace/didChangeWorkspaceFolders, and for each workspace folder, it creates an invisibly linked project. Those invisible linked projects don't show up ProjectUtils.getAllProjects(false).
Maybe the solution is as simple as replacing it with if (ProjectsManager.getDefaultProject().exists())?
The text was updated successfully, but these errors were encountered:
The language server keeps logging the following error since #3140:
The error comes from here:
eclipse.jdt.ls/org.eclipse.jdt.ls.core/src/org/eclipse/jdt/ls/core/internal/handlers/BuildWorkspaceHandler.java
Lines 59 to 61 in 7160575
It's trying to clean the default project even though it was never created. In my setup, I'm adding workspace folders through
workspace/didChangeWorkspaceFolders
, and for each workspace folder, it creates an invisibly linked project. Those invisible linked projects don't show upProjectUtils.getAllProjects(false)
.Maybe the solution is as simple as replacing it with
if (ProjectsManager.getDefaultProject().exists())
?The text was updated successfully, but these errors were encountered: