Skip to content
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

Python: unable to run current line in Python file in Python terminal #22552

Closed
mchibok opened this issue Nov 28, 2023 · 11 comments
Closed

Python: unable to run current line in Python file in Python terminal #22552

mchibok opened this issue Nov 28, 2023 · 11 comments
Assignees
Labels
triage-needed Needs assignment to the proper sub-team

Comments

@mchibok
Copy link

mchibok commented Nov 28, 2023

Type: Bug

Behaviour

Expected vs. Actual

Usually, running execSelectionInTerminal (either through the command palette with "Run the current line or selection in Python terminal" or my custom shortcut shift+enter) runs either the line where my cursor is in the python file or the selected line(s).
Now for some reason it does not work for the current line, only works when there is a selection.

Diagnostic data

  • Python version (& distribution if applicable, e.g. Anaconda): 3.7.12
  • Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Conda
  • Value of the python.languageServer setting: Default
Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)


- When running current line: 
    - 2023-11-28 12:56:04.145 [info] > C:\custprog\miniconda3\envs\actifs\python.exe ~\.vscode\extensions\ms-python.python-2023.20.0\pythonFiles\normalizeSelection.py
- When running selection: 
    - 2023-11-28 12:57:11.610 [info] > C:\custprog\miniconda3\envs\actifs\python.exe ~\.vscode\extensions\ms-python.python-2023.20.0\pythonFiles\normalizeSelection.py
    - 2023-11-28 12:57:11.752 [info] Send text to terminal: import pandas as pd

User Settings

Multiroot scenario, following user settings may not apply:

condaPath: "<placeholder>"

languageServer: "Pylance"

VS Code version: Code 1.84.2 (1a5daa3a0231a0fbba4f14db7ec463cf99d7768e, 2023-11-09T10:51:52.184Z)
OS version: Windows_NT x64 10.0.19045
Modes:

System Info
Item Value
CPUs 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz (8 x 2419)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
Load (avg) undefined
Memory (System) 15.73GB (2.14GB free)
Process Argv --crash-reporter-id 14200c77-7202-4895-8988-cc31c0389c30
Screen Reader no
VM 0%
Extensions (14)
Extension Author (truncated) Version
vscode-postgres cko 1.4.3
vscode-dbml mat 0.3.5
rainbow-csv mec 3.8.0
prettify-json moh 0.0.3
vscode-language-pack-fr MS- 1.84.2023111509
data-workspace-vscode ms- 0.5.0
mssql ms- 1.22.0
sql-bindings-vscode ms- 0.4.0
sql-database-projects-vscode ms- 1.4.1
autopep8 ms- 2023.8.0
python ms- 2023.20.0
vscode-pylance ms- 2023.11.10
pdf tom 1.2.2
markdown-pdf yza 1.5.0
A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
vserr242cf:30382550
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vsdfh931:30280409
vshan820:30294714
vstes263:30335439
vscorecescf:30445987
vscod805cf:30301675
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593cf:30376535
pythonvs932:30410667
py29gd2263:30880072
vscaat:30438848
vsclangdc:30486549
c4g48928:30535728
dsvsc012cf:30540253
pynewext54:30695312
azure-dev_surveyone:30548225
282f8724:30602487
89544117:30613380
showlangstatbar:30737416
pythonfmttext:30731395
fixshowwlkth:30771522
showindicator:30805244
pythongtdpath:30769146
i26e3531:30792625
pythonnosmt12:30797651
pythonidxpt:30866567
pythonnoceb:30805159
asynctok:30898717
dsvsc013:30795093
dsvsc014:30804076
dsvsc015:30845448
pythontestfixt:30871694
pythonregdiag2:30871582
pyreplss1:30897532
pythonmypyd1:30879173
pythoncet0:30885854
pythontbext0:30879054
dsvsc016cf:30886111
dsvsc017cf:30886113
dsvsc018:30886114
aa_t_chat:30882232

@meganrogge meganrogge assigned anthonykim1 and unassigned meganrogge Nov 28, 2023
@anthonykim1 anthonykim1 transferred this issue from microsoft/vscode Nov 28, 2023
@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Nov 28, 2023
@anthonykim1
Copy link

Can you try updating the Python extension version to the latest and try to shift+enter again?
If there are any deprecated or invalid Python code in your file, there should be a warning message that shows that will allow you to disable smart send.

@github-actions github-actions bot added the info-needed Issue requires more information from poster label Dec 8, 2023
@mchibok
Copy link
Author

mchibok commented Dec 12, 2023

Currently using v2023.22.0 and problem still occurs.

@github-actions github-actions bot removed the info-needed Issue requires more information from poster label Dec 12, 2023
@anthonykim1
Copy link

I just tested on: Screenshot 2023-12-11 at 9 28 17 PM

Try adding following in your settings.json

    "python.experiments.optInto": [
        "All"
    ],
   "python.experiments.enabled": true,

and then
Screenshot 2023-12-11 at 9 31 07 PM
try checking these for both user and workspace setting.

There should be warning message if there are invalid or deprecated Python code in your currently opened file that looks like:
Screenshot 2023-12-11 at 9 33 08 PM

Also FYI: We don't officially support 3.7 as of #21962

@github-actions github-actions bot added the info-needed Issue requires more information from poster label Dec 12, 2023
@mchibok
Copy link
Author

mchibok commented Dec 12, 2023

Well still not working and I don't get the popup message.
I tried also uninstalling/reinstalling Python extension, but still fails.

You really think this could be caused by an unsupported Python version? I'll update it and come back with more info.

Thanks!

Edit: Tried with 3.12 and same problem.
Works perfectly when line is selected, but nothing for current line.

@github-actions github-actions bot removed the info-needed Issue requires more information from poster label Dec 12, 2023
@anthonykim1
Copy link

@mchibok can you share the code content in the Python file and the specific line you shift+enter at?
I want to see if I can repro it. Thanks

@github-actions github-actions bot added the info-needed Issue requires more information from poster label Dec 12, 2023
@mchibok
Copy link
Author

mchibok commented Dec 13, 2023

@anthonykim1, I don't really need to send the content of the Python file, any line from a .py file I get the problem.

Cursor is at start of line 8, a = 6 + 5 + 3, doing ctrl + shift doesn't send anything:
image

Selecting the line 8 and doint ctrl + shift sends the code:
image

Selecting part of the line 8 sends selected code (which I believe is expected behaviour):
image

Thanks!

@github-actions github-actions bot removed the info-needed Issue requires more information from poster label Dec 13, 2023
@anthonykim1
Copy link

anthonykim1 commented Dec 13, 2023

The reason why I am asking you to provide whole content of the file is with the new smart send feature, pressing shift enter on any line of the file that contains deprecated or invalid code makes the smart send feature to fail to work. This is because Python AST, which is behind the scene fails to parse Python file that contains deprecated or invalid code.

Can you try to make a new file with something like
print('hello world')
and try shift entering to see if that one line file works?

and YES you are very correct on expected behavior of specific highlight/selection only sending that code.

@github-actions github-actions bot added the info-needed Issue requires more information from poster label Dec 13, 2023
@mchibok
Copy link
Author

mchibok commented Dec 14, 2023

Brand new file and print('hello world') as first and only line in file is not being sent from shift+enter unless selected.

I'm using Python in a conda environment. I had not mentionned this previously since shift+enter when selected did work.
Do you think that can cause a problem?

I just tried with 2 different environments and I can reproduce problem in both.

Thanks for your help!

@github-actions github-actions bot removed the info-needed Issue requires more information from poster label Dec 14, 2023
@anthonykim1
Copy link

anthonykim1 commented Dec 14, 2023

This is very interesting, I would say that is unlikely but possible. Lets try disabling and enabling things one by one and try to figure this out. Can you disable REPL Smart Send using for both user and workspace setting and try out again?(See earlier screenshot) Make sure to clear cache and reload window. I think its control shift p in windows?
Screenshot 2023-12-14 at 11 17 51 AM

@github-actions github-actions bot added the info-needed Issue requires more information from poster label Dec 14, 2023
@anthonykim1
Copy link

can you also send Python output logs after shift+enter? (no highlight shift enter)
Screenshot 2023-12-14 at 2 41 34 PM
it could be find here, just make sure to select Python and you can copy and paste the whole log, that would be great. Thanks!

@mchibok
Copy link
Author

mchibok commented Dec 15, 2023

While disabling REPL Smart Send for user and workspace settings, I also disabled it for my folder settings (\actifs.vscode\settings.json).
After some trial and error, it seems that the culprit is indeed REPL Smart Send in my folder settings.

When folder settings REPL is activated:

2023-12-15 15:46:37.360 [info] L’expérience «All» est active
2023-12-15 15:46:37.419 [info] Default formatter is set to ms-python.autopep8 for workspace c:\mik\repos\ref
2023-12-15 15:46:37.419 [info] Default formatter is set to ms-python.autopep8 for workspace c:\mik\repos\actifs
2023-12-15 15:46:37.419 [info] Default formatter is set to ms-python.autopep8 for workspace c:\mik\outremont_reprise
2023-12-15 15:46:37.419 [info] Default formatter is set to ms-python.autopep8 for workspace c:\mik\parc_laf
2023-12-15 15:46:37.419 [info] Default formatter is set to ms-python.autopep8 for workspace c:\mik\parcovert
2023-12-15 15:46:37.419 [info] Default formatter is set to ms-python.autopep8 for workspace c:\mik\repos\balado
2023-12-15 15:46:37.419 [info] Default formatter is set to ms-python.autopep8 for workspace c:\mik\repos\fiches
2023-12-15 15:46:37.589 [info] Test server listening.
2023-12-15 15:46:37.953 [info] Chemin de l’interpréteur Python : C:\custprog\miniconda3\envs\actifs\python.exe
2023-12-15 15:46:37.958 [warning] Retry failed, storage update failed for key PYTHON_GLOBAL_STORAGE_KEYS
2023-12-15 15:46:37.958 [warning] Retry failed, storage update failed for key PYTHON_GLOBAL_STORAGE_KEYS
2023-12-15 15:46:38.013 [info] > C:\custprog\miniconda3\Scripts\activate.bat info --json
2023-12-15 15:46:38.854 [warning] Retry failed, storage update failed for key PYTHON_GLOBAL_STORAGE_KEYS
2023-12-15 15:46:38.854 [warning] Retry failed, storage update failed for key PYTHON_GLOBAL_STORAGE_KEYS
2023-12-15 15:46:38.854 [warning] Retry failed, storage update failed for key PYTHON_GLOBAL_STORAGE_KEYS
2023-12-15 15:46:38.854 [warning] Retry failed, storage update failed for key PYTHON_GLOBAL_STORAGE_KEYS
2023-12-15 15:46:38.854 [warning] Retry failed, storage update failed for key PYTHON_GLOBAL_STORAGE_KEYS
2023-12-15 15:46:38.854 [warning] Retry failed, storage update failed for key PYTHON_GLOBAL_STORAGE_KEYS
2023-12-15 15:46:38.854 [warning] Retry failed, storage update failed for key PYTHON_GLOBAL_STORAGE_KEYS
2023-12-15 15:46:38.854 [warning] Retry failed, storage update failed for key PYTHON_GLOBAL_STORAGE_KEYS
2023-12-15 15:46:38.854 [warning] Retry failed, storage update failed for key PYTHON_GLOBAL_STORAGE_KEYS
2023-12-15 15:46:38.854 [warning] Retry failed, storage update failed for key PYTHON_GLOBAL_STORAGE_KEYS
2023-12-15 15:46:38.854 [warning] Retry failed, storage update failed for key PYTHON_GLOBAL_STORAGE_KEYS
2023-12-15 15:46:38.854 [warning] Retry failed, storage update failed for key PYTHON_GLOBAL_STORAGE_KEYS
2023-12-15 15:46:38.854 [warning] Retry failed, storage update failed for key PYTHON_GLOBAL_STORAGE_KEYS
2023-12-15 15:46:38.854 [warning] Retry failed, storage update failed for key PYTHON_GLOBAL_STORAGE_KEYS
2023-12-15 15:46:38.854 [warning] Retry failed, storage update failed for key PYTHON_GLOBAL_STORAGE_KEYS
2023-12-15 15:46:38.854 [warning] Retry failed, storage update failed for key PYTHON_GLOBAL_STORAGE_KEYS
2023-12-15 15:46:38.854 [warning] Retry failed, storage update failed for key PYTHON_GLOBAL_STORAGE_KEYS
2023-12-15 15:46:38.854 [warning] Retry failed, storage update failed for key PYTHON_GLOBAL_STORAGE_KEYS
2023-12-15 15:46:38.854 [warning] Retry failed, storage update failed for key PYTHON_GLOBAL_STORAGE_KEYS
2023-12-15 15:46:38.854 [warning] Retry failed, storage update failed for key PYTHON_GLOBAL_STORAGE_KEYS
2023-12-15 15:46:38.854 [warning] Retry failed, storage update failed for key PYTHON_WORKSPACE_STORAGE_KEYS
2023-12-15 15:46:38.855 [warning] Retry failed, storage update failed for key PYTHON_WORKSPACE_STORAGE_KEYS
2023-12-15 15:46:38.855 [warning] Retry failed, storage update failed for key PYTHON_WORKSPACE_STORAGE_KEYS
2023-12-15 15:46:39.642 [info] > conda info --json
2023-12-15 15:46:39.991 [error] Error in worker c:\Users\mchibok\.vscode\extensions\ms-python.python-2023.22.1\out\client\registryKeys.worker.js TypeError [Error]: Cannot read properties of null (reading 'map')
    at c:\Users\mchibok\.vscode\extensions\ms-python.python-2023.22.1\out\client\registryKeys.worker.js:1:7884
    at ChildProcess.<anonymous> (c:\Users\mchibok\.vscode\extensions\ms-python.python-2023.22.1\out\client\registryKeys.worker.js:1:3775)
    at ChildProcess.emit (node:events:513:28)
    at maybeClose (node:internal/child_process:1091:16)
    at ChildProcess._handle.onexit (node:internal/child_process:302:5)
2023-12-15 15:46:43.415 [info] > C:\custprog\miniconda3\Scripts\conda.exe info --json
2023-12-15 15:46:45.195 [info] > C:\custprog\miniconda3\condabin\conda.bat info --json
2023-12-15 15:46:46.912 [info] > C:\custprog\miniconda3\envs\actifs\python.exe -I ~\.vscode\extensions\ms-python.python-2023.22.1\pythonFiles\get_output_via_markers.py ~\.vscode\extensions\ms-python.python-2023.22.1\pythonFiles\interpreterInfo.py
2023-12-15 15:46:47.150 [info] > C:\custprog\miniconda3\Scripts\activate.bat info --json
2023-12-15 15:46:47.150 [info] shell: commandPrompt
2023-12-15 15:46:47.151 [warning] Retry failed, storage update failed for key PYTHON_GLOBAL_STORAGE_KEYS
2023-12-15 15:46:47.152 [warning] Retry failed, storage update failed for key PYTHON_GLOBAL_STORAGE_KEYS
2023-12-15 15:46:47.917 [info] > conda info --json
2023-12-15 15:46:47.917 [info] shell: commandPrompt
2023-12-15 15:46:48.085 [info] > C:\custprog\miniconda3\Scripts\conda.exe info --json
2023-12-15 15:46:48.085 [info] shell: commandPrompt
2023-12-15 15:46:48.734 [info] Démarrage du serveur de langage Pylance
2023-12-15 15:46:50.637 [info] > C:\custprog\miniconda3\condabin\conda.bat info --json
2023-12-15 15:46:50.637 [info] shell: commandPrompt
2023-12-15 15:46:55.024 [info] > C:\custprog\miniconda3\Scripts\conda.exe run -n actifs --no-capture-output python ~\.vscode\extensions\ms-python.python-2023.22.1\pythonFiles\get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2023.22.1/pythonFiles/printEnvVariables.py
2023-12-15 15:46:55.024 [info] shell: commandPrompt
2023-12-15 15:46:56.616 [info] > ~\AppData\Local\Microsoft\WindowsApps\python3.10.exe ~/.vscode/extensions/ms-python.python-2023.22.1/pythonFiles/printEnvVariables.py
2023-12-15 15:46:56.616 [info] shell: commandPrompt

2023-12-15 15:46:59.885 [info] > C:\custprog\miniconda3\envs\actifs\python.exe ~\.vscode\extensions\ms-python.python-2023.22.1\pythonFiles\normalizeSelection.py

with the last line being sent when shift+enter on current line (does not send the actuel command).

When REPL disabled in folder settings, shift+enter works for current line:

2023-12-15 15:40:32.162 [info] L’expérience «All» est active
2023-12-15 15:40:32.257 [info] Default formatter is set to ms-python.autopep8 for workspace c:\mik\repos\ref
2023-12-15 15:40:32.257 [info] Default formatter is set to ms-python.autopep8 for workspace c:\mik\repos\actifs
2023-12-15 15:40:32.257 [info] Default formatter is set to ms-python.autopep8 for workspace c:\mik\outremont_reprise
2023-12-15 15:40:32.257 [info] Default formatter is set to ms-python.autopep8 for workspace c:\mik\parc_laf
2023-12-15 15:40:32.257 [info] Default formatter is set to ms-python.autopep8 for workspace c:\mik\parcovert
2023-12-15 15:40:32.257 [info] Default formatter is set to ms-python.autopep8 for workspace c:\mik\repos\balado
2023-12-15 15:40:32.257 [info] Default formatter is set to ms-python.autopep8 for workspace c:\mik\repos\fiches
2023-12-15 15:40:32.320 [info] Test server listening.
2023-12-15 15:40:32.363 [info] > C:\custprog\miniconda3\Scripts\activate.bat info --json
2023-12-15 15:40:32.672 [error] Error in worker c:\Users\mchibok\.vscode\extensions\ms-python.python-2023.22.1\out\client\registryKeys.worker.js TypeError [Error]: Cannot read properties of null (reading 'map')
    at c:\Users\mchibok\.vscode\extensions\ms-python.python-2023.22.1\out\client\registryKeys.worker.js:1:7884
    at ChildProcess.<anonymous> (c:\Users\mchibok\.vscode\extensions\ms-python.python-2023.22.1\out\client\registryKeys.worker.js:1:3775)
    at ChildProcess.emit (node:events:513:28)
    at maybeClose (node:internal/child_process:1091:16)
    at Socket.<anonymous> (node:internal/child_process:449:11)
    at Socket.emit (node:events:513:28)
    at Pipe.<anonymous> (node:net:322:12)
2023-12-15 15:40:33.021 [warning] Retry failed, storage update failed for key PYTHON_GLOBAL_STORAGE_KEYS
2023-12-15 15:40:33.022 [warning] Retry failed, storage update failed for key PYTHON_GLOBAL_STORAGE_KEYS
2023-12-15 15:40:33.022 [warning] Retry failed, storage update failed for key PYTHON_GLOBAL_STORAGE_KEYS
2023-12-15 15:40:33.022 [warning] Retry failed, storage update failed for key PYTHON_GLOBAL_STORAGE_KEYS
2023-12-15 15:40:33.022 [warning] Retry failed, storage update failed for key PYTHON_GLOBAL_STORAGE_KEYS
2023-12-15 15:40:33.022 [warning] Retry failed, storage update failed for key PYTHON_GLOBAL_STORAGE_KEYS
2023-12-15 15:40:33.022 [warning] Retry failed, storage update failed for key PYTHON_GLOBAL_STORAGE_KEYS
2023-12-15 15:40:33.022 [warning] Retry failed, storage update failed for key PYTHON_GLOBAL_STORAGE_KEYS
2023-12-15 15:40:33.022 [warning] Retry failed, storage update failed for key PYTHON_GLOBAL_STORAGE_KEYS
2023-12-15 15:40:33.022 [warning] Retry failed, storage update failed for key PYTHON_GLOBAL_STORAGE_KEYS
2023-12-15 15:40:33.022 [warning] Retry failed, storage update failed for key PYTHON_GLOBAL_STORAGE_KEYS
2023-12-15 15:40:33.022 [warning] Retry failed, storage update failed for key PYTHON_GLOBAL_STORAGE_KEYS
2023-12-15 15:40:33.022 [warning] Retry failed, storage update failed for key PYTHON_GLOBAL_STORAGE_KEYS
2023-12-15 15:40:33.022 [warning] Retry failed, storage update failed for key PYTHON_GLOBAL_STORAGE_KEYS
2023-12-15 15:40:33.022 [warning] Retry failed, storage update failed for key PYTHON_GLOBAL_STORAGE_KEYS
2023-12-15 15:40:33.022 [warning] Retry failed, storage update failed for key PYTHON_GLOBAL_STORAGE_KEYS
2023-12-15 15:40:33.022 [warning] Retry failed, storage update failed for key PYTHON_GLOBAL_STORAGE_KEYS
2023-12-15 15:40:33.022 [warning] Retry failed, storage update failed for key PYTHON_GLOBAL_STORAGE_KEYS
2023-12-15 15:40:33.022 [warning] Retry failed, storage update failed for key PYTHON_GLOBAL_STORAGE_KEYS
2023-12-15 15:40:33.022 [warning] Retry failed, storage update failed for key PYTHON_WORKSPACE_STORAGE_KEYS
2023-12-15 15:40:33.022 [warning] Retry failed, storage update failed for key PYTHON_WORKSPACE_STORAGE_KEYS
2023-12-15 15:40:33.022 [warning] Retry failed, storage update failed for key PYTHON_WORKSPACE_STORAGE_KEYS
2023-12-15 15:40:34.832 [info] > conda info --json
2023-12-15 15:40:38.242 [info] > C:\custprog\miniconda3\Scripts\conda.exe info --json
2023-12-15 15:40:41.983 [info] > C:\custprog\miniconda3\condabin\conda.bat info --json
2023-12-15 15:40:44.255 [info] > C:\custprog\miniconda3\envs\actifs\python.exe -I ~\.vscode\extensions\ms-python.python-2023.22.1\pythonFiles\get_output_via_markers.py ~\.vscode\extensions\ms-python.python-2023.22.1\pythonFiles\interpreterInfo.py
2023-12-15 15:40:44.260 [info] > "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\python.exe" -I ~\.vscode\extensions\ms-python.python-2023.22.1\pythonFiles\get_output_via_markers.py ~\.vscode\extensions\ms-python.python-2023.22.1\pythonFiles\interpreterInfo.py
2023-12-15 15:40:44.746 [info] > C:\custprog\miniconda3\python.exe -I ~\.vscode\extensions\ms-python.python-2023.22.1\pythonFiles\get_output_via_markers.py ~\.vscode\extensions\ms-python.python-2023.22.1\pythonFiles\interpreterInfo.py
2023-12-15 15:40:44.748 [info] Chemin de l’interpréteur Python : C:\custprog\miniconda3\envs\actifs\python.exe
2023-12-15 15:40:44.749 [info] > ~\AppData\Local\Microsoft\WindowsApps\python3.10.exe -I ~\.vscode\extensions\ms-python.python-2023.22.1\pythonFiles\get_output_via_markers.py ~\.vscode\extensions\ms-python.python-2023.22.1\pythonFiles\interpreterInfo.py
2023-12-15 15:40:45.076 [info] > C:\custprog\miniconda3\envs\fiches\python.exe -I ~\.vscode\extensions\ms-python.python-2023.22.1\pythonFiles\get_output_via_markers.py ~\.vscode\extensions\ms-python.python-2023.22.1\pythonFiles\interpreterInfo.py
2023-12-15 15:40:45.078 [info] > C:\OSGeo4W\bin\python.exe -I ~\.vscode\extensions\ms-python.python-2023.22.1\pythonFiles\get_output_via_markers.py ~\.vscode\extensions\ms-python.python-2023.22.1\pythonFiles\interpreterInfo.py
2023-12-15 15:40:45.213 [error] [TypeError: Cannot read properties of undefined (reading 'stderr')
	at t.getInterpreterInfo (c:\Users\mchibok\.vscode\extensions\ms-python.python-2023.22.1\out\client\extension.js:2:536850)
	at async c.g [as workerFunc] (c:\Users\mchibok\.vscode\extensions\ms-python.python-2023.22.1\out\client\extension.js:2:531698)
	at async s.start (c:\Users\mchibok\.vscode\extensions\ms-python.python-2023.22.1\out\client\extension.js:2:320122)]
2023-12-15 15:40:47.229 [info] > C:\OSGeo4W\bin\python.exe -I ~\.vscode\extensions\ms-python.python-2023.22.1\pythonFiles\get_output_via_markers.py ~\.vscode\extensions\ms-python.python-2023.22.1\pythonFiles\interpreterInfo.py
2023-12-15 15:40:47.358 [error] [TypeError: Cannot read properties of undefined (reading 'stderr')
	at t.getInterpreterInfo (c:\Users\mchibok\.vscode\extensions\ms-python.python-2023.22.1\out\client\extension.js:2:536850)
	at async c.g [as workerFunc] (c:\Users\mchibok\.vscode\extensions\ms-python.python-2023.22.1\out\client\extension.js:2:531698)
	at async s.start (c:\Users\mchibok\.vscode\extensions\ms-python.python-2023.22.1\out\client\extension.js:2:320122)]
2023-12-15 15:40:47.442 [warning] Retry failed, storage update failed for key PYTHON_GLOBAL_STORAGE_KEYS
2023-12-15 15:40:47.442 [warning] Retry failed, storage update failed for key PYTHON_GLOBAL_STORAGE_KEYS
2023-12-15 15:40:47.445 [info] > C:\custprog\miniconda3\Scripts\activate.bat info --json
2023-12-15 15:40:47.445 [info] shell: commandPrompt
2023-12-15 15:40:48.123 [info] > conda info --json
2023-12-15 15:40:48.123 [info] shell: commandPrompt
2023-12-15 15:40:48.232 [info] > C:\custprog\miniconda3\Scripts\conda.exe info --json
2023-12-15 15:40:48.232 [info] shell: commandPrompt
2023-12-15 15:40:48.899 [info] Démarrage du serveur de langage Pylance
2023-12-15 15:40:50.266 [info] > C:\custprog\miniconda3\condabin\conda.bat info --json
2023-12-15 15:40:50.266 [info] shell: commandPrompt
2023-12-15 15:40:54.764 [info] > C:\custprog\miniconda3\Scripts\conda.exe run -n actifs --no-capture-output python ~\.vscode\extensions\ms-python.python-2023.22.1\pythonFiles\get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2023.22.1/pythonFiles/printEnvVariables.py
2023-12-15 15:40:54.764 [info] shell: commandPrompt
2023-12-15 15:40:56.439 [info] > ~\AppData\Local\Microsoft\WindowsApps\python3.10.exe ~/.vscode/extensions/ms-python.python-2023.22.1/pythonFiles/printEnvVariables.py
2023-12-15 15:40:56.439 [info] shell: commandPrompt

2023-12-15 15:43:27.757 [info] > C:\custprog\miniconda3\envs\actifs\python.exe ~\.vscode\extensions\ms-python.python-2023.22.1\pythonFiles\normalizeSelection.py
2023-12-15 15:43:28.031 [info] Send text to terminal: C:/custprog/miniconda3/envs/actifs/python.exe
2023-12-15 15:43:28.941 [info] Send text to terminal: print("hi")

Again, last lines sent when shift+enter on current line.

So basically, I can just disable REPL in folder settings and everything seems to be working!

@github-actions github-actions bot removed the info-needed Issue requires more information from poster label Dec 15, 2023
@mchibok mchibok closed this as completed Dec 20, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
triage-needed Needs assignment to the proper sub-team
Projects
None yet
Development

No branches or pull requests

3 participants