-
-
Notifications
You must be signed in to change notification settings - Fork 369
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
Indexing sometime fails with SQLite error about UNIQUE constraint failed. #3622
Comments
This exception also occurs for me on a Mac M1 with HLS built from source on feb5965 (HEAD with changes from 2.0.0) and GHC 9.4.5 |
I realized recently that I have multiples files with the same module name (mostly, |
I've also been affected by this issue, running GHC 9.8, HLS 2.4, Cabal 3.10 installed via GHCup
This happens to me everytime I save the file using ALE in vim |
I do observe the issue a lot more since I upgraded to GHC 9.8 too. |
Just upgraded to 9.8.1 and having the same issue (Ubuntu 20.04 (WSL 2)). Tools
Typical Log
|
stopped happening for me after upgrading 2.5.0.0 ->2.6.0.0 |
@guibou Can you confirm this isn't happening on HLS 2.6.0.0? |
In 2.6.0.0, #3943 fixed one source of these coming from changes to how namespaces work for record fields in GHC 9.8. Any failures on GHC 9.6 or below are due to another undiagnosed cause and are not fixed, so I think this ticket should stay open. If there is a reproducer for these errors affecting HLS 2.6.0.0 or any HLS version with a GHC < 9.8, I can take a look. I'm pretty sure that it wouldn't take a contrived set of circumstances to reproduce these failures, so any reproducer would be as simple as "try loading this code into HLS". |
Working with HLS 2.6.0.0 and updated ghcide since a few hours now and no failure, so #3943 definitvely fixed the important stream of error I had since upgrading to GHC 9.8. I think we can close the issue, I'll reopen if an error happen again. Thank you. |
Sometime, during
Indexing
, hls returns an exception:Your environment
Using NixOS, GHC 9.6.2 (but was happening with 9.6.1 recently), neovim and HLS 1.9.1.0 built from source with minor patchs which should not be relevant (see #TODO)
The project is built with nix with a custom build system and the setup of HLS is done with custom in-house scripts.
Steps to reproduce
I have no idea.
Expected behaviour
Maybe the exception is due to a bug in the indexing mechanism, the exception should not be returned.
Actual behaviour
Debug information
Note that I observed this exception and wrote #3610 (comment) because of it. In that MR, I fixed the way HLS was reacted to this exception (it was forgetting to remove the
Indexing
status), but not the cause of the exception.The text was updated successfully, but these errors were encountered: