Skip to content

feature request: Haskell-Language-Server / ormolu support #377

Description

@euanpound

Did you check existing requests?

  • I have searched the existing issues

Describe the feature

Some way to handle the errors ormolu sends when the code is malformed (probably something ormolu should handle on their end) or handle lsp time outs from formatting.

Provide background

Using hls leads to timeouts when the buffer has really malformed code (this is the fault of ormolu sending stdout errors). I have a habit of saving too often and at random times, basically whenever I move my head from my monitor so I get this slow-down each time. It would be nice to be able to handle these ormolu errors somehow. I just added an ormolu formatter for the time being which doesn't get rid of the errors but it does mean I can save without a timeout delay.

What is the significance of this feature?

nice to have

Additional details

If I should report an issue or feature request to the ormolu repo lmk and I won't waste peoples' time here. Or if I am doing something wrong then please correct me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Not a priority. PRs welcomeenhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions