kookma / TW-Commander

A tiddler toolkit for Tiddlywiki 5. Batch operations on bulk of tiddlers. Create, delete, add fields, tags, search and replace and inspect tiddlers.
https://kookma.github.io/TW-Commander/
49 stars 6 forks source link

Boot Issue #3

Closed joshcsullivan closed 5 years ago

joshcsullivan commented 5 years ago

Hello,

I installed Commander and it was working great. I had to restart the server it was installed on and now I get this error when I try to start TW:

Error executing boot module $:/plugins/kookma/commander/macro/snr/regexpsub.js: {}

$:/plugins/kookma/commander/macro/snr/regexpsub.js:43
  } catch { return "ERROR IN REG EXPRESSION. YOU MAY NEED TO ESCAPE VALUES"; }
          ^

SyntaxError: Unexpected token {
    at createScript (vm.js:80:10)
    at Object.runInNewContext (vm.js:135:10)
    at Object.$tw.utils.evalSandboxed (/usr/local/lib/node_modules/tiddlywiki/boot/boot.js:456:5)
    at Object.$tw.modules.execute (/usr/local/lib/node_modules/tiddlywiki/boot/boot.js:732:15)
    at /usr/local/lib/node_modules/tiddlywiki/boot/boot.js:772:30
    at Object.$tw.utils.each (/usr/local/lib/node_modules/tiddlywiki/boot/boot.js:78:12)
    at Object.$tw.modules.forEachModuleOfType (/usr/local/lib/node_modules/tiddlywiki/boot/boot.js:771:12)
    at Object.$tw.modules.getModulesByTypeAsHashmap (/usr/local/lib/node_modules/tiddlywiki/boot/boot.js:782:14)
    at Object.exports.startup ($:/core/modules/startup/load-modules.js:31:27)
    at Object.$tw.boot.executeNextStartupTask (/usr/local/lib/node_modules/tiddlywiki/boot/boot.js:2110:10)

Unfortunately, I cannot even get TW started due to this issue, and therefore cannot uninstall Commander or install a new version. Is there a way to fix this without going back to a previous snapshot of the server?

Thanks, Josh