-
Notifications
You must be signed in to change notification settings - Fork 281
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
Allow for URL as sourceRoot #1427
base: main
Are you sure you want to change the base?
Allow for URL as sourceRoot #1427
Conversation
@microsoft-github-policy-service agree company="SAP" |
Ok, I found out that the VSC experience is much better compared to webstorm my default IDE. I wanted to test the flow E2E and replaced the source root also with However, when I run the launch config
but I have no Idea why it is not working. When I debug in the repo (golden tests) the URL is correct and source code can be fetched. Is there some setup needed? Is there a way to debug the code used by the debugger to see what the error on the fetchUrl is? |
I spend s bit of time to find out why it is working in the repo but not with the separate repo. I debugged the debugAdapter.ts because some errors sounded like they could lead to the error I see in the manual test using the So there must be something different with the two cases but I have no idea how to debug the Since this morning I also get an other error message (merged main) which seems like the new code is not considered at all. Hints to debug in the extension mode would be appreciated. Perhaps my understanding is also wrong - the CONTRIBUTION.md was rather short. Best |
a0c2212
to
6b54056
Compare
Looking at this this week. I think there should be a slightly wider change here to prefer URIs to absolute paths. Unfortunately DAP is only path-based and doesn't know about URIs, but for example I've started making changes based on this PR and hope to have this merged on or by Friday. |
@connor4312 cool that you take this over. I was afraid about bigger refactoring since it is not my code base :-). I was also lacking the deeper understanding and some tests seems flaky on my machine or in the pipeline. Anyway would be great if this works so that we can improve the debug experience without increasing the size of the shipped artifact. |
Perhaps we can mention your PR once it is there for reference and close this one here. |
Is there anyone reviewing this? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pull request gh pr checkout 1427
Relates to #1424.
@connor4312 I created a small PR. I was a bit lost in the code base. The whole SourceContainer has so much state that I could not get a unit test running. I then just added a test and checked that the
fetchHttp
is called and the sources are really loaded from the local host.The behaviour in the
getComputedSourceRoot
is now a bit inconsistent for thefile://
the protocol is removed and later added, which should of course not happen if it is ahttp://
source. A proper solution would perhaps to have an object not only a string for the URL. Then the object could hold the information I amfile
,data
,http
,ftp
or whatever.I did not want to change much so I added just minimal checks.