-
Notifications
You must be signed in to change notification settings - Fork 197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"openFile: resource busy (file is locked)" when refactoring in place #207
Comments
I can't reproduce this, but I was indeed not closing the file properly, so sometimes it could have leaked (would have depended on when GC ran most likely). Can you try again with the git version? |
Just tried latest master, still happens... On Thu, Jan 21, 2016 at 4:01 PM, Neil Mitchell [email protected]
|
Hmm. What OS/GHC version? Does it happen for all files? What about a simple file |
GHC 7.10.3 installed using stack setup Will do more tests later... On Thu, Jan 21, 2016 at 4:37 PM, Noam Lewis [email protected] wrote:
|
Can you try running just refactor, without involving hlint, by calling refactor with the hlint output separately. I have a suspicion this might be a refactor only bug, cc @mpickering. |
I tried doing that but couldn't figure out the right way. Do you run:
...or what? On Thu, Jan 21, 2016 at 4:56 PM, Neil Mitchell [email protected]
|
(I had to look that up from the source code) |
Yeah, looks like refactor fails even then. Still getting: Opened issue mpickering/apply-refact#21 |
I'm running:
and I'm consistently getting:
Does hlint close the file before handing it over to refactor?
The text was updated successfully, but these errors were encountered: