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

Add to Stackage #1071

Closed
ndmitchell opened this issue Sep 29, 2019 · 13 comments
Closed

Add to Stackage #1071

ndmitchell opened this issue Sep 29, 2019 · 13 comments

Comments

@ndmitchell
Copy link
Collaborator

Having ghcide in Stackage is super useful for company's that base their package set on Stackage. Could it please be added? I'm happy to be the point person and add it myself, if you wish.

Note that adding it right now might not be the best timing since Stackage just rolled to GHC 8.8 and consequently everything is in flux. But in a few weeks it's a definitely useful step.

@cocreature
Copy link
Contributor

Sure, happy to add it once the deps are back in nightly.

@ndmitchell
Copy link
Collaborator Author

Everything is now back in nightly.

@cocreature
Copy link
Contributor

We’ll need a new release before we can add it to stackage. I was hoping to include a bump to a newer hie-bios release in the next release but given that this seems to be taking longer than I initially thought, I’ll probably make one without that.

@turion
Copy link

turion commented Dec 18, 2019

Releasing to stackage would be great! Plans on doing that soon?

@v217
Copy link

v217 commented Feb 4, 2020

For the vast majority of users running a docker container is easier, than getting familiar with Nix. With the vscode extension Remote Development this has become the fastest way to get started!

So until there is a great solution for binaries for stackage, a docker image is maybe the most user-friendly option?

Nix has other problems as well! It only works with bash, it has problems with xattrs on NFS, ZFS, btrfs, etc ...

@ndmitchell
Copy link
Collaborator Author

@v217 - adding ghcide to Stackage is useful, independent of anything else you've said. Perhaps you want to create another ticket to advocate including another option? It's certainly not an either/or situation - we can be on Stackage and have binaries, a Nix script, a homebrew installation etc.

@v217
Copy link

v217 commented Feb 4, 2020

@ndmitchell Absolutely agree, just wanted to mention this option!

@ndmitchell
Copy link
Collaborator Author

Btw, its likely that specific forms of distribution (including binary) will be done through https://github.com/haskell/haskell-language-server rather than ghcide, and that project will bundle ghcide plus plugins.

@ndmitchell
Copy link
Collaborator Author

Once haskell/ghcide#429 gets merged we'll be in a state to add it. Furthermore, it's just a few days before the next Stackage LTS cutoff, so that's convenient.

@ejconlon
Copy link

I can confirm that everything builds fine and all tests pass locally with lts-15.0. However, a new release (0.2.0?) is needed to allow stack install ghcide to work outside the project.

@ndmitchell
Copy link
Collaborator Author

#954 was caused by not yet being in Stackage.

@jamesdbrock
Copy link

You know, it would make a huge amount of sense for ghcide to be in Stackage.

In the top directory of any stack.yaml-based project, you could just $ stack exec --package ghcide ghcide -- --lsp and then ghcide would be locally compiled with the same version of GHC that project uses, and executed.

@jneira
Copy link
Member

jneira commented Dec 29, 2020

I think we could merge this with #400

@jneira jneira closed this as completed Dec 29, 2020
@pepeiborra pepeiborra transferred this issue from haskell/ghcide Jan 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants