-
Notifications
You must be signed in to change notification settings - Fork 282
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
SourceRoot not Considered as Absolute Path #1424
Comments
We do not currently support loading remote sources from maps in Node. However, note that you will also need changes in how you publish sourcemaps. The source root |
@connor4312 Thanks a lot for the quick reply. I guess the Anyhow if it is not supported it will not work. Since you said |
I don't have a timeline at the moment, but this may be easy to add. Code pointer: vscode-js-debug/src/adapter/sources.ts Lines 1136 to 1140 in a599559
Currently |
I guess there is already a fetchHtt but it is not used because the absolutePath is fooled since the URL is not starting with a This seems simple enough even for me :-) to fix and add a test. Perhaps I do that on our focus friday reserved for learning. DO I simply fork the repo and create a PR? |
Indeed 🙂 You can check out the contributing guide for setup: https://github.com/microsoft/vscode-js-debug/blob/main/CONTRIBUTING.md |
Describe the bug
Here is a small sample repo.
We try to use the sourceRoot to add the sources in a remote location so that we do not need to ship them. However, the mapping:
leads to an error because the CWD is added in front of the source route.
To Reproduce
debug-test.mjs
vialaunch.json
Could not load source '/Users/XXX/source-map-test/node_modules/@sap-cloud-sdk/util/dist/http:/raw.githubusercontent.com/SAP/cloud-sdk-js/main/packages/util/src/string.ts': Unable to retrieve source content.
VS Code Version: 1.72.0
The text was updated successfully, but these errors were encountered: