You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "Michael McDermott (JIRA)" <ji...@apache.org> on 2018/02/15 16:38:00 UTC

[jira] [Commented] (TINKERPOP-1788) gremlin.sh does not work correctly under Cygwin

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

Michael McDermott commented on TINKERPOP-1788:
----------------------------------------------

Sorry for the slow response myself. The problem persists. I tried it again this morning on a fresh download of Gremlin Console 3.3.1. The result after unpack is below.

{{> $ ./bin/gremlin.sh}}
{{./bin/gremlin.sh: line 52: lib/caffeine-2.3.1.jar;lib/commons-cli-1.2.jar;lib/commons-codec-1.9.jar;lib/commons-configuration-1.10.jar;lib/commons-lang-2.6.jar;lib/commons-lang3-3.3.1.jar;lib/commons-logging-1.2.jar;lib/exp4j-0.4.8.jar;lib/gbench-0.4.3-groovy-2.4.jar;lib/gprof-0.3.1-groovy-2.4.jar;lib/gremlin-console-3.3.1.jar;lib/gremlin-core-3.3.1.jar;lib/gremlin-driver-3.3.1.jar;lib/gremlin-shaded-3.3.1.jar;lib/groovy-2.4.11.jar;lib/groovy-2.4.11-indy.jar;lib/groovy-console-2.4.11.jar;lib/groovy-groovysh-2.4.11-indy.jar;lib/groovy-json-2.4.11-indy.jar;lib/groovy-jsr223-2.4.11-indy.jar;lib/groovy-sql-2.4.11-indy.jar;lib/groovy-swing-2.4.11.jar;lib/groovy-templates-2.4.11.jar;lib/groovy-xml-2.4.11.jar;lib/hppc-0.7.1.jar;lib/httpclient-4.5.1.jar;lib/httpcore-4.4.3.jar;lib/ivy-2.3.0.jar;lib/javapoet-1.8.0.jar;lib/javatuples-1.2.jar;lib/jbcrypt-0.4.jar;lib/jcabi-log-0.14.jar;lib/jcabi-manifests-1.1.jar;lib/jcl-over-slf4j-1.7.21.jar;lib/jline-2.12.jar;lib/log4j-1.2.17.jar;lib/netty-all-4.0.53.Final.jar;lib/slf4j-api-1.7.21.jar;lib/slf4j-log4j12-1.7.21.jar;lib/snakeyaml-1.15.jar;.: No such file or directory}}

Note that, by comparison, running the batch version works fine.

{{> $ ./bin/gremlin.bat}}

{{         \,,,/}}
{{         (o o)}}
{{-----oOOo-(3)-oOOo-----}}
{{plugin activated: tinkerpop.server}}
{{plugin activated: tinkerpop.utilities}}
{{plugin activated: tinkerpop.tinkergraph}}
{{gremlin>}}

This goes back to the partial patch sent in previously, where the shell script does not make adjustments for Cygwin. That's the reason for the checks against uname there.

 

> gremlin.sh does not work correctly under Cygwin
> -----------------------------------------------
>
>                 Key: TINKERPOP-1788
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-1788
>             Project: TinkerPop
>          Issue Type: Bug
>          Components: console
>    Affects Versions: 3.3.0
>            Reporter: Michael McDermott
>            Priority: Major
>         Attachments: gremlin.sh
>
>
> On my machine (Windows 10), I have a Cygwin setup. Attempting to execute gremlin.sh to launch the console errors out. gremlin.bat under cmd runs fine, so I have the general prerequisites (Java, etc.).
> I have partially patched out the shell script (modified off of 3.3.0 attached) and it no longer errors out (I initially received issues around CP setting and absolute paths). The big issues I identified were inconsistent usage of the separate classpath separator on Cygwin (; vs. :) and that absolute paths need to be translated when running under Cygwin.
> Something is still broken, though, as I cannot use the shell after it starts up (note that this trivial example works fine in cmd):
> {code}
> gremlin> :plugin list
> :plugin list
> ==>tinkerpop.server
> ==>tinkerpop.gephi
> ==>tinkerpop.utilities
> ==>tinkerpop.sugar
> ==>tinkerpop.credentials
> ==>tinkerpop.hadoop
> ==>tinkerpop.tinkergraph
> gremlin>  g = TinkerFactory.createModern()
>  g = TinkerFactory.createModern()
> No such property: TinkerFactory for class: groovysh_evaluate
> Type ':help' or ':h' for help.
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)