Skip to content

Run button not working in python extension #24920

Closed
@snate28

Description

@snate28

Type: Bug

Run button doesn't do anything when I press it, however if I type "python filename.py" in the terminal, it runs normally. I've tried reinstalling vs studio completely and it didn't resolve the issue. I'm trying to configure vs code with my anaconda environment.
Output > Python:
2025-03-18 21:04:16.315 [info] Experiment 'pythonRecommendTensorboardExt' is active
2025-03-18 21:04:16.316 [info] Experiment 'pythonTerminalEnvVarActivation' is active
2025-03-18 21:04:16.316 [info] Experiment 'pythonTestAdapter' is active
2025-03-18 21:04:16.316 [info] Native locator: Refresh started
2025-03-18 21:04:16.316 [info] Native locator: Refresh started
2025-03-18 21:04:16.316 [info] > pyenv which python
2025-03-18 21:04:16.316 [info] cwd: .

Output > Python Locator:
2025-03-18 21:04:16.317 [info] Starting Python Locator c:\Users\snate.vscode\extensions\ms-python.python-2025.2.0-win32-x64\python-env-tools\bin\pet.exe server

Help > Toggle Developer Tools > console:

WARN Creation of workbench contribution 'workbench.contrib.preferencesActions' took 21ms.
warn @ log.ts:446
log.ts:446  WARN Creation of workbench contribution 'workbench.contrib.explorerViewletViews' took 22ms.
warn @ log.ts:446
log.ts:446  WARN Creation of workbench contribution 'workbench.contrib.dirtyFilesIndicator' took 116ms.
warn @ log.ts:446
log.ts:446  WARN Creation of workbench contribution 'workbench.chat.setup' took 25ms.
warn @ log.ts:446
log.ts:436  INFO Started local extension host with pid 6940.
log.ts:436  INFO Settings Sync: Account status changed from uninitialized to unavailable
log.ts:436  INFO [perf] Render performance baseline is 555ms
log.ts:436  INFO Extension host (LocalProcess pid: 6940) is unresponsive.
log.ts:436  INFO Extension host (LocalProcess pid: 6940) is responsive.
log.ts:436  INFO UNRESPONSIVE extension host: received responsive event and cancelling profiling session
localProcessExtensionHost.ts:275 Extension Host
localProcessExtensionHost.ts:276 Debugger attached.
log.ts:436  INFO UNRESPONSIVE extension host: starting to profile NOW
log.ts:436  INFO Extension host (LocalProcess pid: 6940) is unresponsive.
localProcessExtensionHost.ts:275 Extension Host
localProcessExtensionHost.ts:276 Debugger attached.
log.ts:436  INFO UNRESPONSIVE extension host: starting to profile NOW
log.ts:436  INFO Extension host (LocalProcess pid: 6940) is responsive.
log.ts:436  INFO UNRESPONSIVE extension host: received responsive event and cancelling profiling session
log.ts:456   ERR PerfSampleError: PerfSampleError: by ms-python.vscode-pylance in _0xaeb006#extension.bundle.js:1:276277
error @ log.ts:456
log.ts:456   ERR PerfSampleError: PerfSampleError: by vscode.git in c#main.js:2:131740
error @ log.ts:456
log.ts:456   ERR PerfSampleError: PerfSampleError: by vscode.git in __webpack_require__#main.js:2:1208562
error @ log.ts:456
log.ts:456   ERR PerfSampleError: PerfSampleError: by ms-python.vscode-pylance in (anonymous)#vendor.bundle.js:2:1911153
error @ log.ts:456
log.ts:446  WARN UNRESPONSIVE extension host: 'ms-python.vscode-pylance' took 67.24836798760064% of 255.991ms, saved PROFILE here: 'file:///c%3A/Users/snate/AppData/Local/Temp/exthost-e882ea.cpuprofile'
warn @ log.ts:446
console.ts:137 [Extension Host] Git installation not found.
mls @ console.ts:137
log.ts:456   ERR TreeError [DebugRepl] Tree input not set: Error: TreeError [DebugRepl] Tree input not set
    at Lf.C (vscode-file://vscode-app/c:/Users/snate/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:413:29043)
    at Lf.updateChildren (vscode-file://vscode-app/c:/Users/snate/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:413:28950)
    at xie.value (vscode-file://vscode-app/c:/Users/snate/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2065:33649)
    at E.B (vscode-file://vscode-app/c:/Users/snate/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:29:2392)
    at E.C (vscode-file://vscode-app/c:/Users/snate/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:29:2462)
    at E.fire (vscode-file://vscode-app/c:/Users/snate/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:29:2680)
    at Iye.setVisible (vscode-file://vscode-app/c:/Users/snate/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:648:2727)
    at vscode-file://vscode-app/c:/Users/snate/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:1278:11843
    at Array.map (<anonymous>)
    at su.setVisible (vscode-file://vscode-app/c:/Users/snate/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:1278:11834)
error @ log.ts:456
log.ts:456   ERR [uncaught exception in main]: Titlebar overlay is not enabled: Error: Titlebar overlay is not enabled
    at Eu.updateWindowControls (file:///C:/Users/snate/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/main.js:68:49027)
    at Eu.n (file:///C:/Users/snate/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/main.js:68:47150)
    at Eu.P (file:///C:/Users/snate/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/main.js:77:8710)
    at Eu.tryClaimWindow (file:///C:/Users/snate/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/main.js:77:8480)
    at App.<anonymous> (file:///C:/Users/snate/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/main.js:77:9723)
    at App.emit (node:events:518:28)
    at n._init (node:electron/js2c/browser_init:2:13688)
    at openGuestWindow (node:electron/js2c/browser_init:2:102842)
    at WebContents.<anonymous> (node:electron/js2c/browser_init:2:90211)
    at WebContents.emit (node:events:518:28)

VS Code version: Code 1.98.2 (ddc367ed5c8936efe395cffeec279b04ffd7db78, 2025-03-12T13:32:45.399Z)
OS version: Windows_NT x64 10.0.22631
Modes:

System Info
Item Value
CPUs Intel(R) Celeron(R) N4000 CPU @ 1.10GHz (2 x 1094)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: disabled_off
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) undefined
Memory (System) 7.84GB (1.65GB free)
Process Argv --crash-reporter-id 064c1b65-be8e-48e5-87d7-5db234c2b9b7
Screen Reader no
VM 0%
Extensions (3)
Extension Author (truncated) Version
debugpy ms- 2025.4.1
python ms- 2025.2.0
vscode-pylance ms- 2025.3.2
A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805:30301674
binariesv615:30325510
py29gd2263:31024239
vscaac:30438847
c4g48928:30535728
azure-dev_surveyone:30548225
vscrp:30673768
a9j8j154:30646983
962ge761:30959799
h48ei257:31000450
pythontbext0:30879054
cppperfnew:31000557
dwnewjupyter:31046869
nativerepl2:31139839
pythonrstrctxt:31112756
nativeloc1:31192215
iacca1:31171482
5fd0e150:31155592
dwcopilot:31170013
6074i472:31201624
dwoutputs:31242946
customenabled:31248079
hdaa2157:31222309
copilot_t_ci:31222730
968h8231:31262364
jda6j935:31233686
pythoneinst12:31262605
bgtreat:31262795
fh1c7952:31258891
6h6a5794:31261449
31787653:31262186
793h1473:31263300

Metadata

Metadata

Assignees

Labels

triage-neededNeeds assignment to the proper sub-team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions