You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "stephen mallette (JIRA)" <ji...@apache.org> on 2016/04/07 22:03:25 UTC

[jira] [Commented] (TINKERPOP-1226) Gremlin Console should :clear automagically after "Display stack trace."

    [ https://issues.apache.org/jira/browse/TINKERPOP-1226?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15230956#comment-15230956 ] 

stephen mallette commented on TINKERPOP-1226:
---------------------------------------------

I'd be OK with this I think. Of course, I do tend to do this sometimes:

{code}
gremlin> 1 +
gremlin> x
No such property: x for class: groovysh_evaluate
Display stack trace? [yN] n
gremlin> 1
==>2
{code}

If we auto-cleared the buffer, I'd have to re-enter my stuff rather than just recover. Of course, I could just up-arrow the history to get it back i suppose.

I tend to do this too:

{code}
gremlin> 1 + 
gremlin> x
No such property: x for class: groovysh_evaluate
Display stack trace? [yN] n
gremlin> :d
 000> 1 + 
gremlin> 1
==>2
{code}

{{:d}} inspects the buffer so you can see what the heck you have hanging around in there. I guess these are not things that new users would know about though.....

> Gremlin Console should :clear automagically after "Display stack trace."
> ------------------------------------------------------------------------
>
>                 Key: TINKERPOP-1226
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-1226
>             Project: TinkerPop
>          Issue Type: Improvement
>          Components: console
>    Affects Versions: 3.1.1-incubating
>            Reporter: Marko A. Rodriguez
>
> I don't know if this is possible, but Martin brought this up the other day. Why not just automatically call {{:clear}} after an Exception has been through to get the Console back into an orderly state.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)