2019.3 APIUpdater failes if username contains whitespace

I’m trying to upgrade my project from 2019.2 to 2019.3. However, the APIUpdater drops the following error message four times:
Unhandled Exception:
System.IO.DirectoryNotFoundException: Could not find a part of the path “$pathToUnityProject$LastPartOfUsernameAfterWhitespaceCharacter\AppData\Local\Temp\tmp3f9769a6.tmp”.

Let’s say your OS username is “Max Mustermann”, making the directory to your %LocalAppData% variable look like this:
C:\Users\Max Mustermann\AppData\Local

In my case, the APIUpdater is expecting my LocalAppData temp directory to be in
D:\Projects\NameOfMyUnityProject\Mustermann\AppData\Local\Temp

This, of course, is doomed to fail. I think this should definitely fixed before releasing the 2018.3!

Full error message:

1 Like

Can reproduce!

Yeah, I could workaround this issue by creating a new user account on my OS with the username “asdf”. Upgrading the same project from that account worked. Lol

1 Like

Thx for that, I was thinking about that too ! :smile:

Hi @ReaktorDave

Can you share your Editor.log when this happens?

I’ll try to reproduce locally also

Best

Adriano

Sent via PM @Vagaus

Thanks @ReaktorDave

I’ve identified the issue and will fix in 2019.3 / 2020.1 and potentially in 2018.4 also.

Btw, I’ve filled a bug which you can use to track progress here Unity Issue Tracker - ScriptUpdater does not work for users with spaces/invalid characters in their User Names

Best

Adriano

5 Likes

This is great, can’t wait for the fix as this issue has held up a project I updated recently some scripts are misbehaving, must be a regression as my user directory never changed

Which 2020.1 version is this fix arriving in? It still exists in 2020.1.0a16

Off by one error :).

It landed in 2020.1.0a17

Best

Adriano

Thanks for fixing. Will it also be included in the next 2019 releases?

The fix is going to be in one of the next 2019.3 builds.

Fix released with 2019.3.0f6: Unity Issue Tracker - ScriptUpdater does not work for users with spaces/invalid characters in their User Names

1 Like