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

Missing `.meta` files cause Unity to reject the MessagePack package

Aperta Adatta ai principianti
#2,292 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 4 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
1/5
Tempo stimato
Meno di un'ora
Idoneità per principianti
76/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Tranquilla
Stack tecnologico
csharp, unity
Ambito
mobile

Direzione di ricerca

La issue identifica src/MessagePack.UnityClient/Assets/Scripts/MessagePack/Internal/DynamicAssemblyFactory.cs e il relativo file .meta corrispondente mancante. Leggi i file .meta esistenti nelle vicinanze e verifica le indicazioni del repository su branch/versioni, poiché la issue segnala che sono coinvolti più branch. Il lavoro è completato quando il file ha un file meta corrispondente e Unity può caricare il package dall’URL Git indicato.

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

Descrizione

Bug description

In v2.5.198 the PR https://github.com/MessagePack-CSharp/MessagePack-CSharp/pull/1978 got merged.
This PR added the new file DynamicAssemblyFactory.cs without a matching DynamicAssemblyFactory.cs.meta file.

This causes Unity to complain and not load MessagePack from versions v2.5.198 to the v2.5.302 (latests v2).

Repro steps
  • Use a Unity LTS version
  • Add MessagePack to PackageManager as Git reference by URL: https://github.com/MessagePack-CSharp/MessagePack-CSharp.git?path=src/MessagePack.UnityClient/Assets/Scripts/MessagePack#v2.5.302
  • Watch Unity complain about DynamicAssemblyFactory.cs not having a .meta file and hence causing followup errors and eventually not loading the MessagePack package at all.
Expected behavior

There should be a DynamicAssemblyFactory.cs.meta file, such that Unity will properly load MessagePack added via Git URL.

Actual behavior

Unity complains:
Image
The first 4 errors are follow-up errors due to the new DynamicAssemblyFactory.cs not being loaded.

Additional context

None.


It is just a missing .meta file. I would create the PR myself. But MessagePack has several branches and versions and I am simply not sure what the correct procedure is. I leave this to someone else with more experience.
I am willing to create the PR, if someone offers me basic instructions.

Lingua principale
C#
Stelle
6.8k
Fork
775
Merge medio
3h 26m
PR unite (30g)
6

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 MessagePack-CSharp/MessagePack-CSharp

Tutte le issue di MessagePack-CSharp/MessagePack-CSharp

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.