"Using gradle at" message breaks zsh completion
timothybasanov opened this issue · 3 comments
GW wrapper always emits a helper message before running Gradle:
"Using gradle at '${gradle}' to run buildfile '${build_gradle}':\n"
Unfortunately Zsh completion for gradle does not expect it and can not parse gradle output.
Making it optionally-controlled via a parameter would allow me to configure it once via alias and forget about it.
Right now I'm using this workaround:
[[ -x ./gradlew ]] && ./gradlew "$@" || gw "$@"
Which uses raw gradlew
when it's present.
- Pros: Zsh completion works!
- Cons: It only works in the root project folder
+1 It would be nice to have the option to not pollute console output. It's confusing to have stderr messages when running gw --quiet
BTW you can easily just fork gdub to remove this output. This is what I did here: https://github.com/svermeulen/gdub
https://github.com/gdubw/gng/releases/tag/v1.0.2 fixed this issue.