Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-6201

groovysh hangs on Edit command when using terminal editor (vim, nano, etc.) on posix terminals

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1.4
    • 2.1.6, 2.2.0-beta-1
    • Groovysh
    • None
    • ubuntu 12.04 64 bit, os x snow leopard

    Description

      I would love to make more use of groovysh from linux, and would be happy to submit a patch if a someone will point me in the right direction.

      No matter what combinations of environment or editor setting I try, groovysh will hang on the Edit command (edit or \e) if I use a terminal based editor like vim.

      Steps to reproduce:
      1. Use ubuntu or os x, I suspect any posix environment
      2. set your EDITOR environment variable to vim, pico, nano, emacs, or any terminal-based editor
      3. launch groovysh
      4. (optional) populate a buffer with a groovy command
      5. launch the edit command with 'edit'
      7. notice that groovysh hangs
      8. in a separate terminal, you can verify the correct editor is launched in a separate process ($ps aux | grep vi), but there's no way to bring it to the foreground
      9. Use Ctrl-C to abort groovysh, which also kills the orphaned editor process

      If groovysh would support terminal-based editors it'd be my REPL of choice. . I prefer keyboard over mouse, which is why I would prefer groovysh to groovyConsole.

      Thanks for any pointers!

      Attachments

        Activity

          People

            pschumacher Pascal Schumacher
            larryj Larry Jacobson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: