Skip to content

conda run update bug: printed reuslts are automaticly cleared #18660

Closed

Description

We have written the needed data into your clipboard because it was too large to send.
Issue Type: Bug

Behaviour

Expected vs. Actual

Expected: print results in the terminal.
Actual: The result was printed. And immediately the result was cleared. I cannot see my result.

Steps to reproduce:

Just a empty .py with print(1) could reproduce.

I'm not sure whether it is related to the recent update about conda run.
Similar issue was also reported by the #18479 (comment).

Everything run smoothly before "conda run" update.

Diagnostic data

  • Python version (& distribution if applicable, e.g. Anaconda): 3.9.7
  • Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Conda
  • Value of the python.languageServer setting: Default
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: []
• optOutFrom: []

insidersChannel: "off"

tensorBoard
• logDirectory: "<placeholder>"

VS Code version: Code 1.65.0 (b5205cc8eb4fbaa726835538cd82372cc0222d43, 2022-03-02T11:12:08.962Z)
OS version: Windows_NT x64 10.0.19044
Restricted Mode: No

System Info
Item Value
CPUs Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz (12 x 2592)
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) 7.92GB (1.55GB free)
Process Argv D:\2022春课程\机器学习 --crash-reporter-id fe8f7a32-be1f-46f8-8764-c4d29a6b2ab6
Screen Reader no
VM 40%
Extensions (14)
Extension Author (truncated) Version
bracket-pair-colorizer Coe 1.0.62
bracket-pair-colorizer-2 Coe 0.2.2
matlab Gim 2.3.1
gc-excelviewer Gra 4.0.50
python ms- 2022.3.10631003
vscode-pylance ms- 2022.3.0
jupyter ms- 2022.2.1020642448
jupyter-keymap ms- 1.0.0
jupyter-renderers ms- 1.0.6
remote-ssh ms- 0.76.1
remote-ssh-edit ms- 0.76.1
remote-wsl ms- 0.64.2
markdown-preview-enhanced shd 0.6.2
markdown-all-in-one yzh 3.4.0
A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythonvspyl392:30443607
pythontb:30283811
pythonptprofiler:30281270
vshan820:30294714
vstes263cf:30335440
vscoreces:30445986
pythondataviewer:30285071
vscod805:30301674
pythonvspyt200:30340761
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593cf:30376535
vsc1dst:30438360
pythonvs932:30410667
wslgetstartedc:30433508
vsclayoutctrt:30448491
vsrem710:30416614
dsvsc009:30440023
pythonvsnew555cf:30442237
vsbas813:30436447
vscscmwlcmt:30438805
vscgsvid1:30447480
helix:30440343

Please paste.

Activity

  1. fsjwlf commented on Mar 5, 2022

    @fsjwlf

    Extensions --> Python, right click, Install Another Version, and select the older version~~~

  2. xlsjdjdk commented on Mar 5, 2022

    @xlsjdjdk

    The same problem. Using "conda run" is a confusing updating...

  3. karrtikr commented on Mar 8, 2022

    @karrtikr

    Hi all, please try out the following VSIX which has the potential fix: https://github.com/microsoft/vscode-python/suites/5578467772/artifacts/180581906, let me know if it helps! Use Extension: Install from VSIX command to install the VSIX.

    Transferring to it vscode-python repo for further investigation.

  4. added
    triage-needed
    on Mar 8, 2022
  5. added
    bug
    and removed
    triage-needed
    on Mar 8, 2022
  6. karrtikr commented on Mar 8, 2022

    @karrtikr

    Also, what is the version of conda you're using?

  7. added
    investigating
    info-needed
    and removed on Mar 8, 2022
  8. karrtikr commented on Mar 10, 2022

    @karrtikr

    Closing as dup of #18645, please leave the information there.

  9. karrtikr commented on Mar 10, 2022

    @karrtikr

    Blocked on conda/conda#11315 in conda. Kindly upvote that to raise priority.

  10. zixuzhuang commented on Mar 18, 2022

    @zixuzhuang

    The same problem.
    Using the latest anaconda and vscode in win10_x64

  11. karrtikr commented on Mar 18, 2022

    @karrtikr

    Try using pre-release version of the extension which has the fix:
    image

  12. locked as resolved and limited conversation to collaborators on Apr 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area-terminalbuginfo-neededinvestigating

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions