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

shift+enter does not always execute the IW input box #23545

Closed
amunger opened this issue Jun 3, 2024 · 1 comment · Fixed by #23546
Closed

shift+enter does not always execute the IW input box #23545

amunger opened this issue Jun 3, 2024 · 1 comment · Fixed by #23546
Assignees
Labels
candidate Issue identified as probable candidate for fixing in the next release triage-needed Needs assignment to the proper sub-team

Comments

@amunger
Copy link

amunger commented Jun 3, 2024

Type: Bug

ensure "interactiveWindow.executeWithShiftEnter": true

  1. create jupyter interactive window
  2. type print(1) and press enter in the input box to add a newline
  3. type print(2) and press shift+enter to execute the input box content
    🐛 newline is added

Python should not override shift+enter behavior

Extension version: 2024.7.11511013
VS Code version: Code - Insiders 1.90.0-insider (ca688da9fb6dad00996cee7d5342490daa7bb1fb, 2024-05-31T01:05:41.342Z)
OS version: Windows_NT x64 10.0.22635
Modes:

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


languageServer: "Pylance"

testing
• pytestArgs: "<placeholder>"
• pytestEnabled: true

experiments
• optInto: ["pythonTerminalEnvVarActivation"]

Installed Extensions
Extension Name Extension Id Version
.NET Install Tool ms-dotnettools.vscode-dotnet-runtime 2.0.5
Azure Account ms-vscode.azure-account 0.12.0
Azure Repos ms-vscode.azure-repos 0.39.2024052901
Azure Resources ms-azuretools.vscode-azureresourcegroups 0.9.1
Bearded Theme BeardedBear.beardedtheme 9.1.4
Black mikoz.black-py 1.0.3
Black Formatter ms-python.black-formatter 2024.3.11501016
Bookmarks alefragnani.Bookmarks 13.5.0
C/C++ ms-vscode.cpptools 1.20.5
Data Wrangler ms-toolsai.datawrangler 1.1.1
Default Python Kernels for Jupyter Notebooks donjayamanne.vscode-default-python-kernel 0.0.1
Dev Containers ms-vscode-remote.remote-containers 0.368.0
Docker ms-azuretools.vscode-docker 1.29.1
Draw.io Integration hediet.vscode-drawio 1.6.6
EditorConfig for VS Code EditorConfig.EditorConfig 0.16.4
ERD Editor dineug.vuerd-vscode 1.0.20
esbuild Problem Matchers connor4312.esbuild-problem-matchers 0.0.3
ESLint dbaeumer.vscode-eslint 3.0.7
Extension Test Runner ms-vscode.extension-test-runner 0.0.9
Flame Chart Visualizer for JavaScript Profiles ms-vscode.vscode-js-profile-flame 1.0.9
German Language Pack for Visual Studio Code MS-CEINTL.vscode-language-pack-de 1.89.2024050109
Git Blame waderyan.gitblame 11.0.1
GitHub Actions github.vscode-github-actions 0.26.3
GitHub Copilot GitHub.copilot 1.197.909
GitHub Copilot Chat GitHub.copilot-chat 0.16.2024060302
GitHub Pull Requests GitHub.vscode-pull-request-github 0.89.2024053108
GitHub Repositories GitHub.remotehub 0.63.2024052901
isort ms-python.isort 2023.10.1
JavaScript Debugger ms-vscode.js-debug 1.90.0
JavaScript Debugger (Nightly) ms-vscode.js-debug-nightly 2024.5.217
JavaScript Debugger Companion Extension ms-vscode.js-debug-companion 1.1.2
Jupyter ms-toolsai.jupyter 2024.5.2024052901
Jupyter Cell Tags ms-toolsai.vscode-jupyter-cell-tags 0.1.9
Jupyter Keymap ms-toolsai.jupyter-keymap 1.1.2
Jupyter Notebook Renderers ms-toolsai.jupyter-renderers 1.0.17
Jupyter Slide Show ms-toolsai.vscode-jupyter-slideshow 0.1.6
JupyterHub ms-toolsai.jupyter-hub 2024.4.1001511100
Line Filter roblourens.vscode-line-filter 0.0.3
Luna Paint — Image Editor Tyriar.luna-paint 0.16.0
Mocha Test Explorer hbenl.vscode-mocha-test-adapter 2.14.1
Node.js Notebooks (REPL) donjayamanne.typescript-notebook 2.0.6
PR Pinger jrieken.vscode-pr-pinger 0.0.6
Prettier - Code formatter esbenp.prettier-vscode 10.4.0
Prettify JSON mohsen1.prettify-json 0.0.3
Pylance ms-python.vscode-pylance 2024.5.1
Python ms-python.python 2024.7.11511013
Python Debugger ms-python.debugpy 2024.7.11371017
Python Environment Manager ms-python.vscode-python-envs 0.0.1
Remote - SSH ms-vscode-remote.remote-ssh 0.112.2024053015
Remote - SSH: Editing Configuration Files ms-vscode-remote.remote-ssh-edit 0.86.0
Remote - Tunnels ms-vscode.remote-server 1.6.2024053009
Remote Explorer ms-vscode.remote-explorer 0.5.2024052909
Remote Repositories ms-vscode.remote-repositories 0.41.2024022202
SVG jock.svg 1.5.3
Table Visualizer for JavaScript Profiles ms-vscode.vscode-js-profile-table 1.0.9
Test Adapter Converter ms-vscode.test-adapter-converter 0.1.9
Test Explorer UI hbenl.vscode-test-explorer 2.21.1
ts-extract-interface rilut.ts-extract-interface 0.1.2
TypeScript + Webpack Problem Matchers amodio.tsl-problem-matcher 0.6.2
VS Code Selfhost Test Provider ms-vscode.vscode-selfhost-test-provider 0.3.25
WSL ms-vscode-remote.remote-wsl 0.88.2
YAML redhat.vscode-yaml 1.14.0
System Info
Item Value
CPUs Intel(R) Xeon(R) CPU E5-1620 v4 @ 3.50GHz (8 x 3492)
GPU Status 2d_canvas: unavailable_software
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: disabled_software
multiple_raster_threads: enabled_on
opengl: disabled_off
rasterization: disabled_software
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: disabled_software
video_encode: disabled_software
vulkan: disabled_off
webgl: unavailable_software
webgl2: unavailable_software
webgpu: unavailable_software
Load (avg) undefined
Memory (System) 31.92GB (11.25GB free)
Process Argv --crash-reporter-id 99cd116c-59d9-4cd2-bda6-71a895fc8076
Screen Reader no
VM 0%
A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805:30301674
vsaa593:30376534
py29gd2263:31024238
c4g48928:30535728
vscrp:30624060
a9j8j154:30646983
962ge761:30841072
pythongtdpath:30726887
welcomedialog:30812478
pythonidxpt:30768918
pythonnoceb:30776497
asynctok:30898717
dsvsc013:30777762
dsvsc014:30777825
dsvsc015:30821418
pythontestfixt:30866404
pythonregdiag2:30926734
pythonmypyd1:30859725
pythoncet0:30859736
2e7ec940:31000449
pythontbext0:30879054
accentitlementst:30870582
dsvsc016:30879898
dsvsc017:30880771
dsvsc018:30880772
cppperfnew:30980852
pythonait:30973460
jchc7451:31066416
showvideot:31016890
chatpanelt:31014475
01bff139:31013167
a69g1124:31018687
dvdeprecation:31040973
pythonprt:31036556
dwnewjupytercf:31046870
nb_pkg_only:31057982
26j00206:31048877

@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Jun 3, 2024
@amunger amunger self-assigned this Jun 3, 2024
@amunger amunger added the candidate Issue identified as probable candidate for fixing in the next release label Jun 3, 2024
@amunger
Copy link
Author

amunger commented Jun 3, 2024

@anthonykim1 python.execInREPL sends to the REPL from a .py file on shift+enter, different from python.execREPLShiftEnter

anthonykim1 pushed a commit that referenced this issue Jun 3, 2024
DonJayamanne pushed a commit to DonJayamanne/pythonVSCode that referenced this issue Jun 24, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
candidate Issue identified as probable candidate for fixing in the next release triage-needed Needs assignment to the proper sub-team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants