Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when parsing resource filter #2910

Closed
jdneo opened this issue Oct 18, 2023 · 1 comment · Fixed by #2914
Closed

Error when parsing resource filter #2910

jdneo opened this issue Oct 18, 2023 · 1 comment · Fixed by #2914
Assignees

Comments

@jdneo
Copy link
Contributor

jdneo commented Oct 18, 2023

Dangling meta character '*' near index 5
.git|*	xxx|__CREATED_BY_JAVA_LANGUAGE_SERVER__
     ^
java.util.regex.PatternSyntaxException: Dangling meta character '*' near index 5
.git|*	xxx|__CREATED_BY_JAVA_LANGUAGE_SERVER__
     ^
	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><init>(Unknown Source)
	at <REDACTED: user-file-path>(Unknown Source)
	at org.eclipse.core.internal.resources.RegexFileInfoMatcher.initialize(RegexFileInfoMatcher.java:48)
	at org.eclipse.core.internal.resources.Filter.match(Filter.java:73)
	at org.eclipse.core.internal.resources.Filter.filterExcludes(Filter.java:160)
	at org.eclipse.core.internal.resources.Filter.filter(Filter.java:115)
	at org.eclipse.core.internal.resources.Resource.filterChildren(Resource.java:2036)
	at org.eclipse.core.internal.resources.Resource.isFilteredWithException(Resource.java:1982)
	at org.eclipse.core.internal.resources.Resource.isFiltered(Resource.java:1954)
	at org.eclipse.core.internal.localstore.FileSystemResourceManager.allResourcesFor(FileSystemResourceManager.java:285)
	at org.eclipse.core.internal.resources.WorkspaceRoot.findFilesForLocationURI(WorkspaceRoot.java:110)
	at org.eclipse.core.internal.resources.WorkspaceRoot.findFilesForLocationURI(WorkspaceRoot.java:103)
	at org.eclipse.jdt.ls.core.internal.JDTUtils.findResource(JDTUtils.java:1107)
	at org.eclipse.jdt.ls.core.internal.JDTUtils.resolveCompilationUnit(JDTUtils.java:195)
	at org.eclipse.jdt.ls.core.internal.JDTUtils.resolveCompilationUnit(JDTUtils.java:179)
	at org.eclipse.jdt.ls.core.internal.handlers.BaseDocumentLifeCycleHandler.handleChanged(BaseDocumentLifeCycleHandler.java:421)
	at org.eclipse.jdt.ls.core.internal.handlers.BaseDocumentLifeCycleHandler.didChange(BaseDocumentLifeCycleHandler.java:351)
	at org.eclipse.jdt.ls.core.internal.handlers.JDTLanguageServer.didChange(JDTLanguageServer.java:891)
	at jdk.internal.reflect.GeneratedMethodAccessor49.invoke(Unknown Source)
	at <REDACTED: user-file-path>(Unknown Source)
	at <REDACTED: user-file-path>(Unknown Source)
	at org.eclipse.lsp4j.jsonrpc.services.GenericEndpoint.lambda$recursiveFindRpcMethods$0(GenericEndpoint.java:65)
	at org.eclipse.lsp4j.jsonrpc.services.GenericEndpoint.notify(GenericEndpoint.java:152)
	at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.handleNotification(RemoteEndpoint.java:220)
	at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.consume(RemoteEndpoint.java:187)
	at org.eclipse.jdt.ls.core.internal.ParentProcessWatcher.lambda$1(ParentProcessWatcher.java:144)
	at org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.handleMessage(StreamMessageProducer.java:194)
	at org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.listen(StreamMessageProducer.java:94)
	at org.eclipse.lsp4j.jsonrpc.json.ConcurrentMessageProcessor.run(ConcurrentMessageProcessor.java:113)
	at <REDACTED: user-file-path>$RunnableAdapter.call(Unknown Source)
	at <REDACTED: user-file-path>(Unknown Source)
	at <REDACTED: user-file-path>(Unknown Source)
	at <REDACTED: user-file-path>$Worker.run(Unknown Source)
	at <REDACTED: user-file-path>(Unknown Source)
@jdneo
Copy link
Contributor Author

jdneo commented Oct 18, 2023

To reproduce it, fill **/node_modules/** to the setting java.project.resourceFilters

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants