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

Build one ide-backend-server per snapshot (for stack-ide) #662

Closed
mgsloan opened this issue Jul 22, 2015 · 6 comments
Closed

Build one ide-backend-server per snapshot (for stack-ide) #662

mgsloan opened this issue Jul 22, 2015 · 6 comments

Comments

@mgsloan
Copy link
Contributor

mgsloan commented Jul 22, 2015

Currently stack doesn't manage installing ide-backend-server, so you need to ensure the right one is on the PATH / in the bin dirs for the project.

See #657. While having an ide-backend-server per project isn't so bad, ideally we'd only need one per snapshot.

@mgsloan mgsloan changed the title Build one ide-backend-server per GHC Build one ide-backend-server per GHC (for stack-ide) Jul 22, 2015
@snoyberg
Copy link
Contributor

I'd say one per snapshot (which should be the default) is the right thing
to do.

On Wed, Jul 22, 2015 at 4:37 PM Michael Sloan [email protected]
wrote:

Currently stack doesn't manage installing ide-backend-server, so you need
to ensure the right one is on the PATH / in the bin dirs for the project.

See #657 #657. While
having an ide-backend-server per project isn't so bad, ideally we'd only
need one per ghc.


Reply to this email directly or view it on GitHub
#662.

@mgsloan
Copy link
Contributor Author

mgsloan commented Jul 22, 2015

Good point! I've updated the title / description.

@mgsloan mgsloan changed the title Build one ide-backend-server per GHC (for stack-ide) Build one ide-backend-server per snapshot (for stack-ide) Jul 22, 2015
@jcpetruzza
Copy link
Contributor

Just to repeat here what I proposed in #657, it would be nice if this feature could be somewhat configurable:

  1. to allow a non-snapshot version of ide-backend-server to be used (which would then be built in the project, not the snapshot)
  2. to have installed in the snapshot/project other development tools that depend on ghc (or on haskell-src-exts), such as HaRe, hlint, hindent, etc.

@rvion
Copy link
Contributor

rvion commented Aug 14, 2015

What would be the best ?

  1. stack ide --setup
  2. stack ide automatically setting up ide-backend-server for current snapshot it not present
  3. stack setup --ide to specify ide-backend-server is wanted too
  4. stack setup automatically setting up ide-backend-server for current snapshot it not present

Any other suggestion ?

@snoyberg
Copy link
Contributor

snoyberg commented Sep 6, 2015

I'm a bit confused; how is the requirement for this issue more than just running stack build ide-backend-server?

@mgsloan
Copy link
Contributor Author

mgsloan commented Sep 8, 2015

@snoyberg I thought the issue was more than that because "ideally we'd only need one per snapshot". However, I just realized that executables built from packages in the snapshot do get shared. Awesome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants