-
Notifications
You must be signed in to change notification settings - Fork 136
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
failed to launch debuggee VM. Filename or Extension is too long. args too long? #1717
Comments
It's because here vscode-java-test/src/utils/launchUtils.ts Line 27 in ad4b37c
When the extension tries to construct the launch configuration for debug, the |
Or another quick fix is always enable shortenCommandLine |
Hi @dsimonow, could you please try this to see if it fixes your problem: |
thank you for the fast reply. Sadly this doesn't change it. I tried more testing and I think it has something to do with the strategy of the Test Explorer itself. It causes the error when I used the top most button to basically test everything and it reaches the package with the large amount of tests but also fails instantly if I try to test the package with too many tests inside. While going through them each inside the package doesn't cause the error. Are there ways to adjust the strategy of the test runner? accept more time by it going through the packages instead of summarizing them? |
Ah I see. Sorry I misunderstood the issue at first. So it's the argument length too long. Then I need to check if I can fold the argument. For example, if all the classes under the same package are being tested, then fold the class fully qualified names to the belonging package name |
@jdneo we have the same problem if you try to run all the testcases in a maven module.
Have you had a chance to look into this? |
Hi, I am trying to get our maven multi project to run in VSCode.
One Package fails and throws this error:
the generated argfile has about 15k characters and starts with -ea -Dfile.encoding=UTF-8 -cp "..."
Sorry for the german in there. "Der Dateiname oder die Erweiterung ist zu lang" is basically "Filename or Extension is too long"
I tried all of the launch.json Settings for shortenCommandLine, this itteration tries it with the argfile.
I also attempted to relocate the jdk and had it at one point at C:\jdk and it didn't matter either.
I know these Tests work, since they do work in Eclipse and Intellij I am just trying to make it work in vscode.
I am assuming the extremely long args is causing the issue, since that specific project has probably most of our tests and the others seem to work.
Now how would I resolve that since it does work in other IDEs?
Also I don't think our project is that unique in the amount of tests we have, we are still a rather young project in terms of javaee development.
The text was updated successfully, but these errors were encountered: