-
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
Passing project path causes tox to fail. #31
Comments
I don't quite follow - you are running tox from the extension and passing the project path as additional arguments in the VSCode UI? |
I'm running Tox from the extension, either via the "play" buttons in the "testing" interface from the main side bar, or from hitting the "play" button in the tox file itself. |
Alright, but where is the path coming from? Because it's not the extension adding it... |
Huh. That is a good question. I have installed the extension and done no configuration at all. The path is the path of the project so it's getting something "correct" from somewhere. |
Ah! I can indeed reproduce when using it that way, personally I've ever only used the commands via the command palette (or keybindings in my case). When running tox from the tests interface, It looks like the directory is indeed added here: vscode-python-tox/src/testController.ts Line 41 in 6317654
I believe this is due to 0b558fa (which added the testing integration) not accounting for the changes in b6a92ef (which adds a second argument @starlord-daniel if you have the bandwidth to confirm that I'm on the right track there, and/or to open a PR with a fix, that'd be most appreciated! If not, I'm going to go ahead with a fix once I find the time to work on this extension again, but it might be a bit, as I'm very busy until March again. |
Ah, thanks for the digging. Good to know I wasn't going insane. :) |
@The-Compiler Yes, that seems to be the issue. Unfortunately I don't have any bandwidth right now. Happy to review though. |
Bug description
Running tox adds the project path as an argument without prefixing it with --, which tox 4.2.3 (at least) doesn't like.
To Reproduce
Expected behavior
A working tox. :)
Additional context
Using
tox -e format -- [...]/projects/private/testproj
works.The text was updated successfully, but these errors were encountered: