-
Notifications
You must be signed in to change notification settings - Fork 841
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
Make a way to build execs, tests, benches, without running them #1706
Comments
We already have some options to specify this behavior
, and there is a similar one for These should be able to be specified in a |
What about building exec sections? Also, a shortcut (like
|
stack builds exes by default, am I getting it wrong what you are asking? If you need more fine grained control, there is some command line options that you can use at the moment: So for example, |
Yeah, it's true that |
yes, i like |
I could be misunderstanding the issue I'm having. Basically ghc-mod running on an exec section doesn't see modules from the library section until I run |
Another option:
|
My expectation would be that the |
I can see that perspective, but I don't think that it's worth changing now. I think the way to read Tests and benchmarks aren't really very useful unless they get run (they don't get installed anywhere). So, this means that compiling them but not running them is only useful to ensure there aren't compile errors. The common case of building tests and benchmarks is when you also want to run them. |
I'd agree with that. Remember this all stems from the apparent failure to build exec sections and be seen by ghc-mod/flycheck-stack checker until I run |
Ahh, yeah, getting into flycheck may be trickier. There's some in progress work here getting flycheck working better with stack: #1737 |
I'm not sure if #1737 is the same issue. Mine is an issue of a cabal file with a |
Yes, when you run |
The |
Oh, sorry! I read your prior comments too quickly. That is some strange behavior, I don't know what's going on there. There are some ongoing discussions of ghc-mod + stack, hopefully things will work better after things are polished up a bit DanielG/ghc-mod#751 |
@lukehoersten mind opening an issue on the ghc-mod issue tracker for that? We still have some really weird behavior lurking in the stack support. For example DanielG/ghc-mod#640 and DanielG/ghc-mod#699 are also about test suite weirdness. |
This is an issue with |
Ah, nevermind then. |
stack build --test
should build the test, for example, without running the test.stack test
should build the tests if not built and then run them.We also need a
stack build --exec
or something to build the exec sections without running them.The text was updated successfully, but these errors were encountered: