atsky / haskell-idea-plugin

IntelliJ IDEA plugin for Haskell
Apache License 2.0
201 stars 21 forks source link

Refactor rename error - java.io.IOException: Cannot rename x to y #111

Closed freeman42x closed 9 years ago

freeman42x commented 9 years ago

On some files (in my case, seems to only happen to all files placed in tests folder except one of them: Spec.hs) when performing refactor rename:

the following error is thrown:

java.io.IOException: Cannot rename 'D:\Codewars\Haskell\tests\CodewarsKataNthRootSpec.hs' to 'NthRootSpec.hs'

freeman42x commented 9 years ago

My bad, it was just cabal repl locking the files:

nanastya commented 7 years ago

Also the reason may be an open terminal in php storm (when you are in the directory of the file you want to rename). This comment is for as inattentive users as me =)