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 2017/11/20 18:52: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=16259652#comment-16259652 ] 

stephen mallette commented on TINKERPOP-1788:
---------------------------------------------

Not sure why I missed this issue - sorry about that. A fair bit of time has passed since you created this, so I wonder if this is still a problem for you or something you still care about, however from what I can tell, your console is definitely not starting properly as the plugins aren't being loaded. You should see:

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

Specifically, {{TinkerFactory}} isn't present because that {{tinkerpop.tinkergraph}} isn't being loaded, which is why you have to import manually (the plugin takes care of the import for you).  Plugins are activated on startup if they are listed  in this file:

https://github.com/apache/tinkerpop/blob/3.2.6/gremlin-console/src/main/ext/plugins.txt

which should be in the standard TinkerPop distribution of the console when you unzip it.  You can control the location of that {{/ext}} directory by setting {{tinkerpop.ext}}:

https://github.com/apache/tinkerpop/blob/3.2.6/gremlin-console/src/main/bin/gremlin.sh#L95

You could also just do a:

{code}
gremlin> :plugin use tinkerpop.tinkergraph
{code}

and it will then write that file with that activated plugin wherever your `/ext` directory is currently pointing. I assume that it would read from there too. so you could just moves that {{plugins.txt}} file to that spot and that should also solve the issue.

> 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
>         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
(v6.4.14#64029)