Skip to content
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

Merged
merged 5 commits into from
Oct 1, 2024

Conversation

sigurdm
Copy link
Contributor

@sigurdm sigurdm commented Sep 25, 2024

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.

@sigurdm sigurdm requested a review from a team as a code owner September 25, 2024 11:03
@sigurdm
Copy link
Contributor Author

sigurdm commented Sep 27, 2024

PTAL

@@ -666,7 +668,7 @@ class ServiceManager<T extends VmService> {
dtd: dtdManager.connection.value,
)
: null;
_log.fine('rootPackageDirectoryForMainIsolate: $packageUriString');
_log.shout('rootPackageDirectoryForMainIsolate: $packageUriString');
Copy link
Member

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh yes!

@sigurdm
Copy link
Contributor Author

sigurdm commented Sep 30, 2024

Thanks for patient and thorough reviews!

@kenzieschmoll
Copy link
Member

Can you try merging with the master to branch to see if that will fix the broken integration test?

@sigurdm sigurdm merged commit 899eb59 into flutter:master Oct 1, 2024
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support DevTools extension detection for pub workspaces
2 participants