Skip to content
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

Where are the stack-*.yaml files? #2890

Closed
iamemhn opened this issue May 2, 2022 · 10 comments
Closed

Where are the stack-*.yaml files? #2890

iamemhn opened this issue May 2, 2022 · 10 comments
Labels
status: needs triage type: bug Something isn't right: doesn't work as intended, documentation is missing/outdated, etc..

Comments

@iamemhn
Copy link

iamemhn commented May 2, 2022

Your environment

Which OS do you use:
Debian 11
Which LSP client (editor/plugin) do you use:
vim+CoC

Steps to reproduce

After a successfull git pull a few minuts ago, can't build with

stack install --stack-yaml stack-8.10.7.yaml

because the YAML file is not there

$ git log | head -1
commit 7bd6e0897b5ac366fcb595ebd1c20dca5a5b0f89

Expected behaviour

Be able to build as I was a week ago or so.

@iamemhn iamemhn added status: needs triage type: bug Something isn't right: doesn't work as intended, documentation is missing/outdated, etc.. labels May 2, 2022
@drsooch
Copy link
Collaborator

drsooch commented May 2, 2022

#2874 cleaned up. There was discussion to only track a few most recent versions as they quickly go out of date.

@drsooch drsooch closed this as completed May 3, 2022
@iamemhn
Copy link
Author

iamemhn commented May 3, 2022 via email

@drsooch
Copy link
Collaborator

drsooch commented May 3, 2022

You can use stack to build with nightly, LTS19 and LTS16

@iamemhn
Copy link
Author

iamemhn commented May 3, 2022 via email

@drsooch
Copy link
Collaborator

drsooch commented May 3, 2022

There was a decision made to only support a few stack files. Most developers generally use cabal to build, and the stack files are rarely updated and can get out of date with the current state of the code.

The stack.yaml files were deprecated in 1.6, and earmarked for removal.

@enobayram
Copy link

So, what's the recommended way forward for compiling hls from source to be used with a stackage lts 18 project?

@drsooch
Copy link
Collaborator

drsooch commented May 3, 2022

So, what's the recommended way forward for compiling hls from source to be used with a stackage lts 18 project?

As long as you compile HLS with the proper GHC version (looks like 8.10.7 is LTS 18), you will be able to use it with a LTS18 project.

You can either use cabal, with cabal install exe:haskell-language-server exe:haskell-language-server-wrapper (the command might be slightly different, I usually just build everything) or use ghcup compile hls -g master --ghc 8.10.7.

@enobayram
Copy link

This is very helpful, thank you very much!

@iamemhn
Copy link
Author

iamemhn commented May 3, 2022 via email

@fendor
Copy link
Collaborator

fendor commented May 3, 2022

If not, why not provide one for lts18?

The reason is additional maintenance overhead. Supporting an LTS is no trivial amount of work, and you can see the discussion at #2533 for more details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: needs triage type: bug Something isn't right: doesn't work as intended, documentation is missing/outdated, etc..
Projects
None yet
Development

No branches or pull requests

4 participants