Search Unity

Bug New editor Compilation pipeline (incremental compilation since 2021.1) is broken

Discussion in 'Editor & General Support' started by MagicianArtemka, May 26, 2021.

  1. MagicianArtemka

    MagicianArtemka

    Joined:
    Jan 15, 2019
    Posts:
    46
    Hi

    New semi-async compilation ruined my Jenkins build flow.

    Switching the editor platform causes script recompilation and (unlike Unity 2019) it doesn't wait until the compilation end but continue to go down via function. Right after the platform switch, I have Addressable build (called when editorPlatformSwitched event is fired) and it always fails because Editor.isCompiling is true.

    I can't use semaphores, because this causes deadlock because Unity is still semi-async. I can't just subscribe to assemblyCompilationFinished event, because the function ends before this event will be fired.

    What do I suppose to do, @jonas-echterhoff ?

    My code:
     
  2. MagicianArtemka

    MagicianArtemka

    Joined:
    Jan 15, 2019
    Posts:
    46