You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Dependencies tree doesn't show any nodes if the packages name in pubspec.yaml does not match the folders name #5307
Describe the bug
On some flutter projects with many dependencies, the dependencies panel is completely empty (no
On the same Linux account, some other flutter projects have a working dependencies panel.
To Reproduce
Steps to reproduce the behavior:
This is reproducible on my account.
Expected behavior
The VScode primary side bar dependencies panel must contains
direct dependencies
dev dependencies
transitive dependencies
Screenshots
Please complete the following information:
You can run the Dart: Collect Diagnostic Information command from the VS Code command palette (F1) to easily capture this information or provide it manually.
Operating System and version:
Linux Fedora 40
VS Code version:
1.94.1 (rpm -q code: code-1.94.1-1728111464.el8.x86_64)
Dart/Flutter SDK version:
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.24.3, on Fedora Linux 40 (Workstation Edition) 6.10.11-200.fc40.x86_64, locale en_GB.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
[✓] Chrome - develop for the web
[✓] Linux toolchain - develop for Linux desktop
[!] Android Studio (not installed)
[✓] VS Code (version 1.94.1)
[✓] Connected device (2 available)
[✓] Network resources
! Doctor found issues in 1 category.
Target device (if the issue relates to Flutter debugging):
Thanks, I can repro this. The issue is that the project name does not match the name of the folder it's in (example vs intro). There are some assumptions about these matching in the code that maybe we can get rid of.
changed the title [-]VScode primary side bar dependencies panel empty[/-][+]Dependencies tree doesn't show any nodes if the packages name in pubspec.yaml does not match the folders name[/+]on Oct 10, 2024
Thanks, it works now after renaming the project. I searched for a long time why it didn't work anymore but I understand now because I had renamed this project.
It's also very possible this became broken in the recent release - the way that we get these dependencies changed slightly recently to support the upcoming Pub Workspaces feature. Before those changes, probably this would've worked fine too.
I've fixed the issue now anyway, so from the next release it will work even if the names don't match. Thank you for the report!
Activity
DanTup commentedon Oct 10, 2024
Thanks, I can repro this. The issue is that the project name does not match the name of the folder it's in (
examplevsintro). There are some assumptions about these matching in the code that maybe we can get rid of.[-]VScode primary side bar dependencies panel empty[/-][+]Dependencies tree doesn't show any nodes if the packages name in pubspec.yaml does not match the folders name[/+]doreille commentedon Oct 10, 2024
Thanks, it works now after renaming the project. I searched for a long time why it didn't work anymore but I understand now because I had renamed this project.
DanTup commentedon Oct 10, 2024
It's also very possible this became broken in the recent release - the way that we get these dependencies changed slightly recently to support the upcoming Pub Workspaces feature. Before those changes, probably this would've worked fine too.
I've fixed the issue now anyway, so from the next release it will work even if the names don't match. Thank you for the report!
Read the package name from pubspec instead of assuming it matches the…