-
Notifications
You must be signed in to change notification settings - Fork 147
vscode has issues with Inline Souremap Encoding #120
Comments
Sure I can! Worth noting I haven't seen the issue using Chrome 61 or with whatever version of inspector Electron uses. Are you testing with Can you file a bug on vscode too with the version number you've used and steps to perform a simple repro? |
Testing with vscode (Version 1.17.0) with
Had another try. It works on lastest Chrome (Version 61.0.3163.100) now. Have filed a bug on vscode for this issue 35978 Thanks! |
Thanks!
Update: Root caused to |
Any chance for the future version of @std/esm to use base64 encoded data URI. |
My main concern is I'm OK with punting this to vscode or its dependencies. |
No problem. Thanks for the note. |
This bug still happens and it is as you've thought, @jdalton. VSCode's node debugger expects that source maps are formatted in base64. I've managed to hack it to work, but it'll take a while until I can do a PR for ms-vscode.node-debug. |
Hi @Pokute! I'm following along on the VSCode side and have volunteered to do a PR too. If you beat me to it that's great as well. I imagine it's just a few lines. I've outlined the function to modify in the issue thread. See microsoft/vscode#35978 (comment). Update: Thanks @Pokute for patching it! It should land in tomorrow's Insiders build. |
Currently, the inline sourcemap generated by @std/esm is not in base64 encoding.
Here is one example:
It seems vscode & chrome inpsector debugger will always assume a data URI for the inline sourcemap is in base64 encoding (even if the
;base64
extension is not included in the data URI scheme).This will lead to data decoding error. e.g. vscode will report error similart to this:
Could we please change the inline sourcemap encoding to base64?
The text was updated successfully, but these errors were encountered: