Skip to content

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

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
jiaxiaosong1002 opened this issue Mar 5, 2022 · 8 comments · Fixed by #18661
Closed

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

jiaxiaosong1002 opened this issue Mar 5, 2022 · 8 comments · Fixed by #18661
Assignees
Labels
area-terminal bug Issue identified by VS Code Team member as probable bug info-needed Issue requires more information from poster investigating We are looking into the cause of the issue

Comments

@jiaxiaosong1002
Copy link

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.
@fsjwlf
Copy link

fsjwlf commented Mar 5, 2022

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

@xlsjdjdk
Copy link

xlsjdjdk commented Mar 5, 2022

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

@karrtikr
Copy link

karrtikr commented Mar 8, 2022

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.

@karrtikr karrtikr transferred this issue from microsoft/vscode Mar 8, 2022
@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Mar 8, 2022
@karrtikr karrtikr assigned karrtikr and unassigned Tyriar Mar 8, 2022
@karthiknadig karthiknadig added triage area-terminal bug Issue identified by VS Code Team member as probable bug and removed triage-needed Needs assignment to the proper sub-team labels Mar 8, 2022
@karrtikr
Copy link

karrtikr commented Mar 8, 2022

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

@karrtikr
Copy link

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

@karrtikr
Copy link

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

@zixuzhuang
Copy link

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

@karrtikr
Copy link

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

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-terminal bug Issue identified by VS Code Team member as probable bug info-needed Issue requires more information from poster investigating We are looking into the cause of the issue
Projects
None yet
7 participants