-
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
Test ERROR: File Not Found Error #8222
Comments
Are you using just the Python extension for VS Code or do you have another Python extension installed (your comment about the "Python Test extension" suggests you have more than one). If you have another Python extension then please disable the other ones to make sure they are not interfering with our extension. And when you said "running tests in the command prompt there is no error", is that with the same command the extension uses to execute your tests (which you can see in the Output panel), or are you creating the command yourself? If the latter, please try using the command we use to see if it reproduces the problem. |
@brettcannon it's not clear from the logs what specifically the extension is running so I can repro what you are asking. I've included my OUTPUT as a gist above. Can you point me at the line I can paste into my own command prompt to run? That being said, I'm running
|
@YoDaMa I thought we printed the lint in the Output panel for each test log run, but if that's not the case then we will have it under the general "Python" tab of the Output panel. |
Hi @YoDaMa 👋 Could you also copy here the content of the terminal when you run Thanks! |
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. |
Environment data
Expected behaviour
Pytest Tests work.
Actual behaviour
If I set the top level directory for the Python Test extension to azure-iot-device for pytest, the python extension will be able to discover tests without erroring out, but upon debugging I will get an Error:
The issue is that error is cryptic. Running tests in the command prompt there is no error as such. Where is the error coming from? is it from generated code? How to i fix it?
Logs
Output for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)https://gist.github.com/YoDaMa/9b25b078cf4e262ab61f275537bfb37f
Output from
Console
under theDeveloper Tools
panel (toggle Developer Tools on underHelp
; turn on source maps to make any tracebacks be useful by runningEnable source map support for extension debugging
)The text was updated successfully, but these errors were encountered: