-
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
Launching with no open file: command 'python-tox.select' not found #29
Comments
I have no idea why this would be happening, I'm afraid. At the same place that command is defined, we also define that command as an activation event, and we register that command. Could you take a look at the "output" panel of VS Code, especially the "Log (Extension Host)" output there? You should see something like: Do you see that? Do you see any errors? |
@The-Compiler ,
If I test with remote ssh (which is how I dev): I have a little error toast that is displayed with the following message: For information, my tox.ini is not directly in the workspace directory but in a subdirectory |
I opened #30 for the "tox.ini in a subdirectory" thing, because that'd be a feature request. But we should certainly handle this issue more gracefully. It fails with "Error: No active editor found.", so I'm guessing you're starting the extension without a file active? Does anything change if you open a file in your project and start it then? |
You are right, if I open a file the error "No active editor found" disappears, and now the error is the same locally and remotely: |
I use VSCode on ubuntu, installed with the package manager:
|
I'm running 1.72.0 here, so I doubt that'd make much of a difference. But I suppose I can try a fix without reproducing it. I'm afraid it'll take me a bit, as I'm busy with other projects for the next couple of weeks to months. As for #30, that's something I don't really use myself. I'll look into adding a workspace config option or somesuch, but it'll probably take some time too. |
thanks for your help. I will look if I can add such option myself and propose you a PR if you are willing to accept it. |
Sure, please go ahead! Also see #1 and #7 which talk about how to discover the project/workspace. I'm not quite sure if the current approach is the right one there. But I suppose finding the Another approach there would be to search it recursively (perhaps up to a certain level) in the workspace, but that might cause trouble with virtualenv's and such. Thus I'd indeed propose having a simple workspace setting for where to find the tox.ini, with the workspace root as default. "Implicit is better than implicit", after all, and I suspect the vast majority of projects will have the |
I had the By installing |
Bug description
When I want to select a tox environment in my project I have an error popup that show the following message:
Command 'Select and run tox environment' resulted in an error (command 'python-tox.select' not found)
This problem occurs both localy and remotely with the remote ssh extension
To Reproduce
The text was updated successfully, but these errors were encountered: