Skip to content

conda run marker script does not handle -m flag #18409

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

Closed
karrtikr opened this issue Feb 1, 2022 · 0 comments · Fixed by #18412
Closed

conda run marker script does not handle -m flag #18409

karrtikr opened this issue Feb 1, 2022 · 0 comments · Fixed by #18412
Assignees
Labels
area-environments Features relating to handling interpreter environments bug Issue identified by VS Code Team member as probable bug regression Bug didn't exist in a previous release

Comments

@karrtikr
Copy link

karrtikr commented Feb 1, 2022

Issue Type: Bug

Behaviour

Expected vs. Actual

Formatting with autopep8 failed.
Error: Invalid patch string: >>>PYTHON-EXEC-OUTPUT
> conda run -n base --no-capture-output python ~\.vscode-insiders\extensions\ms-python.python-2022.0.1775133624-rc\pythonFiles\get_output_via_markers.py -m autopep8 --diff ".\sa.py"
cwd: .

Steps to reproduce:

  1. Do not have the formatter module installed and have conda interpreter selected.
  2. Run formatting.

Diagnostic data

  • Python version (& distribution if applicable, e.g. Anaconda): 3.8.3
  • Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Conda
  • Value of the python.languageServer setting: Pylance
User Settings


defaultLS: {"defaultLSType":"Pylance"}

downloadLanguageServer: true

envFile: "<placeholder>"

venvPath: "<placeholder>"

venvFolders: "<placeholder>"

condaPath: "<placeholder>"

pipenvPath: "<placeholder>"

poetryPath: "<placeholder>"

languageServer: "Pylance"

linting
• enabled: true
• cwd: "<placeholder>"
• Flake8Args: "<placeholder>"
• flake8Enabled: false
• flake8Path: "<placeholder>"
• lintOnSave: true
• banditArgs: "<placeholder>"
• banditEnabled: false
• banditPath: "<placeholder>"
• mypyArgs: "<placeholder>"
• mypyEnabled: false
• mypyPath: "<placeholder>"
• pycodestyleArgs: "<placeholder>"
• pycodestyleEnabled: false
• pycodestylePath: "<placeholder>"
• prospectorArgs: "<placeholder>"
• prospectorEnabled: false
• prospectorPath: "<placeholder>"
• pydocstyleArgs: "<placeholder>"
• pydocstyleEnabled: false
• pydocstylePath: "<placeholder>"
• pylamaArgs: "<placeholder>"
• pylamaEnabled: false
• pylamaPath: "<placeholder>"
• pylintArgs: "<placeholder>"
• pylintPath: "<placeholder>"

sortImports
• args: "<placeholder>"
• path: "<placeholder>"

formatting
• autopep8Args: "<placeholder>"
• autopep8Path: "<placeholder>"
• provider: "autopep8"
• blackArgs: "<placeholder>"
• blackPath: "<placeholder>"
• yapfArgs: "<placeholder>"
• yapfPath: "<placeholder>"

testing
• cwd: "<placeholder>"
• debugPort: 3000
• nosetestArgs: "<placeholder>"
• nosetestsEnabled: undefined
• nosetestPath: "<placeholder>"
• promptToConfigure: true
• pytestArgs: "<placeholder>"
• pytestEnabled: false
• pytestPath: "<placeholder>"
• unittestArgs: "<placeholder>"
• unittestEnabled: false
• autoTestDiscoverOnSaveEnabled: true

terminal
• activateEnvironment: true
• executeInFileDir: "<placeholder>"
• launchArgs: "<placeholder>"

experiments
• enabled: true
• optInto: ["pythonInterpreterInfoPinnedcf"]
• optOutFrom: ["pythonInterpreterInfoPinned"]

insidersChannel: "weekly"

tensorBoard
• logDirectory: "<placeholder>"

Extension version: 2022.0.1775133624-rc
VS Code version: Code - Insiders 1.64.0-insider (96e996a75c09e5947c151f8b978bdc9496b81aea, 2022-02-01T10:10:59.660Z)
OS version: Windows_NT x64 10.0.22518
Restricted Mode: No

System Info
Item Value
CPUs Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz (8 x 2112)
GPU Status 2d_canvas: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: enabled_on
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 15.92GB (4.11GB free)
Process Argv --crash-reporter-id c77e398b-c3ad-4095-97a3-126929d57dd0
Screen Reader no
VM 0%
A/B Experiments
vsliv695:30137379
vsins829:30139715
vsliv368:30146709
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythonvspyl392:30422396
pythontb:30258533
vsc_aacf:30263846
pythonvspyt551cf:30291413
pythonptprofiler:30281269
vshan820:30294714
pythondataviewer:30285072
vscod805cf:30301675
pythonvspyt200:30323110
bridge0708:30335490
bridge0723:30353136
vsaa593cf:30376535
pythonvs932:30404738
wslgetstarted:30421357
vs360:30404995
vsclayoutctrc:30405799
azactmsal:30409287
pythonvsnew555:30426298
vscscmwlcmc:30428972

@karrtikr karrtikr self-assigned this Feb 1, 2022
@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Feb 1, 2022
@karrtikr karrtikr added area-environments Features relating to handling interpreter environments needs PR regression Bug didn't exist in a previous release bug Issue identified by VS Code Team member as probable bug and removed triage-needed Needs assignment to the proper sub-team labels Feb 1, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 5, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-environments Features relating to handling interpreter environments bug Issue identified by VS Code Team member as probable bug regression Bug didn't exist in a previous release
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant