What is the IDE actually doing here?

Something got me thinking about an old bug and the “solution” was to restrict access to network shares, if you save a project to the desktop, everything is fine, you can even delete the project from the desktop while the IDE has it open and it doesn’t care.

However, if you save to a network share, even one that is mapped to a drive letter, you get the following message when you try to do pretty much anything with the project, even though its not meant to be touching the file (as you can delete the file, see above) and you have full access.

image

So my questions would be:

What is actually happening here and why can’t we use projects from networked drives?

Why does the IDE check if the file is writable even when it’s not writing to the file?

This looks like <https://xojo.com/issue/44175> from 2016.

I don’t think it was intended to have anything to do with network shares. The code looks like it is just checking if the project file is locked or read-only.

But why, when it doesn’t even write to the file? You can literally save a file to the desktop, mark it as read only, see the error, delete the file and stop seeing the error, it makes no sense.

The internal notes on the case do not indicate why it was done this way.

Without digging into the code I don’t really have any additional information.

I agree, it does feel like the dialog should wait until you actually try to save. If you haven’t already, please create a case so we can take a look at it.

Thanks for looking Paul, I did make a ticket about it a long time ago <https://xojo.com/issue/56325> and a request to re-open was made but missed/ignored.

The reason I was asking was to try and get to the bottom of why this is being done before making another case to have it addressed.