Closed yurivict closed 4 months ago
You are compiling from source? Try stack clean --full && stack build
, it looks like it fetched an incompatible version of the language server dependency. It should be pinned in stack.yaml
. In the meantime I'll try upgrading the dependency on dev.
I've made the changes on the dev
branch to support the new version of lsp.
@TimWhiting
I am in the very clean environment of the FreeBSD port, so stack clean --full
wouldn't help.
I believe that this is a general problem in 3.1.0
Could you please cut a new release that includes the fix so that others wouldn't have the same problem?
Daan said he would do a new release soon.
@TimWhiting 3.1.1 still has the same failure:
src/Main/langserver/LanguageServer/Handler/SignatureHelp.hs:103:98: error: [GHC-39999]
* No instance for `Num (J.UInt J.|? J.Null)'
arising from the literal `0'
* In the first argument of `Just', namely `0'
In the third argument of `J.SignatureHelp', namely `(Just 0)'
In the second argument of `($!)', namely
`J.SignatureHelp
(map snd sigInfos) (fmap fromIntegral mbIndex) (Just 0)'
|
103 | return $! Just $! J.SignatureHelp (map snd sigInfos) (fmap fromIntegral mbIndex) (Just 0)
| ^
ghc-9.6.4 FreeBSD 14.0
What about 3.1.2?
3.1.2 builds fine, thank you.
ghc-9.4.8 FreeBSD 14.0