-
Notifications
You must be signed in to change notification settings - Fork 347
process-load-or-reload
suddenly requires stack
#864
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
Comments
I think perhaps we should just additionally check for the presence of a |
(Done in 142334f) |
Now I just need to figure out a way to keep |
The thing is, there's no "right" answer for "auto". I use stack in some cases, and for this "simplified" haskell project setup, I then need to set up a |
@purcell, you should probably place the check for a |
What this boils down to is that some (many?) projects will have both a |
What do you think would be the |
If a
And that's a wrong assumption. I have seen users submitting PRs to projects whose maintainer definitely doesn't use |
Like I say, I think there's no perfect answer, but checking for the |
Done. How does that look? |
If you and others are strongly opposed to this, I'm happy to revert these changes, but I'd like us to do what we can to maximise the number of users for whom "auto" will do something sensible out of the box. |
This depends on the percentage of This variable could say whether to:
It's a pity that |
Perhaps if we had something like a |
deb809b is already an improvement. I think PS: when you successfully |
Yeah, there's a |
When neither |
yeah, I agree (assuming a PS: and I assume the presence of |
And assuming a |
That's only mostly true... |
Don't search for |
Makes sense - done. I'll quit fiddling with this now, though -- if there's consensus that this is all misguided, or that there's a better approach, we can feel free to throw out these changes. |
@ivan-m good point... there's actually also ongoing work (see haskell/cabal#2810) making it possible to place the However, you can actually rename that config file via
But that's probably not done very often (except for build-bots and/or specific build-scripts) |
So how does this work now? There needs to be a section in manual that describes current behavior. @purcell: Can you write/update one? |
Yes, there was also no description of the previous logic. I have updated the documentation for the |
When I M-x process-load-or-reload today I started getting
This seems to have regressed recently with f4b1841 (@purcell) which incorrectly assumes that the presence of a
stack.yml
file implies that the user wants to usestack
even though it was maybe just added there for convenience to other Stack users.It's perfectly fine if
haskell-mode
adds support for Stack, but please, don't impose the non-default toolstack
on users in its default configuration. Even if I happen to havestack
installed, I certainly don't want it to hijack the REPL mode in theauto
-mode.The text was updated successfully, but these errors were encountered: