-
-
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
Config: How to disable stan plugin #3157
Comments
I'm not familiar with the dynamic config, but you can add |
I'm indeed compiling hls from scratch with |
Have you tried |
The config format would not be the format Could you point me to documentation showing how to configure Vim with Coc with plugin options? |
I am also experiencing this issue. COC config: {
"languageserver": {
"haskell": {
"command": "haskell-language-server-wrapper",
"args": ["--lsp"],
"rootPatterns": ["*.cabal", "stack.yaml", "cabal.project", "package.yaml", "hie.yaml"],
"filetypes": ["haskell", "lhaskell"],
"settings": {
"languageServerHaskell": {
"plugin": {
"stan": {
"globalOn": false
}
}
}
}
}
}
} If I change it to: {
"languageserver": {
"haskell": {
"command": "haskell-language-server-wrapper",
"args": ["--lsp"],
"rootPatterns": ["*.cabal", "stack.yaml", "cabal.project", "package.yaml", "hie.yaml"],
"filetypes": ["haskell", "lhaskell"],
"settings": {
"languageServerHaskell": {
"plugin": {
"stan": {
"globalOn": false
},
"tactics": { "globalOn": false }
}
}
}
}
}
} Wingman is disabled. This suggests to me that the configuration is working, there's just no way to turn off The stan plugin also seems to be ignoring my |
I'm experiencing the same issue -- no way to disable nor configure |
Found the bug - Stan diagnostics should be gated in the same way that hlint are: |
Update: Not relevant for stan issue, but I figured out my configuration needed to switch to |
@uhbif19 can you take a look? |
@michaelpj Will try to fix on weekend. |
@uhbif19 @michaelpj Here is a suggestion for a fix that works for me: #3179 Documentation
|
#3179 merged, configuration should now work. |
How can I disable the stan plugin when using emacs with eglot? Above it says "Config is Alternatively, how can I tell HLS to ignore specific stan hints? As @AnthonySuper says above, the Sorry to resurrect this issue, but I could not find the relevant documentation and still have these problems with HLS 1.9.0.0. |
I'm not that familiar with config. options, but what helped me was to build hls from source using ghcup with stan plugin disabled (https://www.haskell.org/ghcup/guide/#hls).
This assumes you're building hls to be used with ghc 8.10.7 (because AFAIK stan plugin only works with that version and is automatically disabled when building against more recent ghc versions) |
I think this is HLS specific, so in some HLS config you should specify that |
Because I had trouble figuring out how the options should look like for Vim, I added an example with options to the docs. For emacs there is none. So in case you're able to tinker and find out how plugins can be configured (it be quite similar to other emacs LS settings), it would be awesome to add a more detailed example to the docs afterwards. |
Thank you all for the replies! I now managed to disable stan in emacs with eglot, by putting the following in my (use-package eglot
:ensure t
:config
(add-hook 'haskell-mode-hook 'eglot-ensure)
:config
(setq-default eglot-workspace-configuration
'((haskell
(plugin
(stan
(globalOn . :json-false))))))
) In particular, then with As for editing the docs: Currently the whole emacs section assumes that (As far as I know newer versions of emacs ship with |
I'd be happy to have a section on |
Based on the discussion at haskell#3157
* Docs: update Emacs section: add eglot with config example Based on the discussion at #3157 * Update docs/configuration.md Co-authored-by: Michael Peyton Jones <[email protected]> --------- Co-authored-by: Michael Peyton Jones <[email protected]>
Hey there, it's either currently not possible or I don't know how to exactly disable the stan plugin.
"stan": { "globalOn": false }
stan
pluginhaskell-language-server-wrapper generate-default-config
) doesn't have an entry forstan
.Is
globalOn
respected for this plugin?Vim
Still enabled, but expected to be off
CLI
Still enabled, but expected to be off
Additional context
The text was updated successfully, but these errors were encountered: