gleam icon indicating copy to clipboard operation
gleam copied to clipboard

Linux deletion error on `gleam test/run/build` etc.

Open benstigsen opened this issue 11 months ago • 3 comments

Gleam Version: v1.0.0 Operating System: Fedora 39

This is what happens:

$ gleam new website
$ cd website
$ gleam test
  Resolving versions
Downloading packages
 Downloaded 2 packages in 0.18s
error: File IO failure

An error occurred while trying to delete this directory:

/mnt/sda1/Projects/Gleam/website/build/dev/erlang

The error message from the file IO library was:
    Directory not empty (os error 39)

sda1 is NTFS.

This was originally posted in the Discord, but I have decided to open an issue for it here. I'll update this issue within the next 3 hours and try to create a new project on my main drive.

benstigsen avatar Mar 12 '24 12:03 benstigsen

Oh dear! Do you know what is happening here to cause the problem? I don't have a good idea.

lpil avatar Mar 12 '24 12:03 lpil

As I mentioned in the discord, I've had this issue as well and it seems to fail between drives. If I move the project to my main drive, then it works fine. It seems to be an odd issue with deleting across drives. I haven't tested on Windows to see if it has the same problem, but I'm running on Arch Linux.

Caleb-o avatar Mar 12 '24 12:03 Caleb-o

Okay, so, it seems that am also able to perform these commands on the main drive, which is btrfs.

benstigsen avatar Mar 12 '24 13:03 benstigsen

I have exactly the same issue, using linux and trying this on a NTFS partition

MedLabs avatar Mar 29 '24 05:03 MedLabs

Closing this to use the other issue to track

lpil avatar Mar 29 '24 10:03 lpil