fork-dev / TrackerWin

Bug and issue tracker for Fork for Windows
450 stars 10 forks source link

Fork hangs (and then dies) if discarding a new file with restricted permissions. #2155

Closed ronnieshipman closed 3 months ago

ronnieshipman commented 4 months ago

Hi.

If I attempt to 'Discard changes' on a new file with restricted permissions, the 'Discard changes' pop-up does not disappear and the spinning wheel stops spinning. Eventually Fork closes itself.

Fork version 1.94.1.0.

Here is a 'Discard changes' pop-up example:

image

Here is an example of a file with these extra restricted permissions:

image

Here is an example of a file with normal permissions:

image

To create a file with the restricted permissions and to see the problem.

Note that asking Task Manager etc to kill this process does not seem to make a difference to the time it takes for Fork to close itself.

I accept that this may be an obscure case, because why would you be creating files in the Program Files folder and moving them to a repo? This was a one off case and is not what I normally do. However, having seen the problem I felt I ought to report it.

What I would expect from Fork in this case is either

  1. Something from Windows popping up to confirm I want this deleted (as Windows does when you do something in the Program Files folder).
  2. A pop-up saying that Fork cannot perform this function, with a good description why.

I hope this helps.

Kind regards, Ronnie

DanPristupov commented 4 months ago

Thank you for reporting this.

DanPristupov commented 4 months ago

The problem is fixed in 1.95