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/02/16 14:34:18 UTC

[jira] [Updated] (TINKERPOP-1155) gremlin.sh -e doesn't log line numbers for errors

     [ https://issues.apache.org/jira/browse/TINKERPOP-1155?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

stephen mallette updated TINKERPOP-1155:
----------------------------------------
    Affects Version/s: 3.1.1-incubating

> gremlin.sh -e doesn't log line numbers for errors
> -------------------------------------------------
>
>                 Key: TINKERPOP-1155
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-1155
>             Project: TinkerPop
>          Issue Type: Improvement
>          Components: console
>    Affects Versions: 3.1.1-incubating
>            Reporter: Ariel Weisberg
>            Priority: Minor
>
> Execute a script containing the following code
> {noformat}
> import org.apache.tinkerpop.gremlin.tinkergraph.structure.*
> graph = TinkerGraph.open()
> graph.noexist()
> {noformat}
> The error is as follows with no line number from the script.
> {noformat}
> $ ./gremlin.sh -e test.groovy 
> javax.script.ScriptException: groovy.lang.MissingMethodException: No signature of method: org.apache.tinkerpop.gremlin.tinkergraph.structure.TinkerGraph.noexist() is applicable for argument types: () values: []
> Possible solutions: notify(), wait(), collect()
> {noformat}
> It would be really nice to get a line number from the script for the error message.
> Some bugs do generate line numbers. Those seem to be certain kinds of syntax exrrors.
> {noformat}
> import org.apache.tinkerpop.gremlin.tinkergraph.structure.*
> graph = TinkerGraph.open()
> graph.noexist(
> {noformat}
> Output
> {noformat}
> $ ./gremlin.sh -e test.groovy 
> org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
> Script1.groovy: 4: unexpected token:  @ line 4, column 1.
> 1 error
> {noformat}



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