0
Fixed

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

Etienne Fournier 2 months ago updated 1 month ago 8

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
GOOD, I'M SATISFIED
Satisfaction mark by Etienne Fournier 1 month ago

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.

Need More Information

Hi Étienne,

Can you please confirm which version of Bolt you are using?

We fixed issues in the version control API in v.1.4.6f2. The latest version is currently v.1.4.7.

Fixed (Unreleased)

I'm adding a fallback for v.1.4.8 that will force a file to be writable in case checkout fails, and also log debugging information about why the checkout failed.

Thanks!  Will test that out once the version is out.  For info, we're using 1.4.6 at the moment.

+1

Just tested it.  The file is checked out.  Thanks!