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
Cannot run from src/test anymore #413
Comments
Yes, it is caused by the code fix for this issue #111, for a workaround, you can move it to non-test folder, I will detect whether you are staring main class from test source folders later. |
Same thing here (same VSCode, Java Tools and Java Debugger versions, but under Windows) - cannot debug unit tests anymore. I cannot move all unit tests to other folder - build and other tools rely on standard maven project structure.
Language Support for Java log panel shows "Exception processing async thread queue" |
Unit test by click Debug Test code lens should not be influenced, please go to the https://github.com/Microsoft/vscode-java-test/issues to raise an issue if you can not run unit test, but if you want to run the main method at test classes, it should not work by now due to my change. |
@jdneo to take a look at test runner side. |
glad to know there wasn't wrong with my dev pc :) tried everything(uninstalling vs code, using insider edition, uninstalling plugins etc. manual classpath) but coudn't fix it. eventually went to eclipse temporarily :). so i'm happy to know what was the cause. :) |
No I hope it get's fixed fast :) |
i rolled back mine to 0.11.0 till it is solved :) |
@andxu It fails for me from both places - from Test runner and Code Lens. Actually, I rarely use Test Runner to start tests, because when I develop a method/test I run/debug tests that I am working on or fixing. I use Test Runner is for big/sweep runs. |
@lasalame I will work on this items after the release 0.13.0, can you help to give me a sample project which doesn't work for both places(attach the project folder here in this issue)? |
To test it:
|
Can other people get this to work? (Edit: I guess I have to wait for the 0.14.0 release)... |
@joshryanne I want to roll back as well, do you happen to know what the VSIX link is? It such a pain to find it. The link should be close to this:
But we are dealing with microsoft here... |
(maven project)
Since today I noticed when I try to start debugging something from the
src/test
folder I get:Error: Could not find or load main class com.github.whatever.Whatever
When I move the file to the
src/main
folder it works. Before this was not the case.It broke from one day to the other, so I guess VSCode or one of the plugins broke.
I have no clue how to tackle this problem. Any help is welcome.
Environment
The text was updated successfully, but these errors were encountered: