-
Notifications
You must be signed in to change notification settings - Fork 336
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
Find .dart_tool/package_config.json by looking in parent directories #8347
Conversation
PTAL |
packages/devtools_shared/lib/src/extensions/extension_manager.dart
Outdated
Show resolved
Hide resolved
@@ -666,7 +668,7 @@ class ServiceManager<T extends VmService> { | |||
dtd: dtdManager.connection.value, | |||
) | |||
: null; | |||
_log.fine('rootPackageDirectoryForMainIsolate: $packageUriString'); | |||
_log.shout('rootPackageDirectoryForMainIsolate: $packageUriString'); |
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.
can you change this back to fine? We don't want this printing to console at the default log level
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.
Oh yes!
packages/devtools_shared/lib/src/extensions/extension_manager.dart
Outdated
Show resolved
Hide resolved
Thanks for patient and thorough reviews! |
Can you try merging with the master to branch to see if that will fix the broken integration test? |
This should fix #7944 and dart-lang/pub#4379
Ideally I think the VM (or perhaps DTD) should provide the packageConfigUri somehow (I filed dart-lang/sdk#56784) Trying to find it from the main-lib seems fragile.
I don't know if the extension loader does deduplication somewhere. But with this change we will discover extensions from the package config once for every project in the workspace.