-
-
Notifications
You must be signed in to change notification settings - Fork 391
Formatting suddenly stopped working #3667
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Since only hls-cabal-fmt-plugin is enabled, you have probably upgraded your HLS version to a version where none of the plugins are either installed or available. |
|
Apparently, no formatter compiles or is compatible with that GHC version, so we can't ship any either. https://haskell-language-server.readthedocs.io/en/latest/support/plugin-support.html#current-plugin-support-tiers |
Is there any way I can just get it to run the ormolu that's already installed? I can run |
No, currently not. I think for ormolu we only support built-in ormolu versions. I think you can do it with fourmolu. Also, maybe building #3668 from source might be helpful. |
Unfortunately, although the fourmolu plugin got fixed for 9.6, it wasn't enabled so I don't think it's in the latest release either. I'm also working on getting stylish-haskell updated: haskell/stylish-haskell#459 |
Anyway, there is no bug here I think. |
I have no idea what changed. The autoformat command was working one day, stopped working the next.
When I run the format command in vscode, I see this in the Haskell output tab:
An example environment can be found here - https://github.com/typeclasses/integer-types/tree/b8ec4030f0e7ca0160b4f83b8334bd21a7938855 - Nix+direnv will install haskell-language-server et al.
My "formatting provider" is set to "ormolu." Ormolu is on the PATH. I notice that the setting description includes has a note says "Ensure the plugin is enabled." but it doesn't say what plugin to enable.
The text was updated successfully, but these errors were encountered: