Skip to content

hls-fourmolu-plugin-1.1.1.0 is incompatible with ghcide-1.8.0.0 #3425

Closed
@lehins

Description

@lehins

Building hls-fourmolu-plugin-1.1.1.0 results in a build error, when it is built with haskell-language-server-1.8.0.0:

Preprocessing library for hls-fourmolu-plugin-1.1.1.0..
Building library for hls-fourmolu-plugin-1.1.1.0..
[1 of 2] Compiling Ide.Plugin.Fourmolu.Shim ( src/Ide/Plugin/Fourmolu/Shim.hs, dist/build/Ide/Plugin/Fourmolu/Shim.o, dist/build/Ide/Plugin/Fourmolu/Shim.dyn_o )
[2 of 2] Compiling Ide.Plugin.Fourmolu ( src/Ide/Plugin/Fourmolu.hs, dist/build/Ide/Plugin/Fourmolu.o, dist/build/Ide/Plugin/Fourmolu.dyn_o )

src/Ide/Plugin/Fourmolu.hs:62:56: error:
    Variable not in scope:
      usePropertyAction
        :: t0
           -> PluginId
           -> Properties '[ 'PropertyKey "external" 'TBoolean]
           -> Action Bool
   |
62 |     useCLI <- liftIO $ runAction "Fourmolu" ideState $ usePropertyAction #external plId properties
   |                                                        ^^^^^^^^^^^^^^^^^

Which makes sense, since usePropertyAction was not exported until 1.8.0.2, which is not on hackage:

import Development.IDE.Core.Rules as X (getClientConfigAction,
getParsedModule)

I'd recommend creating a revision on hackage that fixes the lower bound: ghcide >= 1.9

Metadata

Metadata

Assignees

Labels

status: needs triagetype: bugSomething isn't right: doesn't work as intended, documentation is missing/outdated, etc..

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions