-
Notifications
You must be signed in to change notification settings - Fork 1.7k
PackageUris information from kernel file #36023
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
Comments
Bumping priority to P1 as not having access to the fully resolved URI is causing quite a few headaches for finding sources for dart:* libraries. For example, sources in dart:* libraries can be found in all sorts of places including:
This would be fine if all the sources for a library 'dart:x' were in directory |
@kmillikin, can this work be made a priority? cc @a-siva |
Friendly ping @kmillikin. This is blocking fixes for multiple issues. Can we prioritize this change? |
I don't understand how this is relevant to issue about PackageUris? Also the kernel format is currently "semi-locked-down" so I'm not sure we can actually make a change to include the import uri for every source at the moment. @a-siva @alexmarkov may know more about how locked down the format is though. |
Actually I think I can come around that. As I (now) understand a new VM should just be able to read both old and new dill files. I can work with that. |
Let's close this issue. If something else comes up I'll reopen and let you know. Thanks! |
The URI VM reads from kernel (KernelReaderHelper::SourceTableUriFor) is
file:///usr/local/google/home/zichangguo/dart-sdk/sdk/Junk/breakpoint_test/lib/all_scripts.dart
file:///usr/local/google/home/zichangguo/dart-sdk/sdk/Junk/breakpoint_test/lib/src/func.dart
.However, the URI requested from VS code debugger is:
package:breakpoint_test/src/func.dart
package:breakpoint_test/all_scripts.dart
This causes the mismatch for breakpoint setting. I think it would be helpful for frontend team to provide both
package:breakpoint_test/src/func.dart
andfile:///usr/local/google/home/zichangguo/dart-sdk/sdk/Junk/breakpoint_test/lib/src/func.dart
for all the scripts.This is blocking issue #35859
The text was updated successfully, but these errors were encountered: