Closed jvyden closed 11 months ago
Seems to happen while trying to compile the NullableAttribute
.
In MetadataStage.CreateCustomAttributeArgument()
, attributeName
evaluates to
BoringOS.BoringKernel+<>c__DisplayClass14_0::programs System.Collections.Generic.List`1<BoringOS.Programs.Program>>>0:NullableAttribute:0
Narrowing it down further, it seems to be this line: https://github.com/jvyden/BoringOS/blob/mosa/BoringOS/BoringKernel.cs#L101
Marking the BoringKernel
class as non-nullable with #nullable disable
lets the compilation process succeed!
So, defining List<Program>
causes the compiler to crash for some reason. Seems it's passing down a raw list of arguments from dnlib
?
@kiootic Hi! Can you help with this issue?
This patch should fix the problem. 0001-Fix-ineffective-mapping-of-custom-argument-list.patch
Thank you!
Fixed by https://github.com/mosa/MOSA-Project/commit/b883129a9c9ea7e922e68cfe118e5121be2bf745 Thanks @kiootic
Unsure how to reproduce, but it happens during compilation in the
mosa
branch of my project (https://github.com/jvyden/BoringOS) under my MOSA-Project fork.