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

Debugger for Java suddenly can't run #399

Closed
bobjiang1988 opened this issue Sep 3, 2018 · 6 comments
Closed

Debugger for Java suddenly can't run #399

bobjiang1988 opened this issue Sep 3, 2018 · 6 comments

Comments

@bobjiang1988
Copy link

I have asked here

Environment
  • Operating System: Ubuntu 18.04
  • JDK version: 1.8
  • Visual Studio Code version: 1.26.1
@andxu
Copy link
Contributor

andxu commented Sep 3, 2018

@bobjiang1988 Can you put your pom.xml and the launch.json here?

@bobjiang1988
Copy link
Author

@andxu
Copy link
Contributor

andxu commented Sep 3, 2018

Your problem is lacking of snake yaml dependency, please add the following dependency

	<dependency>
			<groupId>org.yaml</groupId>
			<artifactId>snakeyaml</artifactId>
			<version>1.16</version>
		</dependency>

The java -jar target/demo-0.0.1-SNAPSHOT.jar is another way of launching different with our ways(we use target/classes as the class path rather than the demo-0.0.1-SNAPSHOT.jar, you can delete demo-0.0.1-SNAPSHOT.jar to see whether vscode java can be debug-able).

@bobjiang1988
Copy link
Author

@andxu It's ok now. Thanks!
But I really don't know why it runs well in tomcat?

@andxu
Copy link
Contributor

andxu commented Sep 3, 2018

tomcat has the reference to snakeyaml

@andxu
Copy link
Contributor

andxu commented Sep 5, 2018

@bobjiang1988 , it is a bug caused by my change, see #402, you would not need to add it in next release

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

No branches or pull requests

2 participants