-
Notifications
You must be signed in to change notification settings - Fork 137
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
Executing tests gives me "Failed to get workspace folder from test item" #1463
Comments
Yes, sharing a sample project could help me understand the problem. Using an archive works for me. :) |
And the full content of the
ps: I have now I idea how I can upload a zip file here to the issue area of GitHub - that's why I sent the screenshots. |
The last screenshot looks similar with this issue: #1394 Will it help if you trigger |
Thanks, @jdneo, for looking at this! I just tried Cleaning the JLS Workspace, but I get the same error. Is there a way to provide the workspace location manually? |
You can just simply drag the zip file into the comment input box, should work. |
Cool! So here the zip of the demo project: packaged-tester.zip |
Hmm, the project works well on my Windows machine: Are you working on a symlink folder in Linux? If the answer is yes, then should be related with this upstream issue: microsoft/vscode#74104 |
I definitely work on Linux (RHEL 7 and RHEL 8). As for the symlink: That might be the case. I'll check tomorrow when I'm back at the machine. Does this mean when I open the project via its direct path (no symlink part in the path), then it should work? |
Yes, it DOES work when I open the project through its direct path (no symlink part in the path). All tests work. -Thanks for pointing out the possible issues, @jdneo! IMHO this is a bug. Symlinked project directories should work, I think. |
Unfortunately, this issue is out of the control of the test runner extension. According to the discussion, it's related with Electron framework. I'm closing this issue since we have an issue: #630 to track this actually. I'm sorry that so far, I cannot provide any more help on this |
Makes all sense.
Well, for me, using direct, canonicalised links is good enough. 😄 |
I have created a small Java example project with a test in a package. VS code recognizes the project and the test perfectly (e.g. I was able to use the Source Actions... --> Generate Tests... command to create the test file).
However when I execute the test I get the following error balloon:
""Failed to get workspace folder from test item: $(symbol-class) ClassInPackageTest."
Any idea how to fix this?
PS: Happy to share the complete project (e.g. as an archive), but don't know where's the best spot to share it.
The text was updated successfully, but these errors were encountered: