Skip to content
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

Refactor panics when running on haskell source files #143

Open
flip111 opened this issue Dec 1, 2023 · 4 comments
Open

Refactor panics when running on haskell source files #143

flip111 opened this issue Dec 1, 2023 · 4 comments

Comments

@flip111
Copy link

flip111 commented Dec 1, 2023

» fd -g '*.hs' src app ps -x hlint --refactor --refactor-options="--inplace" {}
refactor: panic! (the 'impossible' happened)
  GHC version 9.4.7:
        runPipe

parse error on input `pattern'
Call stack:
    CallStack (from HasCallStack):
      callStackDoc, called at compiler/GHC/Utils/Panic.hs:182:37 in ghc:GHC.Utils.Panic
      pprPanic, called at src/Refact/Compat.hs:161:13 in main:Refact.Compat

Please report this as a GHC bug:  https://www.haskell.org/ghc/reportabug
@TheOddler
Copy link

I just encountered this too, did you ever find a fix?

@flip111 flip111 changed the title Refactor panis when running on haskell source files Refactor panics when running on haskell source files Aug 5, 2024
@flip111
Copy link
Author

flip111 commented Aug 5, 2024

@TheOddler with which GHC version was refactor compiled in your case?

@TheOddler
Copy link

I'm not sure, but I have since found that using a newer version did solve my problem. I updated my nix channel I was using, and retried, and then it worked.

Sadly I'm not sure any more what the exact version of GHC was I was using, sorry!

@zliu41
Copy link
Collaborator

zliu41 commented Aug 11, 2024

Can you narrow it down to the module or code block on which it panics?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants