Zenject icon indicating copy to clipboard operation
Zenject copied to clipboard

Reflection backing exception on WebGL build for Unity 2021.1.0f1

Open xAdamQ opened this issue 4 years ago • 0 comments

Describe the bug

ArgumentException: Invalid path System.IO.Path.GetDirectoryName (System.String path) (at <695d1cc93cca45069c528c15c9fdd749>:0) Zenject.ReflectionBaking.UnityAssemblyResolver..ctor () (at Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Unity/UnityAssemblyResolver.cs:34) Zenject.ReflectionBaking.ReflectionBakingBuildObserver.TryWeaveAssembly (System.String assemblyAssetPath) (at Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Unity/ReflectionBakingBuildObserver.cs:65) Zenject.ReflectionBaking.ReflectionBakingBuildObserver.OnAssemblyCompiled (System.String assemblyAssetPath, UnityEditor.Compilation.CompilerMessage[] messages) (at Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Unity/ReflectionBakingBuildObserver.cs:37) UnityEditor.Compilation.CompilationPipeline+<>c.<SubscribeToEvents>b__23_2 (UnityEditor.Scripting.ScriptCompilation.ScriptAssembly scriptAssembly, UnityEditor.Compilation.CompilerMessage[] messages) (at /home/bokken/buildslave/unity/build/Editor/Mono/Scripting/ScriptCompilation/CompilationPipeline.cs:277) UnityEditor.EditorApplication:Internal_CallGlobalEventHandler() (at /home/bokken/buildslave/unity/build/Editor/Mono/EditorApplication.cs:428)

To Reproduce it's thrown by pressing ctrl+b(build and run), but building only doesn't make it.

Expected behavior Unity should create a configured web server to run the build.

Extenject and Unity info (please complete the following information):

  • Zenject version: 9.2.0
  • Unity version: 2021.1.0f1
  • Project's scripting backend: IL2CPP

Additional context I think the only difference between the normal build and build and tun is the web server unity made automatically.

xAdamQ avatar Mar 30 '21 09:03 xAdamQ