-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
VSCode Pytest Discovery Fails With Unhelpful Error #22513
Comments
hi @dylan-at-na, I am going to look into this shortly. Thanks for bringing this up! |
Hello! It looks like you might not be on the new rewrite of testing. Could you try it there? To try it yourself, you need add this setting to your users You can confirm you have the rewrite enabled by setting your log level to "trace" via the command palette and then check for Let me know if the rewrite fixes your issue. Thanks! |
Same error here. After a bunch of hours I finally figured out that it was due to the fact that I opened the project from a symlink directory... a recurrent issue in vscode: https://github.com/search?q=repo%3Amicrosoft%2Fvscode%20symlink&type=issues |
@dylan-at-na, are you using symlinks? As a note on symlinks I created this issue to consolidate bug reporting related to it: #22658. I have a potential fix but it will need extra time as it is more complicated than originally intended. |
Hello! 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 |
Because we have not heard back with the information we requested, we are closing this issue for now. If you are able to provide the info later on, then we will be happy to re-open this issue to pick up where we left off. Happy Coding! |
Because we have not heard back with the information we requested, we are closing this issue for now. If you are able to provide the info later on, then we will be happy to re-open this issue to pick up where we left off. |
Discussed in #22491
Originally posted by dylan-at-na November 17, 2023
PyTest Discovery consistently failing, the error message isn't telling me much. Error messages follow (full log at end of message).
The Python extension has run into an unexpected situation while processing a pytest node during test discovery. Please Please open an issue at: https://github.com/microsoft/vscode-python/issues and paste the following output there.
INTERNALERROR> NotImplementedError: Unexpected pytest node (see printed output).
NotImplementedError: Unexpected pytest node (see printed output).
Exception: pytest discovery failed (exit code 3)
I'm (attempting) to run using poetry. Full log below but additionally I've come across a number of issues which seem to swap around. I'm not sure where to go with the above but I've also come across regular
ModuleNotFound
import errors during Test Discovery that aren't present when executing a test with PyTest. If anybody is able to advise on that.The text was updated successfully, but these errors were encountered: