Coder Social home page Coder Social logo

filelock's Issues

Windows: after acquiring a lock (even `Exclusive`) process can't write to file

I adapted tests.hs and provided directions to reproduce the problem in jmitchell@4a850dd.

Is there a different way I should secure a lock, write to the locked file, and then release the lock?

I suspect what's happening is some low-level write/close operation is attempting to lock as well and causing a FILE LOCK CONFLICT. However, writing to a file without using System.FileLock results in no LockFile operations according to Process Monitor. This suggests low-level file writing/closing operations behavior varies depending on the existence of a lock, and inexplicably re-lock when there's already a lock.

It's possible System.FileLock's upstream APIs broke this use case, or perhaps there's an issue with the LockFileEx wrapper.

`interrupt` test breaks with GHC 9.6 (unix-2.8)

I get this error locally with GHC 9.6.0, but it is also reproduced by the CI:

$ cabal test interrupt --test-show-details=direct
Build profile: -w ghc-9.6.0.20230128 -O1
In order, the following will be built (use -v for more details):
 - filelock-0.1.1.5 (test:interrupt) (configuration changed)
...
Running 1 test suites...
Test suite interrupt: RUNNING...
interrupt: interrupt_test.lock: openFdAt: does not exist (No such file or directory)
Test suite interrupt: FAIL

This might be due to changes in the unix package from 2.7 to 2.8, but I don't know...

Missing file in tarball for test suite

Linking dist/build/test/test ...
> /tmp/stackage-build14/filelock-0.1.1.1$ dist/build/test/test
test: tests/lock.log.expected: openFile: does not exist (No such file or directory)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.