haskell / haskell/haskell-language-server

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

Open
#3,968 3 comments 3 reactions 0 assignees View on GitHub
component: formatters type: support
Dominant language
Haskell
Stars
3k
Forks
455
Avg merge
2d 19h
Merged PRs (30d)
11

Description

## 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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.