Skip to content

TypeScript debugging fails when the project path contains a bracket #166400

Closed
microsoft/vscode-js-debug
#1466
@laurencejp

Description

  • VS Code Version: 1.73.1
  • OS Version: Windows_NT x64 10.0.19045
  • NodeJS Version: 18.12.1
  • TypeScript Version: 4.8.4

This issue occurs with all extensions disabled.

Steps to Reproduce:

  1. Create a folder with a bracket in the name, for example C:\(my) project.
  2. Open the folder in VS Code and add the following files:

file1.ts

import myFunc from "./file2";

console.log(myFunc("Hello World!"));

file2.ts

export default (a: string) => a.toUpperCase();

tsconfig.json

{
  "compilerOptions": {
    "target": "es5",
    "module": "commonjs",
    "outDir": "out",
    "sourceMap": true
  }
}
  1. With the editor open in file1.ts, Press F5 and run the Node debugger.
  2. Observe the following error:
    image

This does not occur if the folder is renamed to C:\my project.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugdebugDebug viewlet, configurations, breakpoints, adapter issuesverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions