Repository navigation
Bug fix: problem with concurrency under stress - #34
chrisgraham wants to merge 4 commits into
Conversation
cca48ef to
45d6775
Compare
|
Wouldn't it be better to set |
|
In a development environment it's expected that new classes may appear, so auto refresh is needed. |
21c653e to
d476f7f
Compare
6809704 to
d521b39
Compare
7c8e768 to
87a3f05
Compare
|
Thank you for the PR and the detailed report, and sorry for the long silence. I am closing it without merging. The cache is written atomically (exclusive lock, temporary file, rename), and on Windows reads are guarded by a shared lock, so a reader should never see a half-written file. The most likely cause of what you saw is a transient Windows file lock (antivirus, indexer) making As for For PHPStan, I would recommend a separate bootstrap with If you still run into it with the current version, please reopen #33 with the error message you get. |
This adds additional configurability to RobotLoader, to minimize unnecessary cache rewrites during stress. This reduces the chance of concurrency problems.