Skip to content

Extension throwing TypeError: Cannot read properties of undefined (reading 'toString') #691

Closed

Description

@kycutler

We are seeing errors from recent versions of this extension causing our CI to fail. The error is:

Uncaught TypeError: Cannot read properties of undefined (reading 'toString')
at <...>\extensions\ms-python.debugpy-2025.6.0-win32-x64\dist\extension.js:2:849866
at FSReqCallback.readFileAfterClose [as oncomplete] (node:internal/fs/read/context:52:12)

Tracking down the line/column number shows it is coming from within src/extension/noConfigDebugInit.ts.

I have a PR to fix -- will open shortly.

Activity

  1. added
    triage-needed
    on Apr 9, 2025
  2. added
    needs PR
    and removed
    triage-needed
    on May 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

needs PR

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions