haskell / haskell/haskell-language-server

Formatting action is not readily available

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

Description

There are two modes to this failure. One is that in the several seconds after restarting HLS, the formatter isn't installed at all:

![image](https://github.com/haskell/haskell-language-server/assets/399718/df130b6b-a743-40f8-8167-02780081af9f)

The second is that if the plugin has loaded but the modules are still loading, then the formatting action just hangs until loading is complete.

![image](https://github.com/haskell/haskell-language-server/assets/399718/2828bef9-9609-4ae7-a374-e1710ff49cd0)

Both are annoying, but the second issue is practically a bigger deal, since module loading in a large project can take a long time and I need to be able to keep working while it goes on.

* vscode 1.78.2
* cabal 3.10.1.0
* stack 2.9.1
* ghc-9.2.7
* haskell-language-server 1.10.0.0

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.