-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Call to flake8 when using (mini)conda breaks the --format option #9481
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
Comments
Opened an issue for conda at conda/conda#9579 |
Okay sounds good, thanks for the feedback! |
Hi @beeb , The Thank you for your patience! |
Latest release fixed this issue (not sure if I'm allowed to close it) |
Thank you for the feedback 👍 Don't worry about it, we'll keep the issue open for now. |
After checking with the team, closing in favour of upstream issues conda/conda#9579 and conda/conda#9598. |
Uh oh!
There was an error while loading. Please reload this page.
Environment data
"python.jediEnabled"
set to; more info How to update the language server to the latest stable version #3977): jediExpected behaviour
The flake8 output is formatted correctly using the supplied
--format
argumentActual behaviour
The flake8 output is garbage (part of the format string and the path to the file to link). This happens any time I run flake8 with
conda.exe run -n smsl
even outside of VSCode. The--format
argument gets messed up when calling it viaconda run
.This is definitely a bug regarding conda and/or flake8 too. But....
The syntax of this call has changed apparently, IIRC it used to be calling the
python
executable for a given environment directly in previous versions of the extension.Since the
conda run --help
doc says it's experimental, maybe it should not be used for this extension.Steps to reproduce:
pip install flake8
Logs
Output for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)As you can see, flake8 is invoked with
conda run
instead of just calling thepython
executable of the environment directly. For some reason this messes up the parsing of the--format
by flake8.After some investigating, I noticed this is the temporary .bat script that is generated by conda when running the command is:
Since this is a batch script, the
%
character needs to be escaped (as%%
).. Can the VSCode Python extension fix that by escaping this character while we wait that conda fixes it?The text was updated successfully, but these errors were encountered: