0
Working on Fix

Build Units Options fails when UnitOptions.db is not checked out.

Etienne Fournier 2 weeks ago updated by Lazlo Bonin (Lead Developer) 2 days ago 3

Bulding Units Options fails at first attempt, with "UnautorizedAccessException".  Second attempt works, as the file as been checkout out.

Project has to be under Perforce, UnitOptions.db not checked out.  Not a huge thing, but would be nice to work the first time.

Here the details:

System.UnauthorizedAccessException: Access to the path "D:\projectname\Assets\Ludiq\Bolt.Flow\Generated\UnitOptions.db" is denied.
at System.IO.File.Delete (System.String path) [0x00073] in <599589bf4ce248909b8a14cbe4a2034e>:0
at Bolt.UnitBase.Build () [0x00060] in C:\Users\lazlo\Projects\Bolt1\Package\Bolt.Flow\Editor\Options\UnitBase.cs:175
at Bolt.UnitOptionsWizard.BuildUnitOptions () [0x00000] in C:\Users\lazlo\Projects\Bolt1\Package\Bolt.Flow\Editor\Windows\UnitOptionsWizard.cs:45

Bolt Version:
1.4.6
Unity Version:
2019.4.1f
Platform(s):
Windows
Scripting Backend:
Mono
.NET Version (API Compatibility Level):
.NET Standard 2.0

Hi Etienne,

Sorry you're experiencing this issue and thanks for submitting a bug report. I recommend you upgrade to the latest version of Bolt and restart Unity. Latest Bolt: https://ludiq.io/bolt/download/1.4.7

Please also send the full error log and any additional warnings you may find in the console. In regards to your Unity version, did you mean 2019.1.4? It currently says 2019.4.1, which does not exist.

Best,

Hasan from Ludiq

Working on Fix

Hi Étienne,

I think this came from our new handling of checked out files since the later versions. I'll have to have another look and make sure it works properly. Sorry for the trouble.