Skip to content

Setting breakpoint fails if certain unicode characters are in the path #1364

Closed
@EricCornelson

Description

Describe the bug
Setting breakpoint fails if certain unicode characters (e.g. 😊) are in the path. Stack trace:

Error processing setBreakpoints: URIError: URI malformed
    at encodeURIComponent (<anonymous>)
    at C (c:\Users\aerie\.vscode-insiders\extensions\ms-vscode.js-debug-nightly-2022.8.417\src\extension.js:2:1066907)
    at O (c:\Users\aerie\.vscode-insiders\extensions\ms-vscode.js-debug-nightly-2022.8.417\src\extension.js:2:1067205)
    at t.urlToRegex (c:\Users\aerie\.vscode-insiders\extensions\ms-vscode.js-debug-nightly-2022.8.417\src\extension.js:2:1067515)
    at v.absolutePathToUrlRegexp (c:\Users\aerie\.vscode-insiders\extensions\ms-vscode.js-debug-nightly-2022.8.417\src\extension.js:2:1122884)
    at l._setByPath (c:\Users\aerie\.vscode-insiders\extensions\ms-vscode.js-debug-nightly-2022.8.417\src\extension.js:2:797650)
    at l.enable (c:\Users\aerie\.vscode-insiders\extensions\ms-vscode.js-debug-nightly-2022.8.417\src\extension.js:2:794119)
    at c:\Users\aerie\.vscode-insiders\extensions\ms-vscode.js-debug-nightly-2022.8.417\src\extension.js:2:790310
    at Array.map (<anonymous>)
    at D.setBreakpoints (c:\Users\aerie\.vscode-insiders\extensions\ms-vscode.js-debug-nightly-2022.8.417\src\extension.js:2:790300)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at t.default._onMessage (c:\Users\aerie\.vscode-insiders\extensions\ms-vscode.js-debug-nightly-2022.8.417\src\extension.js:2:1078258)"

To Reproduce

Folder structure:
image

index.html:

<head>
</head>
<body>
    <h1>yay emojis</h1>
    <script src="😊/test.js"></script>
</body>

test.js:

console.log('foo');

Log File
log.txt

VS Code Version:
image

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 bugverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions