-
-
Notifications
You must be signed in to change notification settings - Fork 389
SQLite3 returned ErrorConstraint while attempting to perform step: UNIQUE constraint failed: defs.hieFile, defs.occ #3542
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
Comments
Could you share the your hiedb database (this includes information on the location and name of all symbols in your code)? Running the following command in the root directory of the project should give you the location of the database:
|
If you could minimise it to a particular file that this is triggered on that would also be very helpful. |
Unfortunately this is a proprietary codebase. |
I can reproduce this consistently on the Hasura OSS codebase. It's not a small repro sorry, but it is at least a repro. Environment:
Steps:
|
I consistently get this error with ghc-9.8.1 but not with ghc-9.6.3, with the following environment and steps:
Steps:
Just speculating, but the big change for me between ghc 9.6.3 and 9.8.1 was that the codebase in the reproduction steps below stopped compiling and DuplicateRecordFiles is needed. haskell-language-server-wrapper hiedb ls gives:
|
Thanks for the reproducer @tonyday567, I have found the bug in hiedb, it's due to the NameSpace type in GHC being expanded for duplicate record fields. Fix requires a bit of re-working how of things work in hiedb but will be coming shortly. |
Still happening as of today, reported by @Kleidukos |
Your environment
Which OS do you use?
Fedora 37
Which version of GHC do you use and how did you install it?
GHC 9.4.4 via ghcup
How is your project built (alternative: link to the project)?
cabal
Which LSP client (editor/plugin) do you use?
Neovim + nvim_lsp
Which version of HLS do you use and how did you install it?
1.9.1.0 via ghcup
Expected behaviour
I get this message:
The text was updated successfully, but these errors were encountered: