You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
stack new haskellStackHelloworld
Downloading template "new-template" to create project "haskellStackHelloworld" in haskellStackHelloworld/ ...
The following parameters were needed by the template but not provided: category
You can provide them in /home/ondra/.stack/config.yaml, like this:
templates:
params:
category: value
Or you can pass each one as parameters like this:
stack new haskellStackHelloworld new-template -p "category:value"
Writing default config file to: /home/ondra/Projects/haskellStackHelloworld/stack.yaml
Basing on cabal files:
- /home/ondra/Projects/haskellStackHelloworld/haskellStackHelloworld.cabal
Checking against build plan lts-3.14
Selected resolver: lts-3.14
Wrote project config to: /home/ondra/Projects/haskellStackHelloworld/stack.yaml
cd haskellStackHelloworld/
stack test
haskellStackHelloworld-0.1.0.0: configure (lib + exe + test)
Configuring haskellStackHelloworld-0.1.0.0...
haskellStackHelloworld-0.1.0.0: build (lib + exe + test)
Preprocessing library haskellStackHelloworld-0.1.0.0...
[1 of 1] Compiling Lib ( src/Lib.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/Lib.o )
In-place registering haskellStackHelloworld-0.1.0.0...
Preprocessing executable 'haskellStackHelloworld-exe' for
haskellStackHelloworld-0.1.0.0...
[1 of 1] Compiling Main ( app/Main.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/haskellStackHelloworld-exe/haskellStackHelloworld-exe-tmp/Main.o )
Linking .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/haskellStackHelloworld-exe/haskellStackHelloworld-exe ...
Preprocessing test suite 'haskellStackHelloworld-test' for
haskellStackHelloworld-0.1.0.0...
[1 of 1] Compiling Main ( test/Spec.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/haskellStackHelloworld-test/haskellStackHelloworld-test-tmp/Main.o )
Linking .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/haskellStackHelloworld-test/haskellStackHelloworld-test ...
haskellStackHelloworld-0.1.0.0: copy/register
Installing library in
/home/ondra/Projects/haskellStackHelloworld/.stack-work/install/x86_64-linux/lts-3.14/7.10.2/lib/x86_64-linux-ghc-7.10.2/haskellStackHelloworld-0.1.0.0-D1dFZvuroeEGs4tiDu5sD5
Installing executable(s) in
/home/ondra/Projects/haskellStackHelloworld/.stack-work/install/x86_64-linux/lts-3.14/7.10.2/bin
Registering haskellStackHelloworld-0.1.0.0...
haskellStackHelloworld-0.1.0.0: test (suite: haskellStackHelloworld-test)
Progress: 1/2Test suite not yet implemented
Completed all 2 actions.
but this fails:
stack new haskellStackHelloworld
Downloading template "new-template" to create project "haskellStackHelloworld" in haskellStackHelloworld/ ...
The following parameters were needed by the template but not provided: category
You can provide them in /home/ondra/.stack/config.yaml, like this:
templates:
params:
category: value
Or you can pass each one as parameters like this:
stack new haskellStackHelloworld new-template -p "category:value"
Writing default config file to: /home/ondra/Projects/haskellStackHelloworld/stack.yaml
Basing on cabal files:
- /home/ondra/Projects/haskellStackHelloworld/haskellStackHelloworld.cabal
Checking against build plan lts-3.14
Selected resolver: lts-3.14
Wrote project config to: /home/ondra/Projects/haskellStackHelloworld/stack.yaml
cd haskellStackHelloworld/
stack build
haskellStackHelloworld-0.1.0.0: configure
Configuring haskellStackHelloworld-0.1.0.0...
haskellStackHelloworld-0.1.0.0: build
Preprocessing library haskellStackHelloworld-0.1.0.0...
[1 of 1] Compiling Lib ( src/Lib.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/Lib.o )
In-place registering haskellStackHelloworld-0.1.0.0...
Preprocessing executable 'haskellStackHelloworld-exe' for
haskellStackHelloworld-0.1.0.0...
[1 of 1] Compiling Main ( app/Main.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/haskellStackHelloworld-exe/haskellStackHelloworld-exe-tmp/Main.o )
Linking .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/haskellStackHelloworld-exe/haskellStackHelloworld-exe ...
haskellStackHelloworld-0.1.0.0: copy/register
Installing library in
/home/ondra/Projects/haskellStackHelloworld/.stack-work/install/x86_64-linux/lts-3.14/7.10.2/lib/x86_64-linux-ghc-7.10.2/haskellStackHelloworld-0.1.0.0-D1dFZvuroeEGs4tiDu5sD5
Installing executable(s) in
/home/ondra/Projects/haskellStackHelloworld/.stack-work/install/x86_64-linux/lts-3.14/7.10.2/bin
Registering haskellStackHelloworld-0.1.0.0...
stack test
Test suite haskellStackHelloworld-test executable not found for haskellStackHelloworld
Test suite failure for package haskellStackHelloworld-0.1.0.0
haskellStackHelloworld-test: executable not found
Logs printed to console
The text was updated successfully, but these errors were encountered:
sideeffffect
changed the title
Stack new, build & test fails
Stack new, build & test fails
Nov 22, 2015
+ changes the ensureConfig logic to ignore the list of components, as it
does not affect the config of the package.
+ avoid reconfigures when the new deps are a subset of the old deps
re-reporting from #958 (comment)
things go OK with the steps you described:
but this fails:
The text was updated successfully, but these errors were encountered: