Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

Build Failing with "Finished updating scripts / assemblies" and "Error building.. Compiler errors"

Discussion in 'Scripting' started by nyscersul, Sep 3, 2020.

  1. nyscersul

    nyscersul

    Joined:
    Oct 17, 2018
    Posts:
    136
    The truncated second message from the title is "Error building Player because scripts had compiler errors".

    The cause is unknown as the current arrangement reports no single error, no address or script reference of any kind, on the two messages as above and the other two associated build player errors that always accompany the second message - quite generic.

    I am using Unity 2020.1.3f and it is supposed to be a stable release.

    No errors in the editor, it plays fine. When i attempted to switch to android in the build settings window, it switched and then after reloading the project, it returned to being in the pc mode.

    The project has been updated from 2018 through 2019 and into the current version, 2020.1.3f, and it uses the packages for Mathematics, and Collections, and one or two others, and it was converted to urp and to use shadergraph, but this was a long time ago and its been fine since.

    I havent done any particular great change to cause any of this, altho i was forced to reimport the entire project and remove the library folder when i had a serious issue before, very similar to this, altho it exhibited in entirely different ways.

    Is there some way to have the auto updater report what it changes?

    I have a namespace for "UnityEngine.ShaderGraph.Internal" that appeared in one of my scripts, a simple one which does not need or care about shadergraph, i didnt put it there, which suggests maybe that the autoupdater is being daft? It appears every time i attempt to build, which suggests it is finding things it doesnt like, but failing to fix or even report those problems?

    Please help... Im wasting more dev time now :(

    (Thanks in advance)
     
  2. nyscersul

    nyscersul

    Joined:
    Oct 17, 2018
    Posts:
    136
    I forgot to mention, i have tried running the autoupdater seperately through the assets menu, it says, "Finished updating scripts / assemblies" but then the build fails again with the same problem.
     
  3. PraetorBlue

    PraetorBlue

    Joined:
    Dec 13, 2012
    Posts:
    7,724
    yes look in Logs/Packages-Update.log
     
  4. nyscersul

    nyscersul

    Joined:
    Oct 17, 2018
    Posts:
    136
    Thanks!

    Im currently loading it with the library folder removed, seems like there is more in there than the size of the actual project. Wish me luck :p
     
  5. nyscersul

    nyscersul

    Joined:
    Oct 17, 2018
    Posts:
    136
    Seems it hasnt touched that file in ages, it doesnt have any references to any changed packages, except for a couple of updates at the end, done 5 days ago
     
  6. nyscersul

    nyscersul

    Joined:
    Oct 17, 2018
    Posts:
    136
    Didnt help, still experiencing the same problems
     
  7. nyscersul

    nyscersul

    Joined:
    Oct 17, 2018
    Posts:
    136
    This is ridiculous.... I just cant get my head around how it can say compiler errors exist and then not tell you what they are or *ANYTHING ABOUT THEM*
     
  8. nyscersul

    nyscersul

    Joined:
    Oct 17, 2018
    Posts:
    136
    So what do i do now? Just delete my entire project??????????????

    HOW CAN THIS MAKE ANY SENSE!!!!

    Ive checked that update log for packages, ive checked the editor logs, and ... NO ERRORS

    Altho, its not exactly easy to decipher the editor.log file
     
    Last edited: Sep 3, 2020
  9. akumakira164

    akumakira164

    Joined:
    Jan 21, 2019
    Posts:
    3
    I have the same issue. I'll let you know if I find a solution that works for me.
     
  10. akumakira164

    akumakira164

    Joined:
    Jan 21, 2019
    Posts:
    3
    My issue was solved for now by removing a
    Code (CSharp):
    1. #if UNITY_EDITOR
    script that saved prefabs in the assets folder. I do need that script to function to save randomized maps, but for now removing it solved my build issue.
     
  11. akumakira164

    akumakira164

    Joined:
    Jan 21, 2019
    Posts:
    3