-
Notifications
You must be signed in to change notification settings - Fork 129
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
Can not launch junit tests anymore #1494
Comments
I'd also like to add my global settings from ~/.config/Code/User
|
The biggest issue is that I don't have a warning or error or something message that could give me a hint on where search for the problem... |
I tried reverting vscjava.vscode-java-debug to v0.43.0 (was updated mid last week, so a potential cause), but this didn't help. |
Have you tried triggering the command And meanwhile, instead of running tests, does launching main method work? |
@jdneo , Thank you for your suggestions. The "Java: Clean Java language server workspace" doesn't help. I started looking at logs and found that in the "Language support for java (Syntax Server)" output, There is this error message.
I restarted VSCode and saw that this message is there at startup; so not (direcly) linked to running a test; but maybe it's an indicator that could help figuring out what's going wrong? |
Is there any error logs? See: https:/redhat-developer/vscode-java/wiki/Troubleshooting#enable-logging |
In attachment you can find the logging from Starting the main method didn't add any logs in these 2. |
The developer tools console does show some errors at startup: The Java Language Server log file doesn't contain errors: |
Looks like related with this issue : redhat-developer/vscode-java#2577 (comment) |
Indeed, it does look similar. I tried adding (all 3) suggested changes from #2577 to the settings.json:
But it doesn't help. The Developer Tools console keeps showing this "Header must provide a Content-Length property" error message, and junit tests or java main still doesn't run. |
Eureka!
And this works. |
The latest redhat.java should already use that argument as default value. Will it stop working if you remove |
Aha. Indeed that's not the one that did it, I also added the -Xlog:disable to the spring-boot.ls.java.vmargs
If I remove this one, it stops working. |
Disabling the Spring Boot Tools plugin also helps |
Thanks for sharing the findings. I'll close this issue since it looks like the problem is not caused by this extension. BTW, maybe file an issue at Spring Boot Tools plugin's repo? |
thanks for your help. |
Environment
System : Linux Mint 19.2 (Tina)
JDK: openjdk version "17.0.4" 2022-07-19 (build 17.0.4+8-Ubuntu-118.04)
VSCode: v1.71.2
redhat.java: v1.11.0
vscjava.vscode-java-test: v0.37.1
vscjava.vscode-java-debug: v0.44.0
Symptom
This is basically the same issue (at least the same symptoms) as in #1481
This started happening from 1 day to the next on all my projects and workspaces (last week tuesday everything seemed ok, wednesday morning none of my unit tests would run).
If I try to run a junit test the following popup with message "Run Tests: Resolving launch configuration" appears and never disappears
I attached a project where this happens, but I assume this is not related to the project itself since it happens on all projects.
I can't find a good reason or trigger why this happened overnight.
The test runner for java is at 0.37.1, but even with the pre-release version it doesn't work.
sudoku.zip
The text was updated successfully, but these errors were encountered: