Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

fix(create): unquoted description breaks pubspec.yaml and leaves a half-generated project

Aperta
#1,780 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
42/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
dart, flutter, yaml
Ambito
build-system, cli

Direzione di ricerca

The issue identifies the create command and the description: {{{description}}} line in the very_good_core, very_good_flutter_package, and very_good_dart_package templates; their sources are in VeryGoodOpenSource/very_good_templates. Start by locating those template definitions and the post-generation pub get and failure classification paths. Done means descriptions with : produce valid pubspec.yaml, invalid inputs fail before files are written, and YAML or input errors are reported as validation.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug
Description

create writes the description argument into the generated pubspec.yaml without quoting it. A description that contains ": " produces invalid YAML. The files are generated first, so the failure surfaces only at the post-generation pub get, which leaves a half-generated project on disk:

threw an exception: Instance of '_WrappedYamlException'
partialResults: ✓ Generated 26 file(s) (69ms)
                ✗ Running "flutter pub get" in .  (1ms)

The template line is description: {{{description}}} (triple-stash, so no escaping). I decoded the bundled bricks on main (8c772f3) and found it in very_good_core, very_good_flutter_package and very_good_dart_package. The brick sources live in VeryGoodOpenSource/very_good_templates.

The exception also comes back as failureType: "transient", which tells the agent to retry. A retry with the same description fails the same way.

Steps To Reproduce
  1. Call the MCP create tool (or very_good create dart_package) with a description containing a colon followed by a space, for example "Sign-in client: Google Identity wrapper".
  2. Observe _WrappedYamlException after ✓ Generated N file(s).
  3. Open the output directory: the package exists but pubspec.yaml does not parse and dependencies were never fetched.
Expected Behavior
  • The generated pubspec.yaml is valid for any description string, by quoting the value in the templates (e.g. description: "{{description}}" with appropriate escaping) or by emitting the field through a YAML serializer.
  • Inputs that cannot be rendered are rejected before any file is written, so a failure never leaves a partial project behind.
  • A YAML or input error is reported as validation, not transient.
Additional Context
  • 9 of 9 field create calls whose description contained ": " failed this way, across flutter_app, flutter_package and dart_package. Every description without a colon succeeded. Sessions b53095da, 83389958, eed4e6dc, faaff58a (2026-10-04); excerpts on request.

  • VeryGoodOpenSource/vgv-ai-flutter-plugin#171 attributed these exceptions to a stale snapshot after a Dart upgrade. The data rules that out: the same failures occurred in session eed4e6dc, which started after the snapshot was rebuilt.

  • 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

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di VeryGoodOpenSource/very_good_cli

Tutte le issue di VeryGoodOpenSource/very_good_cli

Issue simili

Altre issue su Dart

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.