groovy
  1. groovy
  2. GROOVY-2584

Can't get groovysh to run in a cygwin xterm under Windows XP.

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.5.2, 1.5.4
    • Fix Version/s: 1.5.5
    • Component/s: Groovysh
    • Labels:
      None
    • Environment:
      Windows XP Professional, SP2. 2G Ram, Pentium E2140. Cygwin GNU bash, version 3.2.33(18)-release (i686-pc-cygwin).
    • Number of attachments :
      0

      Description

      Groovysh loads ok in the xterm. If I attempt to do anything at the groovysh (enter key, help, any command), there is no response. Ctrl-C will exit the groovysh and then the bash shell will attempt to execute the command entered as a shell command.

      I have the readline library installed in cygwin. Behavior was the same whether I used groovy 1.5.4 installed manually from the binary.zip file or whether I used the windows native installer. Groovysh does work properly in a windows cmd.exe window.

        Activity

        Hide
        Paul King added a comment -

        I guess we could increase confidence that 1.5.5 is fixed by trying out 1.6-snapshot. It is also using the updated jline (though it does have other changes):
        http://build.canoo.com/groovy/artifacts/20080229203149/dist

        Show
        Paul King added a comment - I guess we could increase confidence that 1.5.5 is fixed by trying out 1.6-snapshot. It is also using the updated jline (though it does have other changes): http://build.canoo.com/groovy/artifacts/20080229203149/dist
        Hide
        Paul King added a comment -

        I just tried 1.5.5-SNAPSHOT on a second machine that was exhibiting the same issues on 1.5.4. It also seems fixed with 1.5.5-SNAPSHOT. Making as fixed. Please reopen if you can reproduce the problem at a later date.

        Show
        Paul King added a comment - I just tried 1.5.5-SNAPSHOT on a second machine that was exhibiting the same issues on 1.5.4. It also seems fixed with 1.5.5-SNAPSHOT. Making as fixed. Please reopen if you can reproduce the problem at a later date.
        Hide
        Weiqi Gao added a comment -

        I ran across this bug when I researched a similar issue with another JVM language. See my comment on the JLine issue tracker for

        [ 1822900 ] JLine does not work under Cygwin
        http://sourceforge.net/tracker/index.php?func=detail&aid=1822900&group_id=64033&atid=506056

        The following wrapper will make the stock groovy-1.5.4 groovysh shell function somewhat acceptably under Cygwin + xterm:

        #!/bin/bash
        #

        1. Run groovysh with the appropriate terminal setting
          #
          stty -icanon min 1 -echo
          groovysh --terminal=unix
          stty icanon echo
        Show
        Weiqi Gao added a comment - I ran across this bug when I researched a similar issue with another JVM language. See my comment on the JLine issue tracker for [ 1822900 ] JLine does not work under Cygwin http://sourceforge.net/tracker/index.php?func=detail&aid=1822900&group_id=64033&atid=506056 The following wrapper will make the stock groovy-1.5.4 groovysh shell function somewhat acceptably under Cygwin + xterm: #!/bin/bash # Run groovysh with the appropriate terminal setting # stty -icanon min 1 -echo groovysh --terminal=unix stty icanon echo
        Hide
        Kevin Slater added a comment -

        Thanks very much for that work around! I was able to put it in place and it works pretty much perfectly as far as I've been able to test it. (And I learned something for the next time I run into an issue with jline / cygwin.) Now I can use groovysh again until I get a chance to upgrade to the fixed version of Groovy.

        Show
        Kevin Slater added a comment - Thanks very much for that work around! I was able to put it in place and it works pretty much perfectly as far as I've been able to test it. (And I learned something for the next time I run into an issue with jline / cygwin.) Now I can use groovysh again until I get a chance to upgrade to the fixed version of Groovy.
        Hide
        Paul King added a comment -

        I added your great suggestion to the troubleshooting section of the groovysh doco on the wiki.

        Show
        Paul King added a comment - I added your great suggestion to the troubleshooting section of the groovysh doco on the wiki.

          People

          • Assignee:
            Paul King
            Reporter:
            Kevin Slater
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: