-
Notifications
You must be signed in to change notification settings - Fork 3
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
Tasks integration: Failing tests? #26
Comments
After 2 hours of debugging I think I finally got to the bottom of this and figured out how to make those tests run 😅 So the problem is that it's not possible to enter a new workspace in tests, because VS Code restarts the extension host when that's done, and thus outright refuses to do so when running tests:
When running the tests for the first time, that's confirmed by an error:
Triggered from here:
And indeed the tests fail because the task runner can't find any workspace - vscode-python-tox/src/toxTaskProvider.ts Lines 78 to 80 in 46ecf1f
However, the workspace state seems to get stored in In 46ecf1f, I now ended up changing |
Due to VS Code limitations, we need to run VS Code in a workspace with all examples available. Thus, we can't know exactly how many envs we are going to get here. See #26
Thanks @The-Compiler for fixing, totally oversaw this, I'm just curious why my merge was successful with the CI in place, I assume that the CI triggered before the merge can happen should have caught that, right? |
Indeed it should have - but the CI actually didn't run on pull requests at all, because I had an indentation error in the job definition 😊 f7791a2 |
Tests seem to fail after merging the tasks integration: https://github.com/The-Compiler/vscode-python-tox/runs/7218607915?check_suite_focus=true
not sure what's going on there? I saw this error once locally, but when rerunning it went away, so I didn't think much of it...
@dariuszparys do you have any idea what could be going on there?
(follow-up to #5/#12)
The text was updated successfully, but these errors were encountered: