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
Is it possible to speciffy the java language server to ignore some folders in the workspace ?
I would need this because if the language server does not have rights to read one of the folder, it will stop solving imports.
Environment
Operating System: Linux Ubuntu 19.10
JDK version: 8
Visual Studio Code version: 1.45.0
Java extension version: 0.61.0
Steps To Reproduce
1.Have a working java project in your workspace
2. Add a folder with no access rights
3. Language server cannot solve imports anymore.
Log error:
Failed to scan /home/tomtom/Code/Levanna/templater-front
org.eclipse.core.runtime.CoreException: Failed to scan /home/tomtom/Code/Levanna/templater-front
at org.eclipse.jdt.ls.core.internal.managers.BasicFileDetector.scan(BasicFileDetector.java:136)
at org.eclipse.jdt.ls.core.internal.managers.GradleProjectImporter.applies(GradleProjectImporter.java:77)
at org.eclipse.jdt.ls.core.internal.managers.ProjectsManager.getImporter(ProjectsManager.java:233)
at org.eclipse.jdt.ls.core.internal.managers.ProjectsManager.importProjects(ProjectsManager.java:102)
at org.eclipse.jdt.ls.core.internal.managers.ProjectsManager.initializeProjects(ProjectsManager.java:94)
at org.eclipse.jdt.ls.core.internal.handlers.InitHandler$1.runInWorkspace(InitHandler.java:196)
at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:42)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
Caused by: java.nio.file.AccessDeniedException: /home/tomtom/Code/Levanna/templater-front/docker/mysql/data/performance_schema
at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:90)
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:116)
at java.base/sun.nio.fs.UnixFileSystemProvider.newDirectoryStream(UnixFileSystemProvider.java:432)
at java.base/java.nio.file.Files.newDirectoryStream(Files.java:471)
at java.base/java.nio.file.FileTreeWalker.visit(FileTreeWalker.java:300)
at java.base/java.nio.file.FileTreeWalker.next(FileTreeWalker.java:373)
at java.base/java.nio.file.Files.walkFileTree(Files.java:2760)
at org.eclipse.jdt.ls.core.internal.managers.BasicFileDetector.scanDir(BasicFileDetector.java:170)
at org.eclipse.jdt.ls.core.internal.managers.BasicFileDetector.scan(BasicFileDetector.java:134)
The text was updated successfully, but these errors were encountered:
Is it possible to speciffy the java language server to ignore some folders in the workspace ?
I would need this because if the language server does not have rights to read one of the folder, it will stop solving imports.
Environment
Steps To Reproduce
1.Have a working java project in your workspace
2. Add a folder with no access rights
3. Language server cannot solve imports anymore.
Log error:
The text was updated successfully, but these errors were encountered: