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

#1714 fix "Run Test with coverage" doesn't work: "Could not find or load main class" #1747

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

YuyaYokoyama8864
Copy link

close #1714
We have confirmed that it works in this environment and others on Issue.
We are just removing the double quotations, please confirm.

@jdneo
Copy link
Member

jdneo commented Dec 26, 2024

Thank you @YuyaYokoyama8864

Does the agent path in your case contains spaces?

I would like to understand why having " causing the failure

@YuyaYokoyama8864
Copy link
Author

YuyaYokoyama8864 commented Dec 26, 2024

@jdneo

Does the agent path in your case contains spaces?

The space was not included.

Maybe, but it could happen if I'm already passing vm arguments.
I set java.test.config.vmArg in VSCode's setting.json and passed VM arguments, but when I looked at the contents of debugConfiguration.vmArgs, other VM arguments except for this jacoco were not marked with double quotation marks.

I'm thinking that maybe it's not happening if you're not passing vm arguments and it's happening if you're passing other things you need like I am.

Considering the space, it is certainly not a good idea....

@YuyaYokoyama8864
Copy link
Author

@jdneo
I had a little more time so I tried it on a Path that included spaces and it went through without a problem.

It seems that VSCode handles this, or perhaps it is not necessary to add double quotation marks.

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

Successfully merging this pull request may close these issues.

"Run Test with coverage" doesn't work: "Could not find or load main class"
2 participants