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
Failed to import projects
Failed to scan <REDACTED: user-file-path>
org.eclipse.core.runtime.CoreException: Failed to scan <REDACTED: user-file-path>
at org.eclipse.jdt.ls.core.internal.managers.BasicFileDetector.scan(BasicFileDetector.java:140)
at org.eclipse.jdt.ls.core.internal.managers.GradleProjectImporter.applies(GradleProjectImporter.java:154)
at org.eclipse.jdt.ls.core.internal.managers.ProjectsManager.importProjects(ProjectsManager.java:151)
at org.eclipse.jdt.ls.core.internal.managers.ProjectsManager.initializeProjects(ProjectsManager.java:114)
at org.eclipse.jdt.ls.core.internal.handlers.InitHandler$1.runInWorkspace(InitHandler.java:260)
at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:43)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
Caused by: java.nio.file.NoSuchFileException: <REDACTED: user-file-path>
at <REDACTED: user-file-path>(Unknown Source)
at <REDACTED: user-file-path>(Unknown Source)
at <REDACTED: user-file-path>(Unknown Source)
at <REDACTED: user-file-path>$Basic.readAttributes(Unknown Source)
at <REDACTED: user-file-path>$Basic.readAttributes(Unknown Source)
at <REDACTED: user-file-path>(Unknown Source)
at <REDACTED: user-file-path>(Unknown Source)
at <REDACTED: user-file-path>(Unknown Source)
at <REDACTED: user-file-path>(Unknown Source)
at <REDACTED: user-file-path>(Unknown Source)
at <REDACTED: user-file-path>(Unknown Source)
at org.eclipse.jdt.ls.core.internal.managers.BasicFileDetector.scanDir(BasicFileDetector.java:178)
at org.eclipse.jdt.ls.core.internal.managers.BasicFileDetector.scan(BasicFileDetector.java:138)
... 6 more
Failed to import projects
Failed to scan <REDACTED: user-file-path>
org.eclipse.core.runtime.CoreException: Failed to scan <REDACTED: user-file-path>
at org.eclipse.jdt.ls.core.internal.managers.BasicFileDetector.scan(BasicFileDetector.java:140)
at org.eclipse.jdt.ls.core.internal.managers.GradleProjectImporter.applies(GradleProjectImporter.java:154)
at org.eclipse.jdt.ls.core.internal.managers.ProjectsManager.importProjects(ProjectsManager.java:151)
at org.eclipse.jdt.ls.core.internal.managers.ProjectsManager.initializeProjects(ProjectsManager.java:114)
at org.eclipse.jdt.ls.core.internal.handlers.InitHandler$1.runInWorkspace(InitHandler.java:260)
at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:43)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
Caused by: java.nio.file.AccessDeniedException: <REDACTED: user-file-path>
at <REDACTED: user-file-path>(Unknown Source)
at <REDACTED: user-file-path>(Unknown Source)
at <REDACTED: user-file-path>(Unknown Source)
at <REDACTED: user-file-path>(Unknown Source)
at <REDACTED: user-file-path>(Unknown Source)
at <REDACTED: user-file-path>(Unknown Source)
at <REDACTED: user-file-path>(Unknown Source)
at <REDACTED: user-file-path>(Unknown Source)
at org.eclipse.jdt.ls.core.internal.managers.BasicFileDetector.scanDir(BasicFileDetector.java:178)
at org.eclipse.jdt.ls.core.internal.managers.BasicFileDetector.scan(BasicFileDetector.java:138)
... 6 more
Failed to import projects
Failed to scan <REDACTED: user-file-path>
org.eclipse.core.runtime.CoreException: Failed to scan <REDACTED: user-file-path>
at org.eclipse.jdt.ls.core.internal.managers.BasicFileDetector.scan(BasicFileDetector.java:140)
at org.eclipse.jdt.ls.core.internal.managers.GradleProjectImporter.applies(GradleProjectImporter.java:154)
at org.eclipse.jdt.ls.core.internal.managers.ProjectsManager.importProjects(ProjectsManager.java:151)
at org.eclipse.jdt.ls.core.internal.managers.ProjectsManager.initializeProjects(ProjectsManager.java:114)
at org.eclipse.jdt.ls.core.internal.handlers.InitHandler$1.runInWorkspace(InitHandler.java:260)
at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:43)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
Caused by: java.nio.file.FileSystemException: <REDACTED: user-file-path> <file>: Operation not permitted
at <REDACTED: user-file-path>(Unknown Source)
at <REDACTED: user-file-path>(Unknown Source)
at <REDACTED: user-file-path>(Unknown Source)
at <REDACTED: user-file-path>(Unknown Source)
at <REDACTED: user-file-path>(Unknown Source)
at <REDACTED: user-file-path>(Unknown Source)
at <REDACTED: user-file-path>(Unknown Source)
at <REDACTED: user-file-path>(Unknown Source)
at org.eclipse.jdt.ls.core.internal.managers.BasicFileDetector.scanDir(BasicFileDetector.java:178)
at org.eclipse.jdt.ls.core.internal.managers.BasicFileDetector.scan(BasicFileDetector.java:138)
... 6 more
The text was updated successfully, but these errors were encountered:
A reproducing step is to open a user home directory in VS Code, you probably get the scan error of AccessDeniedException due to some folder inaccessible. For example, on macOS, opening the home directory in VS Code, the language server scanner will throw error "Library.photoslibrary: Operation not permitted" and abort. Meanwhile, looking at the VS Code file explorer behavior, it just doesn't list the photo library tree if permission is not allowed. So In java language server, we can follow the same strategy and ignore the disallowed directory and continue.
The text was updated successfully, but these errors were encountered: