Haskell-language-server: Update hls-plugin-api on Hackage

Created on 15 Sep 2020  路  4Comments  路  Source: haskell/haskell-language-server

The current version fails to build with error:

src/Ide/Plugin/GhcIde.hs:42:7: error:
    Variable not in scope:
      executeAddSignatureCommand
        :: Language.Haskell.LSP.Core.LspFuncs Ide.Plugin.Config.Config
           -> IdeState
           -> ExecuteCommandParams
           -> IO
                (Either ResponseError Value,
                 Maybe (ServerMethod, ApplyWorkspaceEditParams))
   |
42 |     = executeAddSignatureCommand lf ide (ExecuteCommandParams "typesignature.add" (Just (List [toJSON params])) Nothing)
   |       ^^^^^^^^^^^^^^^^^^^^^^^^^^

Updating this is the only straightforward way to build haskell-language-server in Nixpkgs.

build hls-plugin-api bug

All 4 comments

thanks for the bug report, we should test the package install in isolation

The build works in master, it's just a matter of updating the version that's on Hackage.

From #405

Well, i am afraid that the hackage version of hls-plugin-api cant be built standalone cause it relies in the ghcide fork that was used when it was uploaded. It fails to compile with the hackage version of ghcide 馃槦
That should not be like that, and i still think the next release should be done correctly, against a suitable released ghcide version.

Was this page helpful?
0 / 5 - 0 ratings