-
-
Notifications
You must be signed in to change notification settings - Fork 391
Running a test watcher alongside haskell-language-server #596
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
Hi, thanks for reporting this. A quick workaround would be set a different I would argue that it is a stack bug cause it should support concurrent builds, even with |
Thanks so much for the speedy response/workaround, I was struggling to get my workaround idea to work myself :( I was originally going to open this issue against stack, when I realised that the "other Stack process" was HLS, so I opened the issue here. Do you think opening an issue against Stack is worth doing still? Finally, is there any way to set stack flags via the Thanks again! |
I am afraid it is not.
Well, maybe it is worth even only to make it know to other stack users. Afaik cabal supports parallel builds, although sometimes you hit a bug doing it so it is possible 😄 |
I have kind of the same problem this issue has a work-around for, but I was wondering if it might be possible to set the optimization/flags for stack in HLS? That way when HLS rebuilds something, stack doesn't have to ALSO rebuild again, because HLS builds with -O2, and when I run At least the "make HLS use a different work directory" is a decent work-around, so I'm happy I found this issue. |
HLS now uses a separate working directory so it doesn't collide with the build tool. Or at least that's true for cabal, is it true for stack also? @fendor ? |
For stack, we don't change the build directory as stack claims to only support relative paths and we want to pass in an absolute path, e.g. Thus, the issue is still relevant and we would like to fix that in the future. Relevant stack issue: commercialhaskell/stack#6135 |
I have installed HLS and it works great! I have however, come up against a slight issue with my workflow. I have a stack command that I run to watch file changes, and run my test suite on changes, the command is:
This unfortunately conflicts with HLS, as when this command is running and I also have vim open with HLS active, whenever I make a change to a file my test process gets stuck in a loop:
Is there a way around this? What is the setup typically for this kind of workflow? Could I use HLS to run the tests on file change? (that is probably beyond the scope of this project...?)
Is there a way I can run stack so that is isn't actively compiling, and just runs the tests every time the tests have re-compiled?
The text was updated successfully, but these errors were encountered: