commercialhaskell/stack

--exec --file-watch combo not working as expected

Offen

#2.955 geöffnet am 27.01.2017

 (5 Kommentare) (1 Reaktion) (0 zugewiesene Personen)Haskell (848 Forks)batch import
component: Windowsfurther investigation requiredhelp wantedtype: bug

Repository-Metriken

Stars
 (4.060 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 17T 10h) (6 gemergte PRs in 30 T)

Beschreibung

Steps to reproduce

Choose a repo and run:

stack build --exec "echo run me, please!" --file-watch

The echo doesn't echo yet. Type 'help'. The executable then runs eg

stack build --exec "echo run me, please!" --file-watch

help
run me, please!

help: display this help
quit: exit
build: force a rebuild
watched: display watched files
ExitSuccess
Type help for available commands. Press enter to force a rebuild.
quit

Associated with this, build does not seem to force a build.

Expected

I expected the executable to run initially,, before kicking the file-watch cycle in the guts.

Actual

the --exec runs after typing help

version

$ stack --version
Version 1.3.2 x86_64 hpack-0.15.0

Contributor Guide