Skip to content

stack repl no longer picks up magic stack script comment #5476

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

Closed
buggymcbugfix opened this issue Jan 21, 2021 · 4 comments
Closed

stack repl no longer picks up magic stack script comment #5476

buggymcbugfix opened this issue Jan 21, 2021 · 4 comments

Comments

@buggymcbugfix
Copy link

Tested with: Version 2.5.1, Version 2.4.0

I have -- stack script --resolver lts-13.18 --package shake at the top of a script Build.hs, however stack repl Build.hs doesn't pick this up and instead uses the global stack.yaml.

This also causes lsp integration to break: haskell/haskell-language-server#111

@qrilka
Copy link
Contributor

qrilka commented Jan 22, 2021

Was it ever possible to do that?

@buggymcbugfix
Copy link
Author

I recall that this used to work and this comment suggests the same: haskell/haskell-language-server#111 (comment)

Perhaps time for a git bisect? I'd help fix this with some guidance.

@qrilka
Copy link
Contributor

qrilka commented Jan 24, 2021

I'm just wondering how it could even work as stack script uses shell to sell all the details...
If you want to look into it @buggymcbugfix - sure go ahead, I could help you with some details I know about.

@mpilgrem
Copy link
Member

I am closing because stack <haskell_source_file> and stack repl (or stack ghci) are distinct commands. The former makes use of the script interpreter. The latter runs GHCi loaded up with project packages or their components.

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

3 participants