danielgtaylor / danielgtaylor/nesh
Error Running nesh --plugins or --enable or --disable
- Dominant language
- CoffeeScript
- Stars
- 284
- Forks
- 23
- PR merge metrics
- No merged PRs in 30d
Description
Installed nesh using
`npm install -g nesh`
Warnings were returned, but no errors
Running `nesh --plugins` returns the following error:
`$ nesh --plugins
/data/data/com.termux/files/usr/lib/node_modules/nesh/lib/nesh.js:173 return callback("Could not find plugin '" + name + "': " + e + "!");
^
RangeError: Maximum call stack size exceeded
at Object.nesh.loadPlugin (/data/data/com.termux/files/usr/lib/node_modules/nesh/lib/nesh.js:173:68)
at /data/data/com.termux/files/usr/lib/node_modules/nesh/lib/plugins/autoload.js:61:21 at exports.setup (/data/data/com.termux/files/usr/lib/node_modules/nesh/lib/plugins/autoload.js:74:9) at callPluginMethod (/data/data/com.termux/files/usr/lib/node_modules/nesh/lib/nesh.js:70:14)
at Object.nesh.loadPlugin (/data/data/com.termux/files/usr/lib/node_modules/nesh/lib/nesh.js:185:14)
at /data/data/com.termux/files/usr/lib/node_modules/nesh/lib/plugins/autoload.js:61:21 at exports.setup (/data/data/com.termux/files/usr/lib/node_modules/nesh/lib/plugins/autoload.js:74:9) at callPluginMethod (/data/data/com.termux/files/usr/lib/node_modules/nesh/lib/nesh.js:70:14)
at Object.nesh.loadPlugin (/data/data/com.termux/files/usr/lib/node_modules/nesh/lib/nesh.js:185:14)
at /data/data/com.termux/files/usr/lib/node_modules/nesh/lib/plugins/autoload.js:61:21 $`
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the failure with `nesh --plugins`, and also check the `--enable` and `--disable` commands named in the title. Start at `lib/nesh.js` lines 173 and 185, then inspect `lib/plugins/autoload.js` lines 61 and 74 to trace the recursive plugin loading. Done means these commands no longer produce a maximum call stack error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- coffeescript, node.js
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100