-
-
Notifications
You must be signed in to change notification settings - Fork 412
Closed
Labels
component: ghcidemulti-componentIssues relating to multi-component supportIssues relating to multi-component supporttype: bugSomething isn't right: doesn't work as intended, documentation is missing/outdated, etc..Something isn't right: doesn't work as intended, documentation is missing/outdated, etc..
Description
Your environment
Which OS do you use?
Gentoo Linux
Which version of GHC do you use and how did you install it?
9.0.2 from Gentoo Linux
How is your project built (alternative: link to the project)?
https://github.com/haskell-beam/beam
Which LSP client (editor/plugin) do you use?
nvim-lspconfig
Which version of HLS do you use and how did you install it?
1.9.0.0 from Gentoo Linux
Have you configured HLS in any way (especially: a hie.yaml file)?
hie.yaml
cradle:
cabal:
Steps to reproduce
- Open beam-sqlite/Database/Beam/Sqlite/Syntax.hs in neovim with nvim-lspconfig
- Find
IsSql99DataTypeSyntaxin Syntax.hs - Jump to definition of
IsSql99DataTypeSyntaxin beam-core - Come back to Syntax.hs of beam-sqlite by pressing
Ctrl+O - You can see errors in Syntax.hs
- Find
IsSql92DdlCommandSyntaxin Syntax.hs - Jump to definition of
IsSql92DdlCommandSyntaxin beam-migrate - Come back to Syntax.hs of beam-sqlite by pressing
Ctrl+O - The errors are gone.
Expected behaviour
No error
Actual behaviour
Diagnostics:
1. • No instance for (Database.Beam.Backend.SQL.SQL92.IsSql92TableNameSyntax
SqliteTableNameSyntax)
arising from the superclasses of an instance declaration
• In the instance declaration for
‘IsSql92DropTableSyntax SqliteDropTableSyntax’
and various other errors.
I can avoid the error by visiting beam-migrate from beam-sqlite before visiting beam-core from beam-sqlite.
If I visited beam-core from beam-sqlite, then the errors can be eliminated by visiting beam-migrate from beam-sqlite.
Metadata
Metadata
Assignees
Labels
component: ghcidemulti-componentIssues relating to multi-component supportIssues relating to multi-component supporttype: bugSomething isn't right: doesn't work as intended, documentation is missing/outdated, etc..Something isn't right: doesn't work as intended, documentation is missing/outdated, etc..