Skip to content

Commit

Permalink
Merge branch '3.7-dev' into TINKERPOP-3070
Browse files Browse the repository at this point in the history
  • Loading branch information
kenhuuu authored Feb 8, 2025
2 parents 7441973 + a439f81 commit 4753ba7
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ image::https://raw.githubusercontent.com/apache/tinkerpop/master/docs/static/ima
* Added `unexpected-response` handler to `ws` for `gremlin-javascript`
* Fixed bug in `TinkerTransactionGraph` where a read-only transaction may leave elements trapped in a "zombie transaction".
* Fixed bug in `gremlin.sh` where it couldn't accept a directory name containing spaces.
* Fixed issue in `gremlin-console` where it couldn't accept plugin files that included empty lines or invalid plugin names.
[[release-3-7-3]]
=== TinkerPop 3.7.3 (October 23, 2024)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,10 +151,15 @@ class Console {
// if there are active plugins then initialize them in the order that they are listed
activePlugins.each { pluginName ->
def pluggedIn = mediator.availablePlugins[pluginName]
pluggedIn.activate()

if (!io.quiet)
io.out.println(Colorizer.render(Preferences.infoColor, "plugin activated: " + pluggedIn.getPlugin().getName()))
if (pluggedIn != null) {
pluggedIn.activate()

if (!io.quiet)
io.out.println(Colorizer.render(Preferences.infoColor, "plugin activated: " + pluggedIn.getPlugin().getName()))
} else if (!io.quiet) {
io.out.println(Colorizer.render(Preferences.infoColor, "invalid plugin: " + pluginName))
}
}

// remove any "uninstalled" plugins from plugin state as it means they were installed, activated, but not
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ import org.apache.tinkerpop.gremlin.jsr223.console.RemoteAcceptor

import java.util.concurrent.atomic.AtomicBoolean

import org.apache.commons.lang3.StringUtils

/**
* @author Stephen Mallette (http://stephen.genoprime.com)
*/
Expand Down Expand Up @@ -104,7 +106,7 @@ class Mediator {

static def readPluginState() {
def file = new File(ConsoleFs.PLUGIN_CONFIG_FILE)
return file.exists() ? file.readLines() : []
return file.exists() ? file.readLines().findAll { StringUtils.isNotEmpty(it) } : []
}

def void close() {
Expand Down

0 comments on commit 4753ba7

Please sign in to comment.