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

stephen mallette commented on TINKERPOP-1178:
---------------------------------------------

how would the console know that it was the end of your command? maybe you were 
going to do:

{code}
gremlin> g.V().has('name','mum)
gremlin> bles')
{code}

I don't know anyone with the name "mum)bles" but it's a conceivable search 
term. :)

> A simple syntax error breaks the console (groovy console 2.4.5, gremlin 
> console 3.1.1)
> --------------------------------------------------------------------------------------
>
>                 Key: TINKERPOP-1178
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-1178
>             Project: TinkerPop
>          Issue Type: Bug
>          Components: console
>    Affects Versions: 3.1.1-incubating
>         Environment: ubuntu
>            Reporter: Francesco Animali
>
> This sequence of commands will break the console:
> graph = TinkerGraph.open();
> mum = graph.addVertex(T.label, "person", T.id, 1, "name", "mum")
> g = graph.traversal(standard())
> g.V.has('name','mum) <<<<<< SINGLE QUOTE MISSING. THIS WILL BREAK THE 
> CONSOLE. NEXT THING YOU TRY TO DO:
> gremlin> g.V
> groovysh_parse: 2: expecting ''', found '\n' @ line 2, column 21.
>    g.V.has('name','mum)
>                        ^
> 1 error



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

Reply via email to