Repository navigation
Spawn for running test discovery is not following symlinks properly. #9347
Description
Activity
- addedtriage-neededNeeds assignment to the proper sub-teamNeeds assignment to the proper sub-teambugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bug
on Dec 31, 2019 - ghost removedtriage-neededNeeds assignment to the proper sub-teamNeeds assignment to the proper sub-team
on Dec 31, 2019 ericsnowcurrently commented
on Dec 31, 2019 More actionsThanks for letting us know about this, JacekPliszka. We'll take a look as soon as we can.
+1. I am having the same issue. Although, intermittently, I am able to
reload windowthen the test discovery starts working. But, even then, when I run the tests it fails out because it can't find the test file. For some reason the relative pathtestis not included and the test execution fails. See issue #9349JacekPliszka, I wasn't able to reproduce the problem. Using the simple example you provided, the extension was able to discover the test without problem. Is it happening every time for you?
Since running the command manually worked for you, we know that the problem isn't related to the output of the command. There is something wrong in the extension (at least your install, if not the extension itself). However, it will be hard to determine the cause until we can reliably reproduce the problem.
FWIW, the
displayDiscoverStatusreference in the log output you included helps narrow down where the error is originating.- addedinfo-neededIssue requires more information from posterIssue requires more information from poster
on Jan 8, 2020 Yes. Happens every time. With any project. This is my first install and the first time I use vscode for anything.
I do not know Javascript so I do not know how to debug it.
What would be useful is better error message/issue detection. Something is undefined but should not be but what and why - I've no idea.
Yeah, I agree that the error message is unhelpful. Sorry about that. Would you mind trying the latest version of the extension (released just yesterday)?
updated - no change.
I believe I have something missing in setup and the extension is not detecting it and not telling me and I do not know what to do.
Understood. I'll try to narrow down the possible problematic code (based on
displayDiscoverStatus) as soon as I can.- removedinfo-neededIssue requires more information from posterIssue requires more information from poster
on Jan 8, 2020 41 remaining items
repost from #21373, trying to consolidate discussion of testing with symlinks there.
my msg:
Hi! Looking to fix this but having trouble getting a minimal repro that produces the error. I have tried to replicate it via symlinks on a single disk (but it works) so I think it might only occur when you have symlinks across two different disks. Is that how everyone's setup is?Closing this issue since it has been a month and I haven't gotten any response to my above post regarding a minimal repro. Please comment if you are still seeing this and have a repo I can debug with and Ill reopen the issue. Thanks!
- locked as resolved and limited conversation to collaborators
on Oct 27, 2023 Hello! I was able to figure out a repo and a solution. I have put together a detailed problem report and proposed solution for symlinks. Please check it out here and contribute any thoughts you may have: #22658
- addedtriage-neededNeeds assignment to the proper sub-teamNeeds assignment to the proper sub-team
on Dec 18, 2023 - removedinfo-neededIssue requires more information from posterIssue requires more information from postertriage-neededNeeds assignment to the proper sub-teamNeeds assignment to the proper sub-team
on Jan 25, 2024 Hello! This bug should be fixed and on vscode insiders! The release to vscode stable will be out by the end of the week. Please let me know if you try it on insiders or stable when it comes out and still doesn't work and I can investigate your specific issue further.
Environment data
"python.jediEnabled"set to; more info How to update the language server to the latest stable version #3977): "python.jediEnabled": trueExpected behaviour
tests are detected
Actual behaviour
tests are not detected, error is issues, running the adapter returns:
Steps to reproduce:
code .
Logs
Output from
Consoleunder theDeveloper Toolspanel (toggle Developer Tools on underHelp; turn on source maps to make any tracebacks be useful by runningEnable source map support for extension debugging)