-
Notifications
You must be signed in to change notification settings - Fork 453
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
How to disable printing informations about errors in output window? #306
Comments
In my case (with maven), the plugin analyses all generated .class files created during the build in the target folder, making it print a lot of errors and taking the focus of my task and of my problems window, which is quite troublesome ... |
can you provide a sample project reproducing those errors? better fix the root cause of the issue than hide it |
I was thinking about easy solution because I thought that it's a feature, so I didn't record any other ways to call out this situation. |
Ok, so this occurs for standalone java files with no package. Currently, one way to fix it would be to add a package declaration at the top of the file. We should definitely fix that before releasing 0.11.0. @snjeza see this stacktrace
In JDTUtils, this fails if parent.getNameCount() == 0:
|
@snjeza I also seems those IOOBEs (also happening on hover) are caused by compilation units with a 0-length buffer. Might be caused by class not being saved after creating the java class file |
In my case, during the execution of my build task (using maven), The errors showing in the output console are
(Sorry, for confidentiality reasons, I can't show screenshots or filenames here, but I have this error for most of the generated .class files in the target folder) |
@xuaveneg ok so that's another issue. Running a clean build from CLI, causes a discrepency between the jdt.ls server state and the file system. We need to handle that better. Can you please open a separate issue for that? |
Hopefully this should be fixed by eclipse-jdtls/eclipse.jdt.ls@d70d4bf |
Environment
The text was updated successfully, but these errors were encountered: