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

Build failure due to ambiguous symbol #1018

Closed
robrix opened this issue Dec 17, 2019 · 2 comments · Fixed by haskell/ghcide#272
Closed

Build failure due to ambiguous symbol #1018

robrix opened this issue Dec 17, 2019 · 2 comments · Fixed by haskell/ghcide#272
Assignees

Comments

@robrix
Copy link
Contributor

robrix commented Dec 17, 2019

I’m seeing a build failure with ghc-8.8.1 and current hie-bios (0.3.0) & ghcide (6cf1d60):

$ cabal update
$ cabal install exe:ghcide
…
In order, the following will be built (use -v for more details):
…
 - hie-bios-0.3.0 (lib) (requires download & build)
…
exe/Main.hs:116:78: error:
    Ambiguous occurrence ‘Info’
    It could refer to
       either ‘Development.IDE.Types.Logger.Info’,
              imported from ‘Development.IDE.Types.Logger’ at exe/Main.hs:27:1-35
           or ‘Development.Shake.Info’,
              imported from ‘Development.Shake’ at exe/Main.hs:41:1-37
              (and originally defined in ‘shake-0.18.4:Development.Shake.Internal.Options’)
    |
116 |         ide <- initialise mainRule (pure $ IdInt 0) (showEvent lock) (logger Info) (defaultIdeOptions $ return $ return . grab) vfs
    |                                                                              ^^^^

Easy enough to work around locally:

-        ide <- initialise mainRule (pure $ IdInt 0) (showEvent lock) (logger Info) (defaultIdeOptions $ return $ return . grab) vfs
+        ide <- initialise mainRule (pure $ IdInt 0) (showEvent lock) (logger Development.IDE.Types.Logger.Info) (defaultIdeOptions $ return $ return . grab) vfs

Originally encountered by @aymannadeem & myself.

@cocreature cocreature self-assigned this Dec 18, 2019
cocreature referenced this issue in haskell/ghcide Dec 18, 2019
Shake 0.18.4 started exporting Info from this module which clashes
with the one from haskell-lsp. Fixes #271
@cocreature
Copy link
Contributor

haskell/ghcide#272 fixes the issue, I’ve published a revision to Hackage that adds an upper bound.

cocreature referenced this issue in haskell/ghcide Dec 18, 2019
Shake 0.18.4 started exporting Info from this module which clashes
with the one from haskell-lsp. Fixes #271
@robrix
Copy link
Contributor Author

robrix commented Dec 18, 2019

Thank you!

pepeiborra referenced this issue in pepeiborra/ide Dec 29, 2020
Shake 0.18.4 started exporting Info from this module which clashes
with the one from haskell-lsp. Fixes haskell/ghcide#271
pepeiborra referenced this issue in pepeiborra/ide Dec 29, 2020
Shake 0.18.4 started exporting Info from this module which clashes
with the one from haskell-lsp. Fixes haskell/ghcide#271
pepeiborra referenced this issue in pepeiborra/ide Dec 29, 2020
Shake 0.18.4 started exporting Info from this module which clashes
with the one from haskell-lsp. Fixes haskell/ghcide#271
@pepeiborra pepeiborra transferred this issue from haskell/ghcide Jan 1, 2021
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

Successfully merging a pull request may close this issue.

2 participants