Skip to content

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

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

Open
kycutler opened this issue Apr 9, 2025 · 0 comments · May be fixed by #692
Open

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

kycutler opened this issue Apr 9, 2025 · 0 comments · May be fixed by #692
Labels
triage-needed Needs assignment to the proper sub-team

Comments

@kycutler
Copy link

kycutler commented Apr 9, 2025

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.

@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Apr 9, 2025
@kycutler kycutler linked a pull request Apr 9, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage-needed Needs assignment to the proper sub-team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant