-
-
Notifications
You must be signed in to change notification settings - Fork 412
Closed
Labels
component: formatterstype: bugSomething isn't right: doesn't work as intended, documentation is missing/outdated, etc..Something isn't right: doesn't work as intended, documentation is missing/outdated, etc..
Description
Env
- OS: Arch Linux
- VSCode: 1.52.1
- Haskell Extension: 1.2.0
- GHC: 8.8.4 (installed by ghcup)
Formatters are installed by stack. But it seems that HLS has its own formatters. The version it outputs can not match mine.
Log
Stylish-haskell:
Message: RequestMessage {_jsonrpc = "2.0", _id = IdInt 60, _method = TextDocumentFormatting, _params = DocumentFormattingParams {_textDocument = TextDocumentIdentifier {_uri = Uri {getUri = "file:///home/quartic/Workspace/Code/Temp/Haskell/ttttt2.hs"}}, _options = FormattingOptions {_tabSize = 2, _insertSpaces = True}, _workDoneToken = Nothing}}
Exception: 0:0:Language.Haskell.Stylish.Config.loadConfig: fromJSON: key "via" not found
CallStack (from HasCallStack):
error, called at lib/Language/Haskell/Stylish/Config.hs:123:32 in stylish-haskell-0.12.2.0-1484562cd628adb85456026d1e1a4cd35a905ae014f7fdd185580d56b98143cf:Language.Haskell.Stylish.Config
[Error - 5:08:52 AM] Request textDocument/formatting failed.
Message: 0:0:Language.Haskell.Stylish.Config.loadConfig: fromJSON: key "via" not found
CallStack (from HasCallStack):
error, called at lib/Language/Haskell/Stylish/Config.hs:123:32 in stylish-haskell-0.12.2.0-1484562cd628adb85456026d1e1a4cd35a905ae014f7fdd185580d56b98143cf:Language.Haskell.Stylish.Config
Code: -32603
Brittany:
/opt/ghc/8.8.4/lib/ghc-8.8.4/settings: openFile: does not exist (No such file or directory)
2021-01-30 05:06:15.803330178 [ThreadId 925] - Unexpected exception on request, please report!
Message: RequestMessage {_jsonrpc = "2.0", _id = IdInt 52, _method = TextDocumentFormatting, _params = DocumentFormattingParams {_textDocument = TextDocumentIdentifier {_uri = Uri {getUri = "file:///home/quartic/Workspace/Code/Temp/Haskell/ttttt2.hs"}}, _options = FormattingOptions {_tabSize = 2, _insertSpaces = True}, _workDoneToken = Nothing}}
Exception: ExitFailure 1
[Error - 5:06:15 AM] Request textDocument/formatting failed.
Message: ExitFailure 1
Code: -32603
Metadata
Metadata
Assignees
Labels
component: formatterstype: bugSomething isn't right: doesn't work as intended, documentation is missing/outdated, etc..Something isn't right: doesn't work as intended, documentation is missing/outdated, etc..