Repository navigation
Run Button #20874
Copy link
Copy link
Closed
Labels
area-environmentsFeatures relating to handling interpreter environmentsFeatures relating to handling interpreter environmentsinfo-neededIssue requires more information from posterIssue requires more information from postertriage-neededNeeds assignment to the proper sub-teamNeeds assignment to the proper sub-team
Description
Type: Bug
Behaviour
Expected vs. Actual
I expected to when i click the run button, right click and press run or press the optains on the run button and click run for it to run my python file but instead nothing happenes
Steps to reproduce:
- Just click the run button
Diagnostic data
- Python version (& distribution if applicable, e.g. Anaconda): 3.11.2
- Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Global
- Value of the
python.languageServersetting: Default
Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)
Experiment 'pythonPromptNewToolsExt' is active
LSP Notebooks experiment is enabled
LSP Notebooks interactive window support is enabled
> conda info --json
Python interpreter path: ~\AppData\Local\Programs\Python\Python311\python.exe
Starting Pylance language server.
[ERROR 2023-2-18 13:48:5.251]: sendStartupTelemetry() failed. [TypeError: Cannot read properties of undefined (reading 'uri')
at m (c:\Users\littl\.vscode\extensions\ms-python.python-2023.4.1\out\client\extension.js:2:697508)
at t.sendStartupTelemetry (c:\Users\littl\.vscode\extensions\ms-python.python-2023.4.1\out\client\extension.js:2:698495)]
> ~\AppData\Local\Programs\Python\Python310\python.exe -I ~\.vscode\extensions\ms-python.python-2023.4.1\pythonFiles\get_output_via_markers.py ~\.vscode\extensions\ms-python.python-2023.4.1\pythonFiles\interpreterInfo.py
> ~\AppData\Local\Programs\Python\Python311\python.exe -I ~\.vscode\extensions\ms-python.python-2023.4.1\pythonFiles\get_output_via_markers.py ~\.vscode\extensions\ms-python.python-2023.4.1\pythonFiles\interpreterInfo.py
User Settings
languageServer: "Pylance"
Extension version: 2023.4.1
VS Code version: Code 1.76.1 (5e805b79fcb6ba4c2d23712967df89a089da575b, 2023-03-08T16:32:00.131Z)
OS version: Windows_NT x64 10.0.22621
Modes:
Sandboxed: No
System Info
| Item | Value |
|---|---|
| CPUs | Intel(R) Core(TM) i5-9300H CPU @ 2.40GHz (8 x 2400) |
| GPU Status | 2d_canvas: enabled canvas_oop_rasterization: disabled_off 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_renderer: enabled_on video_decode: enabled video_encode: enabled vulkan: disabled_off webgl: enabled webgl2: enabled webgpu: disabled_off |
| Load (avg) | undefined |
| Memory (System) | 7.84GB (1.64GB free) |
| Process Argv | --crash-reporter-id 04a3fdc3-ae93-45db-9799-d75ce165575a |
| Screen Reader | no |
| VM | 0% |
A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
pythonvspyl392:30443607
vserr242cf:30382550
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263cf:30335440
vscorecescf:30445987
pythondataviewer:30285071
vscod805:30301674
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
cmake_vspar411:30581797
vsaa593cf:30376535
pythonvs932:30410667
cppdebug:30492333
vscaac:30438847
vsclangdc:30486549
c4g48928:30535728
dsvsc012cf:30540253
pynewext54:30681850
azure-dev_surveyone:30548225
vscccc:30610679
pyindex848:30662994
nodejswelcome1cf:30587006
282f8724:30602487
pyind779:30671433
f6dab269:30613381
pythonsymbol12:30671437
6233i204:30672705
vsccsb:30677849
pythonb192cf:30669361
defaultazurewalk:30687958
pythonms35cf:30686773
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area-environmentsFeatures relating to handling interpreter environmentsFeatures relating to handling interpreter environmentsinfo-neededIssue requires more information from posterIssue requires more information from postertriage-neededNeeds assignment to the proper sub-teamNeeds assignment to the proper sub-team
Activity
karrtikr commentedon Mar 18, 2023
What happens if you use the following instead?

Please provide the debug logs, set
python.logging.leveltodebugin User settings, reload window, then perform the steps to reproduce before providing the logs.Output for
Pythonin theOutputpanel (View→Output, change the drop-down the upper-right of theOutputpanel toPython)nichehlikes15 commentedon Mar 18, 2023
yes so I'm not able to provide debug logs at this moment in time but I will do tomorrow, all though I can say that nothing happens and the only run option that worked for me was the interactive run button.
nichehlikes15 commentedon Mar 19, 2023
Hello Kartik Raj (@karrtikr) i have your debug logs but as i said previously the run button dose not work at all therefore getting no logs so this is the best i could find when using the only run button that works (Run in Interactive window).

karrtikr commentedon Mar 19, 2023
I would need the full logs as asked earlier, when running Python file using the play icon.
nichehlikes15 commentedon Mar 19, 2023
As mentioned earlier the run button dose not work therefore no logs
karrtikr commentedon Mar 19, 2023
Can you send a screenshot of the Python output channel?
Make sure to open a Python file and wait for extension to activate, before using the run button.
karrtikr commentedon Mar 20, 2023
For example:

nichehlikes15 commentedon Mar 20, 2023
Here are my output logs as shown below
User Output logs
4 remaining items
JonKsander1984 commentedon Mar 27, 2023
ok good program
nichehlikes15 commentedon Mar 28, 2023
Ok cool thanks Kartik Raj (@karrtikr) but it is also not just me other of my mates have the same problem
karrtikr commentedon Mar 28, 2023
Please ask them to leave a comment here with the logs and we'll be happy to take a look.
nichehlikes15 commentedon Apr 11, 2023
any updates? Kartik Raj (@karrtikr)
nichehlikes15 commentedon May 6, 2023
Whole month 🤨🤨🤨
karrtikr commentedon May 7, 2023
Sorry, waiting for more users as noted earlier.
Fix startup telemetry issue (#21203)
karrtikr commentedon May 9, 2023
I've created #21203 which could possibly fix your issue.
Fix should be out in the pre-release version of the extension, use the following to try it out:
Fix startup telemetry issue (microsoft#21203)
Merged PR posit-dev/positron-python#122: Merging upstream vscode-pyth…
Merged PR posit-dev/positron-python#122: Merging upstream vscode-pyth…