-
Notifications
You must be signed in to change notification settings - Fork 4
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
Trying to run pytest using Austin in VS code. #24
Comments
I think this might be due to the fact that {
"type": "austin",
"label": "Profile tests",
"command": ["sudo"],
"args": [
"python",
"-m",
"pytest",
]
}, |
Hey @P403n1x87 , thank you so much for the suggestion. I
and ran the task again after changing the
|
Just as an aside, I'd use something like
instead. |
Not a problem , please let me know when you figure it out. In the meanwhile, would you know which Austin VSCode extension version and Austin version combination has proven to work in unison in the past? |
Aah ... I'll try that. |
same error. |
I'm afraid Austin latest and Austin VS Code latest have the best chances 🙁 . What I would recommend in the meantime is to invoke austin manually from the command line and open the collected samples with the extension afterwards. I think I can safely say this proves to be the most reliable way of using the extension when everything else fails. |
Could you direct me to an example please? |
You can run the same command that VS Code is trying to run from a terminal, e.g. sudo austin -i 100 -o /path/to/austin/output.austin python -m pytest and then open the |
Thank you so much @P403n1x87 ! That works as expected! |
This may be similar to #21 but I'm not sure. I read the documentation at the VS code marketplace here
Here's my situation:
I have python project that I'm trying to profile using Austin within VS code. I'm using a MacBook (macOS Big Sur). Here's my
tasks.json
I'm just trying to run
pytest
over the project. I'm also running this within aconda
virtual environment. I get the following error:Any guidance/suggestion would be great appreciated.
The text was updated successfully, but these errors were encountered: