Skip to content

Incorrect specific Scale_Redist version causes compilation failure for KSPBurst #160

@JonnyOThan

Description

@JonnyOThan

KSPModdingLibs/KSPBurst#14

<Reference Include="Scale_Redist, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">

Since FAR specifies version 1.0.0.0 of Scale_Redist, the burst compiler complains. This seems like it might be completely deactivating the burst compiler?

[ERR 13:38:52.107] [KSPBurst]: Burst stderr:
Mono.Cecil.AssemblyResolutionException: Failed to resolve assembly: 'Scale_Redist, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'
   at Mono.Cecil.BaseAssemblyResolver.Resolve(AssemblyNameReference name, ReaderParameters parameters)
   at zzzUnity.Burst.CodeGen.AssemblyResolver.Resolve(AssemblyNameReference name)
   at Burst.Compiler.IL.AssemblyLoader.Resolve(AssemblyNameReference name)
   at Mono.Cecil.MetadataResolver.Resolve(TypeReference type)
   at Mono.Cecil.TypeReference.Resolve()
   at Burst.Bcl.BclApp.CollectGenericTypeInstances(TypeReference type, List`1 types, HashSet`1 visited)
   at Burst.Bcl.BclApp.CollectGenericTypeInstances(AssemblyDefinition assembly, List`1 types, HashSet`1 visited)
   at Burst.Bcl.BclApp.FindExecuteMethods(List`1 rootAssemblyPaths, Boolean includeRootAssemblyReferences)

    UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
    ModuleManager.UnityLogHandle.InterceptLogHandler:LogFormat(LogType, Object, String, Object[])
    UnityEngine.Debug:LogErrorFormat(String, Object[])
    KSPBurst.KSPBurst:LogErrorFormat(String, Object[]) (at C:/Users/Jon/source/github/KSPModdingLibs/KSPBurst/KSPBurst/KSPBurst.cs:436)
    KSPBurst.<BurstCompile>d__20:MoveNext() (at C:/Users/Jon/source/github/KSPModdingLibs/KSPBurst/KSPBurst/KSPBurst.cs:135)
    UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)
[ERR 13:38:52.108] [KSPBurst]: Burst compiler had errors
    UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
    ModuleManager.UnityLogHandle.InterceptLogHandler:LogFormat(LogType, Object, String, Object[])
    UnityEngine.Debug:LogErrorFormat(String, Object[])
    KSPBurst.KSPBurst:LogError(String) (at C:/Users/Jon/source/github/KSPModdingLibs/KSPBurst/KSPBurst/KSPBurst.cs:423)
    KSPBurst.<BurstCompile>d__20:MoveNext() (at C:/Users/Jon/source/github/KSPModdingLibs/KSPBurst/KSPBurst/KSPBurst.cs:140)
    UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)
[ERR 13:38:52.108] [KSPBurst]: Burst did not generate a library
    UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
    ModuleManager.UnityLogHandle.InterceptLogHandler:LogFormat(LogType, Object, String, Object[])
    UnityEngine.Debug:LogErrorFormat(String, Object[])
    KSPBurst.KSPBurst:LogError(String) (at C:/Users/Jon/source/github/KSPModdingLibs/KSPBurst/KSPBurst/KSPBurst.cs:423)
    KSPBurst.<BurstCompile>d__20:MoveNext() (at C:/Users/Jon/source/github/KSPModdingLibs/KSPBurst/KSPBurst/KSPBurst.cs:142)
    UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)
[ERR 13:38:52.109] [KSPBurst]: Burst compiler exited with a non-zero exit code: 1
    UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
    ModuleManager.UnityLogHandle.InterceptLogHandler:LogFormat(LogType, Object, String, Object[])
    UnityEngine.Debug:LogErrorFormat(String, Object[])
    KSPBurst.KSPBurst:LogErrorFormat(String, Object[]) (at C:/Users/Jon/source/github/KSPModdingLibs/KSPBurst/KSPBurst/KSPBurst.cs:436)
    KSPBurst.<BurstCompile>d__20:MoveNext() (at C:/Users/Jon/source/github/KSPModdingLibs/KSPBurst/KSPBurst/KSPBurst.cs:144)
    UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions