Skip to content

Built-in fourmolu does not respect yaml settings, external fourmolu does not launch #3968

Open
@tablitza

Description

@tablitza

Your environment

Which OS do you use?
Arch
Which version of GHC do you use and how did you install it?
GHC 9.4.8, HLS 2.5.0.0 via ghcup

Which LSP client (editor/plugin) do you use?
emacs+lsp-mode
Have you configured HLS in any way (especially: a hie.yaml file)? No.

What's wrong?

The built-in fourmolu plugin does not format code according to settings in yaml file. For instance, indentation parameter value has no impact at all. The yaml file does get loaded per the hls log file, and other parameters such as indent-wheres do in fact have an effect. When I switch to external plugin, I get the following error log:
Error | fourmolu: Internal Error: fourmolu: createProcess: posix_spawnp: does not exist (No such file or directory)
I installed fourmolu with cabal, it resides in ~/.cabal/bin which is on my PATH and launching it manually from terminal works.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions