Closed
Description
- Reported by an user in discord
Failed to build hls-plugin-api-1.1.0.2.
Build log (
/home/nick/.cabal/logs/ghc-8.10.4/hls-plugin-api-1.1.0.2-c11c62afa2a5742cc1e627b0988a64b31813f6a7c3b9e899e22661d8fd7c7c51.log
):
Configuring library for hls-plugin-api-1.1.0.2..
Preprocessing library for hls-plugin-api-1.1.0.2..
Building library for hls-plugin-api-1.1.0.2..
[1 of 6] Compiling Ide.Logger ( src/Ide/Logger.hs, dist/build/Ide/Logger.o, dist/build/Ide/Logger.dyn_o )
[2 of 6] Compiling Ide.Plugin.Config ( src/Ide/Plugin/Config.hs, dist/build/Ide/Plugin/Config.o, dist/build/Ide/Plugin/Config.dyn_o )
[3 of 6] Compiling Ide.Plugin.Properties ( src/Ide/Plugin/Properties.hs, dist/build/Ide/Plugin/Properties.o, dist/build/Ide/Plugin/Properties.dyn_o )
[4 of 6] Compiling Ide.Types ( src/Ide/Types.hs, dist/build/Ide/Types.o, dist/build/Ide/Types.dyn_o )
src/Ide/Types.hs:235:33: error:
Ambiguous occurrence ‘length’
It could refer to
either ‘Prelude.length’,
imported from ‘Prelude’ at src/Ide/Types.hs:17:8-16
(and originally defined in ‘Data.Foldable’)
or the field ‘length’,
imported from ‘Language.LSP.Types’ at src/Ide/Types.hs:47:1-35
(and originally defined in ‘lsp-types-1.3.0.1:Language.LSP.Types.SemanticTokens’)
or the field ‘length’,
imported from ‘Language.LSP.Types’ at src/Ide/Types.hs:47:1-35
(and originally defined in ‘lsp-types-1.3.0.1:Language.LSP.Types.SemanticTokens’)
|
235 | (_, []) -> (limit - length xx, it)
| ^^^^^^
cabal: Failed to build hls-plugin-api-1.1.0.2 (which is required by
exe:haskell-language-server from haskell-language-server-1.2.0.0 and
exe:haskell-language-server-wrapper from haskell-language-server-1.2.0.0). See
the build log above for details.
We have to make a hackage revision to use the previous lsp-types version