-
-
Notifications
You must be signed in to change notification settings - Fork 370
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
hls-stan-plugin shouldn't be included by default #4464
Comments
Thanks for opening this issue! Pinging the maintainer of the
For clarification, this is about shipping HLS binaries with The history is essentially, we accept most plugin requests, as we don't have a policy regarding stability or even regular maintenance (iirc).
Personally, I also disable hlint, and know more than enough Haskell devs who do not use formatters for various reasons.
Ironically, It feels like this issue is describing issues downstream packagers (in particular |
I could benefit from some clarification here. Firstly, @KovalevDima says
but @fendor says
What exactly is under discussion here? What exactly is the proposed remediation? And what is the alternative? For users who do want to use the Stan plugin, how could they continue to use it if it were "not included by default" (whatever that means)? |
My understanding is that the suggestion is essentially to flip haskell-language-server/haskell-language-server.cabal Lines 788 to 790 in 25c5d82
so that it's False by default.
Could distributors such as |
Thank you for your answers It's possible with Nix to drop My point was about HLS plugins distribution and I'm one of those developers who doesn't love to use formatters, but I understand and know people who do. At the same time, I’ve never met anyone who uses stan in a commercial project, especially with HLS. Also it's so bad that static analyzer tool requires:
There are also some libraries that easy to avoid from use in static analyzer tool. But My goal is to share some of my experiences working with HLS. I appreciate the HLS team's work, and I’m glad to have used HLS every day for more than three years, with all its problems and benefits. Special thanks to @fendor for the progress on |
In my opinion, there should be a way in HLS to link plugins dynamically without modifying the source code and redistributing it. However, I understand that it might be difficult to implement. Regarding my suggestion: users of the hls-stan-plugin should rebuild HLS themselves by passing the stan flag to Cabal, which should default to False:
My position here is biased, as I don’t know any users of stan, and I think stan is more of a curious concept with a poor implementation |
Thanks for the ping. I don't have any strong opinions either way, though I sympathize with @ KovalevDima's complaints. If |
@0rphee, thank you for your understanding! In my opinion, the concept behind stan’s HIE file analysis is a good one. However, I believe it would be much better to implement something like an |
@KovalevDima That seems like a nice idea. However, since the diagnostic infrastructure, etc., is already in I'm open to help with this, if you're interested, we could discuss a plan to do this on the stan repo, that is, if @tomjaguarpaw would be open to accept changes of this sort in stan itself. |
@KovalevDima I'm uclear why "build HLS with the
That said: I do think there is a case for |
Ideally HLS should be available from Stackage, in which case a rule could be "all plugin dependencies available from Stackage". |
Should it be? It's an application, not a library, so it's not clear that it needs to fit into a nice consistent package set like Stackage provides. You can e.g. always build HLS from the repository using our own |
That's why I said "ideally", not "necessary". I imagine if you want to package a dynamically linked HLS, say, for Ubuntu, you'd like it to be consistent with the rest of system packages, which are usually derived from Stackage set. |
There are several reasons to distribute HLS sources without Stan included by default:
As an HLS user, I encountered problems while trying to modify the HLS binary distribution with Nix due to the lack of support for Stan dependencies (extension library). I’ve been having conversations with several active Haskell open-source contributors who also disable Stan entirely.
What is the history behind enabling Stan by default? Is it necessary to invest time into adopting a tool with limited support?
Mark this issue with 👍 if you think (or 👎 if not) the
hls-stan-plugin
should not be enabled by default. Share any stories about why you disable stanThe text was updated successfully, but these errors were encountered: