-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
command 'python.execInTerminal' not found #22417
Comments
@jkyeung Please make sure that the python extension is activated. This often means that the extension failed to activate or has not activated. You should be able to see this in the Output > Python logs if there were any issues. |
It's activated. I get syntax highlighting and so on. The Python interpreter is listed in the lower right of the status bar. And it does say "This extension is enabled globally". |
@jkyeung Do you see any error reported in Developer tools? Help > toggle developer tools |
Thanks for the bug report! We investigate issues in order based on priority and severity, which includes the impact it has on your ability to use the extension to do productive work, and the number of people affected. If other users come forward and leave a comment demonstrating they are seeing/reproducing the problem then we will raise this issue's priority. Thanks for understanding and the patience! |
I just came across this issue as well, I was working for me within the past 3 days. Version: 1.84.1 |
If the issue is still present, please provide the Python debug logs which can help diagnose it:
Output for
|
OK, see attached. 2024-02-01a (Python output in VS Code).txt The line that was timestamped 2024-02-01 14:31:29.332 was on the screen when I pressed F5 (which I have defined as "python.execInTerminal"). Other than the "command 'python.execInTerminal' not found" message, nothing seemed to happen. Then a few moments later, the line timestamped 2024-02-01 14:32:08.115 showed up. |
I just ran into the same error message and thought I'd post what the issue was for me. I had opened a Workspace which was not trusted yet, and thus opened in "Restricted Mode". Clicking "Restricted Mode" in the status bar and selecting "Trust" author resolved the issue for me. |
Type: Bug
Behaviour
Expected vs. Actual
Expected: Pressing the hotkey for "Run Python File in Terminal" runs the Python file in the terminal.
Actual: Get a message that says "command 'python.execInTerminal' not found" and nothing else happens.
Steps to reproduce:
Note that right-clicking the source, then choosing "Run Python > Run Python File in Terminal", appears to do nothing (no error message).
Also note that this used to work fine until recently.
Also note that this issue sounds exactly like #21610 but
Python: Clear cache and reload window
, as suggested in the closed GitHub issue, also did not workPotentially relevant to point 4: It's on a work laptop that I use both at home and in the office; in between I put the computer to sleep.
Diagnostic data
python.languageServer
setting: DefaultOutput for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)User Settings
Extension version: 2023.20.0
VS Code version: Code 1.84.0 (d037ac076cee195194f93ce6fe2bdfe2969cc82d, 2023-11-01T11:29:04.398Z)
OS version: Windows_NT x64 10.0.22621
Modes:
System Info
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
The text was updated successfully, but these errors were encountered: