-
-
Notifications
You must be signed in to change notification settings - Fork 367
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
Brittany formatting not working anymore, using a different formatter #1376
Comments
Thanks for the awesome bug report with bisect ! |
I'm getting this as well with neovim & minimal initialization options:
(w/ both My current workaround is to go into |
Is this an issue for more people? Is it only the case for brittany or every formatter? |
With the new findings and based on the comment #1414 (comment) : Is the test in #1414 actually closing the issue? The test is a good addition. Testing that the formatter is working is not addressing the issue that the config isn't parsed, which does seem to be the reason for this behavior. To test #1376 it should instead make sure I'm either missing something or this issue shouldn't be closed. |
I have a similar problem, I also don't have the option to change the default formatter to "stylish-haskell". Output of
Vim/CoC Client configuration: {
"languageserver": {
"haskell": {
"command": "haskell-language-server-wrapper",
"args": ["--lsp"],
"rootPatterns": ["*.cabal", "stack.yaml", "cabal.project", "package.yaml", "hie.yaml"],
"filetypes": ["haskell", "lhaskell"],
"initializationOptions": {
"languageServerHaskell": {
"hlintOn": true,
"maxNumberOfProblems": 10,
"completionSnippetsOn": true,
"formattingProvider": "stylish-haskell"
}
}
}
}
} I installed hls with:
|
@asattelmaier As far as I can tell configuration with Vim/CoC (and language clients that behave the same) was broken before the |
@pepeiborra Could we reopen this issue to track that it's still open? |
There is an ongoing pr that updates lsp: #1631, iiuc it would close this, right? |
Yes, the next release of |
Your environment
Output of
haskell-language-server --probe-tools
orhaskell-language-server-wrapper --probe-tools
:haskell-language-server version: 0.9.0.0 (GHC: 8.8.3) (PATH: /home/andreas/.local/bin/haskell-language-server-wrapper) (GIT hash: d674178246d1303619013bd0435cbfcbb1463530) Tool versions found on the $PATH cabal: 3.2.0.0 stack: 2.5.1 ghc: 8.8.3
Which lsp-client do you use:
Vim/CoC
Installing hls with this command (from source):
Steps to reproduce
Expected behaviour
Actual behaviour
brittany working with: e2bf01b
brittany working with: 57b78e7
brittany not being used with: d674178
It should be introduced with one of these changes: 57b78e7...d674178
The installation method wasn't changed (related to agpl instructions). The language server configuration wasn't changed.
Include debug information
Execute in the root of your project the command
haskell-language-server --debug .
and paste the logs here:Debug output:
The text was updated successfully, but these errors were encountered: