Search Unity

Bug in PackageManager in 2019.1b8

Discussion in 'Package Manager' started by danielgsantana, Mar 20, 2019.

  1. danielgsantana

    danielgsantana

    Joined:
    Mar 11, 2015
    Posts:
    24
    Hi guys,
    I was trying the latest 2019 beta (2019.1b8), and came across with a weird bug on PackageManagerUI. It fails to parse the packages with a error "Input string was not in a correct format". I found that this is due to not using an invariant format info for the version double conversion line: 76 of file PackageInfo.cs. Replacing with this "var version = Convert.ToDouble(shortVersionId.Split('@')[1], System.Globalization.NumberFormatInfo.InvariantInfo);" and all is fine.
    As a note, my decimal separator is a "." so it shouldn't be the cause of the problem.

    Cheers,
    Daniel Santana
    Technical Director & Co-founder @ Headless Studio
     
  2. jasons_unity

    jasons_unity

    Unity Technologies

    Joined:
    Dec 10, 2018
    Posts:
    17
    Hey Daniel,
    Thank you for logging this issue. I brought it up to the Package Manager UI team and it appears that they have also encountered this and a fix will be included in forthcoming releases - 2019.2 at the latest.

    Thank you again!
     
    danielgsantana likes this.