Skip to content

Ormolu formatting fails with CPP pragma #245

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

Closed
pepeiborra opened this issue Jul 27, 2020 · 1 comment · Fixed by #246
Closed

Ormolu formatting fails with CPP pragma #245

pepeiborra opened this issue Jul 27, 2020 · 1 comment · Fixed by #246

Comments

@pepeiborra
Copy link
Collaborator

For any module with a CPP language pragma, the Ormolu formatter fails with:

2020-07-27 20:25:20.119291 [ThreadId 67857] - finish: Ormolu (took 0.00s)
2020-07-27 20:25:20.120322 [ThreadId 7] - <--2--{"error":{"code":-32602,"message":"ormoluCmd: OrmoluUnrecognizedOpts (\"-XCpp\" :| [])"},"jsonrpc":"2.0","id":825}
[Error - 8:25:20 PM] Request textDocument/formatting failed.
  Message: ormoluCmd: OrmoluUnrecognizedOpts ("-XCpp" :| [])
  Code: -32602 

Command line Ormolu succeeds, so this is an HLS bug

@pepeiborra
Copy link
Collaborator Author

I'm planning to contribute a fix for this

pepeiborra pushed a commit that referenced this issue Dec 27, 2020
Hover and goto definition only work on the function name in the first clause of
a function being defined with multiple equation clauses.

Here are some tests that document this.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant