groovy
  1. groovy
  2. GROOVY-6073

Fixes and improvements for Groovysh

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.2
    • Fix Version/s: 2.2.0-beta-1
    • Component/s: Groovysh
    • Labels:
      None
    • Patch Submitted:
      Yes
    • Number of attachments :
      0

      Description

      Reference: https://github.com/groovy/groovy-core/pull/150

      The commits include:

      • Code style refactorings (few)
      • Completion does not print out exception traces
      • Exceptions on evaluation displayed shorter ( 2b4a96d )
      • Arrays pretty-printed, contents being shown ( 1e8eef6 )
      • Completion works in cases where it did not work before
      • Completion is now safe (before, completion would evaluate the line start, which could have side effects).
      • More things can be completed (Custom classes, closures, keywords)
        proper completion for static vars, interface fields, superclass members, instance members
      • Autoindentation after opened curly braces, by 2 space, when "autoindent" preference is set (528de9e ), avoiding the problem of pasting already-indented code blocks.
      • Splitting this up into smaller pull requests is possible, but much more effort for me.

      What is missing is the completion of things like:

      foo ( (1 == 2).
      Foo.bar().
      

      Where it is difficult to identify partial groovy expressions. I have ideas for this, butnone seems ideal.

      Also keyword completion may suggest keywords where the syntax would not allow them, but still I think it is a win.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            CÚdric Champeau
            Reporter:
            Pascal Schumacher
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: