[MacPorts] #26701: sbt @0.7.4 gives a "[error] Could not parse command: (1, 1): Expected identifier"
MacPorts
noreply at macports.org
Sun Oct 3 05:37:46 PDT 2010
#26701: sbt @0.7.4 gives a "[error] Could not parse command: (1,1): Expected
identifier"
---------------------------------------------+------------------------------
Reporter: alessandro_mecca@… | Owner: me@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 1.9.1
Keywords: | Port: sbt
---------------------------------------------+------------------------------
Comment(by lists@…):
I will change the launcher script and bump the Portfile revision number.
I am not able to re-create the problem you or Alessandro reported. Most of
my test systems (8) match your bash version.
Are you passing any arguments to the sbt script?
Do you have and JAVA_OPTS set when you get the error?
Do you have any unusual shell options set in your .bashrc or
.bash_profile?
Replying to [comment:2 toby.matejovsky@…]:
> I had the same problem on OS X 10.6.4 GNU bash, version
3.2.48(1)-release (x86_64-apple-darwin10.0)
>
> The 0.7.4 jar file from MacPorts is the exact same one as from the
Google Code page (sha1: 2b7cfadf05b3b26285bb2038145479741268d334).
>
> The problem is something with the $QUOTED_ARGS in the sbt script. If you
remove that part and substitute "$@" (with quotes) for $QUOTED_ARGS (as
recommended in the SBT project page), the sbt script works. Patch:
>
> {{{
> #!diff
> 20,26d19
> < # Capture any arguments
> < QUOTED_ARGS=""
> < while [ "$1" != "" ] ; do
> < QUOTED_ARGS="$QUOTED_ARGS \"$1\""
> < shift
> < done
> <
> 33c26
> < exec java $JAVA_OPTS -jar "$LAUNCHJAR" $QUOTED_ARGS
> ---
> > exec java $JAVA_OPTS -jar "$LAUNCHJAR" "$@"
> }}}
--
Ticket URL: <https://trac.macports.org/ticket/26701#comment:3>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list