Skip to content

My python code will not run? #22711

Closed as not planned
Closed as not planned

Description

Type: Bug

Behaviour

Expected vs. Actual

It is ment to run?

Steps to reproduce:

  1. I tried all the run options top right

Diagnostic data

  • Python version (& distribution if applicable, e.g. Anaconda): 3.11.3
  • Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Global
  • Value of the python.languageServer setting: Default
Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)

XXX

User Settings


languageServer: "Pylance"

Extension version: 2023.22.1
VS Code version: Code 1.85.1 (0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2, 2023-12-13T09:49:37.021Z)
OS version: Windows_NT x64 10.0.22621
Modes:

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: 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
Load (avg) undefined
Memory (System) 7.84GB (1.38GB free)
Process Argv --crash-reporter-id 04a3fdc3-ae93-45db-9799-d75ce165575a
Screen Reader no
VM 0%
A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
vserr242cf:30382550
vsjup518:30340749
vshan820:30294714
vscorecescf:30445987
vscod805:30301674
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593cf:30376535
py29gd2263:30899288
vscaac:30438847
vsclangdc:30486549
c4g48928:30535728
dsvsc012cf:30540253
azure-dev_surveyone:30548225
f6dab269:30613381
0bi6i642:30917235
pythongtdpath:30769146
i26e3531:30792625
welcomedialogc:30910334
pythonidxpt:30866567
pythonnoceb:30805159
asynctok:30898717
dsvsc013:30795093
dsvsc014:30804076
dsvsc015:30845448
pythontestfixt:30902429
pythonregdiag2cf:30926736
pyreplss1:30897532
pythonmypyd1:30879173
pythoncet0:30885854
2e7ec940:30885897
pythontbext0:30879054
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
aa_t_chat:30882232
cp7184t3:30927821

Activity

  1. eleanorjboyd commented on Jan 3, 2024

    @eleanorjboyd
    Member

    Hello! Could you please elaborate on what issue you are having and include logs and repro steps.

  2. nichehlikes15 commented on Jan 3, 2024

    @nichehlikes15
    Author

    Hello there well there isn't much to say, my run button just doesn't work I can type run in the terminal but when working on projects this takes a long time and I want to be able to click the run button in the top right to quickly start my code, when I press it I get no response what so ever and not sure what to do

  3. eleanorjboyd commented on Jan 3, 2024

    @eleanorjboyd
    Member

    Hello! If you set your log level to trace is there any output? For your logs, can you first set your log level to trace via theDeveloper: set log level command in the command palette then see "python" in the dropdown of the output menu. Also a screen recording could help, Thanks

  4. added
    info-neededIssue requires more information from poster
    and removed
    info-neededIssue requires more information from poster
    on Jan 3, 2024
  5. nichehlikes15 commented on Jan 3, 2024

    @nichehlikes15
    Author

    Here is the output and the video link as requested:
    Im sorry but the video had to be in a zip or it was to big i tried 5 times but it keeps saying to big

    2024-01-03 18:21:45.836 [debug] Clearing context for python dependencies not installed: c:\Users\littl\OneDrive\Documents\Automati\quadclick.py
    2024-01-03 18:21:45.836 [debug] Found cached env for C:\Users\littl\AppData\Local\Programs\Python\Python311\python.exe
    2024-01-03 18:22:16.696 [debug] Clearing context for python dependencies not installed: ms-python.python.Python
    2024-01-03 18:22:16.696 [debug] Found cached env for C:\Users\littl\AppData\Local\Programs\Python\Python311\python.exe
    

    quadclick.py - Untitled (Workspace) - Visual Studio Code 2024-01-03 18-28-46.zip

  6. ROGERDJQ commented on Jan 4, 2024

    @ROGERDJQ

    #22702 also ends with same log

  7. 15 remaining items

  8. karrtikr commented on Feb 7, 2024

    @karrtikr

    Could you please provide the debug level logs after performing the steps to reproduce the issue?

    • Run Developer: Set log level command
    • Select Trace
    • Run Developer: Reload Window command
    • Provide the output:
    Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)

    XXX
    

  9. nichehlikes15 commented on Feb 7, 2024

    @nichehlikes15
    Author

    That was the debug level logs I'm pretty sure

  10. karrtikr commented on Feb 7, 2024

    @karrtikr

    Can you confirm that running those commands via the context menu doesn't do anything as well? #22711 (comment)

    What if you run some other commands, like Python: Select Interpreter for example?

  11. brettcannon commented on Mar 13, 2024

    @brettcannon
    Member

    Because we have not heard back with the information we requested, we are closing this issue for now. If you are able to provide the info later on, then we will be happy to re-open this issue to pick up where we left off.

  12. nichehlikes15 commented on Mar 13, 2024

    @nichehlikes15
    Author

    It still does not work.

  13. added 2 commits that reference this issue on Mar 28, 2024
  14. nichehlikes15 commented on Mar 29, 2024

    @nichehlikes15
    Author

    i only have python debugging i can run

  15. locked as resolved and limited conversation to collaborators on Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

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