-
Notifications
You must be signed in to change notification settings - Fork 337
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
debugger broke in latest vscode update #308
Comments
@clankill3r Thank you for trying java debugger, could you please give us a snapshot of error shown ClassNotFoundException, based on your description, it has very high possibility to have a sync problem in project cache, could you please a try after cleaning all the files on the directory : C:\Users<your user name>\AppData\Roaming\Code\User\workspaceStorage (in windows) |
I removed all my workspace storage. I just figured this out, I only get a ClassNotFoundException when I have Caught Exceptions on! Uncaught Exceptions don't matter, all off is also fine. I also noticed that since yesterday, the test classes ( Maybe this has always been the case. I never payed attention to that. I have no idea, I hope the new info helps. edit: I never get a error of ClassNotFoundException in the console. I did had it before but I can not reproduce the error. Meanwhile it keeps throwing them. |
@clankill3r Integrated JVM has class loaders which will first throw ClassNotFoundException and then load the class. So if you check Caught Exceptions, you will get a lot of breaks on caught ClassNotFoundException. Your test classes should be generated to output folder defined in .classpath(Java language server will generate this file if it is not here), please let me known the content of your .classpath file, like:
Meanwhile |
Hi, here it is: <?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" output="target/classes" path="src/main/java">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
<attribute name="test" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" path="target/generated-sources/annotations">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
<attribute name="ignore_optional_problems" value="true"/>
<attribute name="m2e-apt" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" output="target/test-classes" path="target/generated-test-sources/test-annotations">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
<attribute name="ignore_optional_problems" value="true"/>
<attribute name="m2e-apt" value="true"/>
<attribute name="test" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="target/classes"/>
</classpath>
|
checked |
They are there. |
yes, ClassNotFoundException is expected although the class is here. |
This issue has been closed automatically because it needs more information and has not had recent activity. Please reach out if you have or find the answers we need so that we can investigate further. |
Today I had in a project that I could not run it anymore.
I was getting a ClassNotFoundException.
Since it was only one file and I wanted to get work done I copied the file to another project that still worked. Now later today (while working on a totally unrelated java file) I also get a ClassNotFoundException.
As a test I opened a third project that has always worked fine.
If I run it I get:
If I press 'Proceed' everything runs fine. (I guess it runs an old build then?).
All this is since today.
Environment
Steps To Reproduce
If I only knew...
Current Result
ClassNotFoundException
Expected Result
A running java program
Additional Informations
It is a maven project.
The text was updated successfully, but these errors were encountered: