fix(create): workspace: true fails when the workspace root does not list the new package
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 55/100
Direzione di ricerca
Start at the create command's workspace option and trace where it generates the package and runs pub get; inspect the validation and error classification paths. Reproduce with a root pubspec.yaml listing packages/a and a new packages/b, then check existing CLI tests for workspace creation. Done when the root is updated or a validation error names the required entry, with a regression test covering the case.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Description
create with workspace: true generates a package with resolution: workspace, then runs pub get. When the parent pubspec's workspace: list does not yet include the new package, pub get fails:
ProcessException … But it has resolution `workspace`. But found no workspace root including it in parent directories.
The files are already on disk at that point, so the user is left with a package that cannot resolve and an error that does not say which file to edit. The --workspace help text ("Whether the generated project should resolve its dependencies from a parent Pub workspace") does not mention that the root must be updated first.
Steps To Reproduce
- Create a pub workspace root whose
pubspec.yamlhasworkspace: [packages/a]. - From the root, call the MCP
createtool withworkspace: truefor a new packagepackages/b(or the CLI equivalent with--workspace). - Observe the
ProcessExceptionabove after generation.
Expected Behavior
One of:
createadds the new package's path to the nearest workspace root'sworkspace:list before runningpub get(preferred: this is what a user passingworkspace: trueintends).createchecks for a workspace root that will include the output path before generating anything, and if there is none, fails with a message naming the rootpubspec.yamland the exact entry to add.
Either way the error should come back as validation rather than transient, so an agent edits the root pubspec instead of retrying.
Additional Context
-
6 field
createcalls failed this way between 2026-10-04 and 2026-10-16. -
very_good_cli 1.5.0, Dart 3.13.5, Flutter 3.47.6, macOS 26.5 arm64.
-
Tracking issue: VeryGoodOpenSource/vgv-ai-flutter-plugin#180
- Lingua principale
- Dart
- Stelle
- 2.4k
- Fork
- 244
- Merge medio
- 1g 18h
- PR unite (30g)
- 27
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di VeryGoodOpenSource/very_good_cli
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
VeryGoodOpenSource/very_good_cli#1783 ·
I maintainer di solito rispondono entro 1 giorno
-
feature
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
VeryGoodOpenSource/very_good_cli#1782 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 42/100
VeryGoodOpenSource/very_good_cli#1780 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 67/100
VeryGoodOpenSource/very_good_cli#1779 ·
I maintainer di solito rispondono entro 1 giorno
-
fix(mcp): test timeout_seconds does not kill a hung test run, which blocks every later tool callForse già presa @unicoderbot l’ha presa 9 giorni fa. Apertabug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
VeryGoodOpenSource/very_good_cli#1765 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di VeryGoodOpenSource/very_good_cli
Issue simili
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
atsign-foundation/at_server#2896 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
lugassawan/swe-workbench#823 ·
I maintainer di solito rispondono entro 1 giorno
-
auto-implement
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
bannzai/kashakeibo#142 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Images copied with `adb push` don't show in the wallpaper picker ("No images found on device")Aperta
Difficoltà 1/5 1-3 ore Idoneità per principianti 82/100
meddouribadis/arclauncher#53 ·
I maintainer di solito rispondono entro 1 giorno
-
p: material_ui package team-design
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
flutter/flutter#195096 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno