Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Problem executing multiple lines of code: ... versus >>> #25043

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

Open
ptoche opened this issue Apr 30, 2025 · 2 comments
Open

Problem executing multiple lines of code: ... versus >>> #25043

ptoche opened this issue Apr 30, 2025 · 2 comments
Assignees
Labels
area-repl info-needed Issue requires more information from poster

Comments

@ptoche
Copy link

ptoche commented Apr 30, 2025

Does this issue occur when all extensions are disabled?: Yes/No

Unsure. I could not find that option in the VS code menu.

  • VS Code Version:

Version: 1.99.3 (Universal)
Commit: 17baf841131aa23349f217ca7c570c76ee87b957
Date: 2025-04-15T23:18:46.076Z
Electron: 34.3.2
ElectronBuildId: 11161073
Chromium: 132.0.6834.210
Node.js: 20.18.3
V8: 13.2.152.41-electron.0
OS: Darwin arm64 24.4.0

  • OS Version:
    Sequoia 15.4.1

Steps to Reproduce:

  1. Execute two lines of code line by line returns >>>

  2. Execute two lines of code both lines at once returns ...

I've never had the problem before. But I have just updated MacOS Sequoia...

I am using (and have used for years) the following shortcut.

    {
        "key": "f12",
        "command": "python.execSelectionInTerminal",
        "when": "editorTextFocus && !findInputFocussed && !jupyter.ownsSelection && !notebookEditorFocused && !replaceInputFocussed && editorLangId == 'python'"
    },

It doesn't look like the bug report feature in the Help menu is working: After I click on "Preview on Github", I don't see all the information attached. So I'm copy-pasting it below just in case.

CPUs | Apple M1 Pro (8 x 2400)
-- | --
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 skia_graphite: disabled_off video_decode: enabled video_encode: enabled webgl: enabled webgl2: enabled webgpu: enabled webnn: disabled_off
Load (avg) | 1, 2, 3
Memory (System) | 16.00GB (1.09GB free)
Process Argv | --crash-reporter-id 7c54cf5a-af11-4cad-bd51-9f6c23e4d7c3
Screen Reader | no
VM | 0%


Extension | Author (truncated) | Version
-- | -- | --
debugpy | ms- | 2025.6.0
python | ms- | 2025.4.0
vscode-pylance | ms- | 2025.4.1
jupyter | ms- | 2025.3.0
jupyter-keymap | ms- | 1.1.2
jupyter-renderers | ms- | 1.1.0
vscode-jupyter-cell-tags | ms- | 0.1.9
vscode-jupyter-slideshow | ms- | 0.1.6

vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805cf:30301675
binariesv615:30325510
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30959799
h48ei257:31000450
pythontbext0:30879054
cppperfnew:31000557
dwnewjupyter:31046869
pythonrstrctxt:31112756
nativeloc1:31192215
5fd0e150:31155592
dwcopilot:31170013
6074i472:31201624
dwoutputs:31242946
customenabled:31248079
9064b325:31222308
copilot_t_ci:31222730
e5gg6876:31282496
pythoneinst12:31285622
bgtreat:31268568
4gafe986:31271826
31787653:31262186
3e8i5726:31271747
996jf627:31283433
usemplatestapi:31297334
7bj51361:31289155
747dc170:31275177
aj496949:31278748
aj953862:31281341
generatesymbolt:31295002
convertfstringf:31295003
gendocf:31295004

@vs-code-engineering vs-code-engineering bot added the triage-needed Needs assignment to the proper sub-team label Apr 30, 2025
@connor4312 connor4312 assigned anthonykim1 and unassigned connor4312 Apr 30, 2025
@vs-code-engineering vs-code-engineering bot removed the triage-needed Needs assignment to the proper sub-team label Apr 30, 2025
@anthonykim1
Copy link

Which version of Python are you using, and which version of Python extension are you using?
Could you also try to record the behavior on screen recording/gif?

@anthonykim1 anthonykim1 transferred this issue from microsoft/vscode May 8, 2025
@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label May 8, 2025
@anthonykim1 anthonykim1 added area-repl info-needed Issue requires more information from poster and removed triage-needed Needs assignment to the proper sub-team labels May 8, 2025
@ptoche
Copy link
Author

ptoche commented May 14, 2025

Thank you for the suggestion. Here's a demo.

gif

I have the latest updated versions of Visual Studio Code and Python.

The only extensions are for Python and Jupyter.

I execute the code with a shortcut. I have done this for so long that I don't even know where to find the command in the menu anymore. I had the issue a few months ago, then it went away, and now it's come back.

I placed the gif in a repo, because it was too large to share here.

repo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-repl info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

3 participants