Search Issue Tracker

Fixed in 2017.1.X

Votes

2

Found in

5.6.0xf1

Issue ID

895081

Regression

Yes

[Linux Editor] API Updater fails to upgrade this.component expressions

Linux

-

API Updater fails to upgrade this.renderer and similar code.

Steps to reproduce:
1) Open the attached project.
2) Check Console.

API Updater fails with the following error:
APIUpdater encountered some issues and was not able to finish.

System.IO.FileNotFoundException: Could not find file "/opt/Unity/Editor/Data/Mono/lib/mono/2.0/System.xml.dll".
File name: '/opt/Unity/Editor/Data/Mono/lib/mono/2.0/System.xml.dll'
at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x0021a] in <5d83a8d54e334cdc853a0dba68082096>:0
at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share) [0x00000] in <5d83a8d54e334cdc853a0dba68082096>:0
at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)
at System.IO.File.OpenRead (System.String path) [0x00000] in <5d83a8d54e334cdc853a0dba68082096>:0
at Roslyn.Utilities.FileUtilities.OpenFileStream (System.String path) [0x00000] in <bededc41dc2d4bfca1b18012876b04b2>:0

Expected result - this.renderer is updated to GetComponent<Renderer>().
Actual result - the expression is not updated, an error is logged in the console.

This issue does not reproduce on macOS and Windows.

Reproduced on:
2017.1.0b1, 5.6.0f1

Did not reproduce:
5.6.0b3, 5.5.2f1, 5.3.6f1

Comments (5)

  1. iwillbenice

    Jul 13, 2017 14:25

    workaraund works around, tnx :)

  2. ierpe

    May 02, 2017 17:48

    +1 for the workaround

  3. dsnettleton

    Apr 29, 2017 15:33

    Workaround fixed the issue for me as well. Good call, esistgut.

  4. keksmampfer

    Apr 24, 2017 21:07

    workaround works for me, thx!

  5. esistgut

    Apr 14, 2017 11:39

    possible workaround:
    cd /opt/Unity/Editor/Data/Mono/lib/mono/2.0/
    ln -sf System.Xml.dll System.xml.dll

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.