Open
Description
I just migrated from gdub to gng and my first attempt to use it caused the following error:
$ gw build
/usr/local/Cellar/jenv/0.5.4/libexec/libexec/jenv-version-file-read: line 17: syntax error near unexpected token `<'
Starting a Gradle Daemon, 1 stopped Daemon could not be reused, use --status for details
FAILURE: Build failed with an exception.
* What went wrong:
Unable to start the daemon process.
This problem might be caused by incorrect configuration of the daemon.
For example, an unrecognized jvm option is used.
Please refer to the user guide chapter on the daemon at https://docs.gradle.org/4.10.3/userguide/gradle_daemon.html
Please read the following process output to find out more:
-----------------------
Unrecognized VM option 'CMSClassUnloadingEnabled'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
To Reproduce
Steps to reproduce the behavior:
- brew install jenv
- brew install gng
- gw build
- see error
More Information
I am able to run the java command directly, so I don't think the error is in jenv itself.
I can also run ./gradlew build and it works correctly.
So the problem seems to be in gng/gw.
- Shell&Version: 3.2.57(1)-release (x86_64-apple-darwin20)
- DEBUG Output:
$ DEBUG=1 gw build
++ export SHELLOPTS
++ readonly 'INFO_COLOR=\033[1;96m'
++ INFO_COLOR='\033[1;96m'
++ readonly 'NO_COLOR=\033[0m'
++ NO_COLOR='\033[0m'
++ readonly 'ERROR_COLOR=\033[0;31m'
++ ERROR_COLOR='\033[0;31m'
++ [[ 1 == 1 ]]
++ trap __errorCallBack__ ERR
+ readonly GRADLEW=gradlew
+ GRADLEW=gradlew
+ declare -a __GNG_CONFIG
++ basename /usr/local/bin/gw
+ readonly SCRIPT_NAME=gw
+ SCRIPT_NAME=gw
+ '[' gng = gw ']'
+ case "${1:-}" in
+ gradle build
+ local gradle
++ select_gradle /Users/USERNAME/Documents/Projects/Production/heimdallr/heimdallr
++ local dir=/Users/USERNAME/Documents/Projects/Production/heimdallr/heimdallr
++ local gradlew
+++ lookup gradlew /Users/USERNAME/Documents/Projects/Production/heimdallr/heimdallr
+++ local file=gradlew
+++ local curr_path=/Users/USERNAME/Documents/Projects/Production/heimdallr/heimdallr
+++ [[ -z /Users/USERNAME/Documents/Projects/Production/heimdallr/heimdallr ]]
+++ [[ /Users/USERNAME/Documents/Projects/Production/heimdallr/heimdallr == \/ ]]
+++ [[ -e /Users/USERNAME/Documents/Projects/Production/heimdallr/heimdallr/gradlew ]]
+++ echo /Users/USERNAME/Documents/Projects/Production/heimdallr/heimdallr/gradlew
+++ break
++ gradlew=/Users/USERNAME/Documents/Projects/Production/heimdallr/heimdallr/gradlew
++ [[ -z /Users/USERNAME/Documents/Projects/Production/heimdallr/heimdallr/gradlew ]]
++ echo /Users/USERNAME/Documents/Projects/Production/heimdallr/heimdallr/gradlew
++ return 0
+ gradle=/Users/USERNAME/Documents/Projects/Production/heimdallr/heimdallr/gradlew
+ debug 'Using gradle at '\''/Users/USERNAME/Documents/Projects/Production/heimdallr/heimdallr/gradlew'\'' to run'
+ [[ 1 == 0 ]]
+ echo -e '\033[1;96mUsing gradle at '\''/Users/USERNAME/Documents/Projects/Production/heimdallr/heimdallr/gradlew'\'' to run\033[0m\n'
Using gradle at '/Users/USERNAME/Documents/Projects/Production/heimdallr/heimdallr/gradlew' to run
++ dirname /Users/USERNAME/Documents/Projects/Production/heimdallr/heimdallr/gradlew
+ load_config /Users/USERNAME/Documents/Projects/Production/heimdallr/heimdallr
+ unset __GNG_CONFIG
+ local curr_path=/Users/USERNAME/Documents/Projects/Production/heimdallr/heimdallr
+ local cfg_file=/Users/USERNAME/Documents/Projects/Production/heimdallr/heimdallr/gradle/gng.cfg
+ '[' -f /Users/USERNAME/Documents/Projects/Production/heimdallr/heimdallr/gradle/gng.cfg ']'
+ readonly __GNG_CONFIG
+ eval 'set +o allexport
set -o braceexpand
set +o emacs
set +o errexit
set +o errtrace
set +o functrace
set -o hashall
set +o histexpand
set +o history
set +o ignoreeof
set -o interactive-comments
set +o keyword
set +o monitor
set +o noclobber
set +o noexec
set +o noglob
set +o nolog
set +o notify
set +o nounset
set +o onecmd
set +o physical
set +o pipefail
set +o posix
set +o privileged
set +o verbose
set +o vi
set +o xtrace
shopt -u cdable_vars
shopt -u cdspell
shopt -u checkhash
shopt -u checkwinsize
shopt -s cmdhist
shopt -u compat31
shopt -u dotglob
shopt -u execfail
shopt -u expand_aliases
shopt -u extdebug
shopt -u extglob
shopt -s extquote
shopt -u failglob
shopt -s force_fignore
shopt -u gnu_errfmt
shopt -u histappend
shopt -u histreedit
shopt -u histverify
shopt -s hostcomplete
shopt -u huponexit
shopt -s interactive_comments
shopt -u lithist
shopt -u login_shell
shopt -u mailwarn
shopt -u no_empty_cmd_completion
shopt -u nocaseglob
shopt -u nocasematch
shopt -u nullglob
shopt -s progcomp
shopt -s promptvars
shopt -u restricted_shell
shopt -u shift_verbose
shopt -s sourcepath
shopt -u xpg_echo'
++ set +o allexport
++ set -o braceexpand
++ set +o emacs
++ set +o errexit
++ set +o errtrace
++ set +o functrace
++ set -o hashall
++ set +o histexpand
++ set +o history
++ set +o ignoreeof
++ set -o interactive-comments
++ set +o keyword
++ set +o monitor
++ set +o noclobber
++ set +o noexec
++ set +o noglob
++ set +o nolog
++ set +o notify
++ set +o nounset
++ set +o onecmd
++ set +o physical
++ set +o pipefail
++ set +o posix
++ set +o privileged
++ set +o verbose
++ set +o vi
++ set +o xtrace
/usr/local/Cellar/jenv/0.5.4/libexec/libexec/jenv-version-file-read: line 17: syntax error near unexpected token `<'
Starting a Gradle Daemon, 1 stopped Daemon could not be reused, use --status for details
FAILURE: Build failed with an exception.