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

ASF GitHub Bot commented on TINKERPOP-3286:
-------------------------------------------

Cole-Greer commented on code in PR #3810:
URL: https://github.com/apache/tinkerpop/pull/3810#discussion_r4594263258


##########
gremlin-console/src/main/groovy/org/apache/tinkerpop/gremlin/console/Console.groovy:
##########
@@ -110,15 +110,17 @@ class Console {
         GremlinLoader.load()
 
         // check for available plugins on the path and track them by plugin 
class name
-        def activePlugins = Mediator.readPluginState()
         ServiceLoader.load(GremlinPlugin, engine.getClassLoader()).each { 
plugin ->
             if (!mediator.availablePlugins.containsKey(plugin.class.name)) {
                 def pluggedIn = new PluggedIn((GremlinPlugin) plugin, engine, 
false)
                 mediator.availablePlugins.put(plugin.class.name, pluggedIn)
-                pluggedIn.activate()
             }
         }
 
+        // without a plugins.txt, e.g. outside the distribution, every plugin 
found is activated

Review Comment:
   I'm reconsidering this fallback somewhat. The precedent in 3.7/3.8 is that 
no plugins are activated if there is no plugins.txt file. Is there anything 
forcing the need for this auto-activate fallback or is it just to give more 
consistency with the earlier TP4 betas?





> Improve UI for plugin activation in console
> -------------------------------------------
>
>                 Key: TINKERPOP-3286
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-3286
>             Project: TinkerPop
>          Issue Type: Improvement
>          Components: console
>    Affects Versions: 4.0.0
>            Reporter: Ken Hu
>            Priority: Major
>
> {noformat}
> gremlin> :plugin unuse tinkerpop.sugar
> ==>tinkerpop.sugar deactivated - restart your console for this to take effect
> gremlin> :plugin list
> ==>tinkerpop.remote[active]
> ==>tinkerpop.utilities[active]
> ==>tinkerpop.sugar
> ==>tinkerpop.credentials[active]
> ==>tinkerpop.tinkergraph[active]
> {noformat}
>  
> the whole {{[active]}} suffix is a bit confusing especially if you deactivate 
> all of the plugins, they would still show up in the list without the suffix.
> Determine if there is a better way to signal to the user which plugins are 
> active now and which ones are inactive and which ones will be active/inactive 
> after a restart.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to