gelisam / hawk

Haskell text processor for the command-line
Apache License 2.0
361 stars 20 forks source link

hawk: /home/dir/.hawk/lock.tmp: No such file or directory #213

Closed juhp closed 4 years ago

juhp commented 4 years ago

I am not sure what it is going on but when I try to use hawk in a new system after a long break I got:

$ hawk '[1..3]'
hawk: /home/dir/.hawk/lock.tmp: openFd: does not exist (No such file or directory)

Just for transparency this is running in a Fedora Toolbox user container, but I don't think that should matter.

juhp commented 4 years ago

Workaround is just to create ~/.hawk/ manually.

gelisam commented 4 years ago

Hmm, hawk is supposed to create that folder for you if it doesn't exist. I am guessing that the locking mechanism is now being activated too early, before we got a chance to create the folder.

gelisam commented 4 years ago

Indeed, that was a regression introduced by #172, which switched the locking mechanism from a socket-based to a file-based approach. We've always been activating the lock before creating the folder, but that used not to be a problem.

juhp commented 4 years ago

Thanks, looks good now :+1: