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

Attempting to debug in python "times out" on Win11 #21

Open
smithrobs opened this issue Dec 6, 2024 · 0 comments
Open

Attempting to debug in python "times out" on Win11 #21

smithrobs opened this issue Dec 6, 2024 · 0 comments
Labels
impact/usability Something that impacts users' ability to use the product easily and intuitively kind/bug Some behavior is incorrect or out of spec

Comments

@smithrobs
Copy link

What happened?

Attempting a simple debug of a python program on Windows 11 "times out" with an error Unable to start debugging: context deadline exceeded

launch.config does not deviate from the example:

{
    "type": "pulumi",
    "request": "launch",
    "name": "pulumi preview",
    "command": "preview",
    "workDir": "${workspaceFolder}"
},

Debug console output:

Updating (dev)

View Live: <stack url>


@ Updating...............................................................
    pulumi:pulumi:Stack azure-py-dev  E1206 14:55:07.287129   30856 main.go:972] Unable to start debugging: context deadline exceeded
    pulumi:pulumi:Stack azure-py-dev  error: an unhandled error occurred: program exited with non-zero exit code: 1
    pulumi:pulumi:Stack azure-py-dev **failed** 1 error; 1 message
Diagnostics:
  pulumi:pulumi:Stack (azure-py-dev):
    E1206 14:55:07.287129   30856 main.go:972] Unable to start debugging: context deadline exceeded

    error: an unhandled error occurred: program exited with non-zero exit code: 1

Resources:

Duration: 1m1s

A non-debug pulumi up works fine.

Example

Any simple program will do

from pulumi_azure_native import resources

# Create an Azure Resource Group
resource_group = resources.ResourceGroup("resource_group")

Output of pulumi about

CLI
Version      3.142.0
Go Version   go1.23.3
Go Compiler  gc

Plugins
KIND      NAME          VERSION
resource  azure-native  2.75.0
language  python        unknown

Host     
OS       Microsoft Windows 11 Pro
Version  10.0.22631 Build 22631
Arch     x86_64

This project is written in python: executable='F:\Projects\Pulumi\_scratch\azure-py\venv\Scripts\python.exe' version='3.12.6'

Found no resources associated with dev

Found no pending operations associated with dev

Backend        
Name           pulumi.com
URL            https://app.pulumi.com/smithrobs
User           smithrobs
Organizations  smithrobs
Token type     personal

Dependencies:
NAME                 VERSION
pip                  24.3.1
pulumi_azure_native  2.75.0
setuptools           75.6.0
wheel                0.45.1

Additional context

No response

Contributing

Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

@smithrobs smithrobs added kind/bug Some behavior is incorrect or out of spec needs-triage Needs attention from the triage team labels Dec 6, 2024
@mjeffryes mjeffryes added impact/usability Something that impacts users' ability to use the product easily and intuitively and removed needs-triage Needs attention from the triage team labels Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
impact/usability Something that impacts users' ability to use the product easily and intuitively kind/bug Some behavior is incorrect or out of spec
Projects
None yet
Development

No branches or pull requests

2 participants