You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
π° β I tried it on the shortcut-links package with the latest changes there but and I got:
policeman: policeman: panic! (the 'impossible' happened)
(GHC version 8.8.1 for x86_64-unknown-linux):
readHieFile: hie file versions don't match for file:/home/vrom911/Kowainik/shortcut-links/.policeman-evidence/shortcut-links-0.5.0.0/.hie/ShortcutLinks.hie Expected8081 but got 8083Please report this as a GHC bug: https://www.haskell.org/ghc/reportabug
Possible reason could be that I currently use GHC-8.8.3 but the policeman was build and installed with GHC-8.8.1. We need to do something with this though π€
The text was updated successfully, but these errors were encountered:
@vrom911 Good catch! That's an unpleasant situation π₯ Because there always will be a chance that the policeman will be built with a different version of GHC from what people have on their machines. My common senses tells me that this should be a warning, not a panic, at least for different minor versions... Or at least, the newer GHC should support all older versions in HIE files. I'm not even sure that ghc-lib-parser will help with this, but we can check this.
This panic also is raised if an old .hie directory is left over from a previous policeman/ghc version combination which is even more confusing:
I had GHC 8.10.2 installed and policeman installed, upgraded GHC and rebuilt policeman and was faced with this panic in a project I had. The "fix" for the situation was deleting the .hie directory, but this took me a lot of guessing to figure out.
Maybe policemen could set a new temporary HIE directory (-hiedir) in .policeman-evidence and also make sure that the GHC version it needs is used for compilation (--with-compiler).
In my case, I was able to solve the issue by running git clean -fxd and uninstalling other GHCs, so that policeman can't choose the wrong one.
π° β I tried it on the
shortcut-links
package with the latest changes there but and I got:Possible reason could be that I currently use
GHC-8.8.3
but the policeman was build and installed withGHC-8.8.1
. We need to do something with this though π€The text was updated successfully, but these errors were encountered: