Open DoctypeRosenthal opened 3 years ago
I'm always running into this issue, thanks for filing :)
I've tried to reproduce this issue with similar code but I can't.
Can you give the complete code example and is the function exposed?
Something new on this one? Can I help maybe?
@DoctypeRosenthal sorry, I still have to take another look
No problem. I have no clue of Scala but it might be because in https://github.com/rikvdkleij/intellij-haskell/blob/master/src/main/scala/intellij/haskell/refactor/HaskellRenameVariableProcessor.scala#L40 you tell IntelliJ to invalidate definitions too early? Or maybe the plugin doesn't build references to all pattern match implementations of the same function?
In general it works so it must be some corner case.
@DoctypeRosenthal FYI, I can reproduce the issue in your case but I don't have any clue how to fix this. Even when I disable the cache completely it still doesn't work. Need to investigate more....
Very strange and interesting!
@DoctypeRosenthal it's getting weirder :smile: , I can't reproduce the issue again anymore. Maybe it's an IntelliJ issue...
I will release a new version and let's see.
I'm using beta88, and I still run into the issue all the time
See gif for description :
Originally posted by @DoctypeRosenthal in https://github.com/rikvdkleij/intellij-haskell/issues/536#issuecomment-847033714