[Compiler][Dart] file-level option evolving = false is ignored, causing a cross-language wire-format mismatch

Aperta
#4,158 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@ayush00git ci sta già lavorando.

Dal 9/10/2026.

  • #4159 di @ayush00git — aperta

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
22/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
dart
Ambito
compilers

Direzione di ricerca

The Dart generator reads evolving only from message-level options, so the file-level option evolving = false; default never reaches it. Compare that lookup with how the Java or Go generators resolve the file-level default, then run the two-line repro schema through the Dart generator. Done means the output uses a non-evolving struct and the schema-consistent type id, matching peer languages. PR #4159 already targets this, so check it before starting.

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

Descrizione

The Dart generator resolves the evolving option from message-level options only, while every other generator (Java, Go, Rust, C++, Swift, C#, Python, JavaScript) honors the file-level option evolving = false; default.

A schema with file-level evolving = false therefore generates @ForyStruct() (compatible/evolving struct) and TypeIds.compatibleStruct in Dart while all peer languages emit schema-consistent structs — a cross-language wire-format mismatch for the same schema.

Repro:

option evolving = false;
message User { string name = 1; }
Lingua principale
Java
Stelle
4.6k
Fork
470
Merge medio
9h 28m
PR unite (30g)
33

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 apache/fory

Tutte le issue di apache/fory

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.