Sloc error with newest docker-node container
- Dominant language
- CoffeeScript
- Stars
- 972
- Forks
- 80
- PR merge metrics
- No merged PRs in 30d
Description
After a docker node update sloc seems to have the following problem:
```
$ sloc --details --format cli-table --keys total,source,comment js/*.js
/usr/local/lib/node_modules/sloc/node_modules/cli-table/lib/utils.js:85
var split = stripped.split("\n");
^
TypeError: stripped.split is not a function
at Object.exports.strlen (/usr/local/lib/node_modules/sloc/node_modules/cli-table/lib/utils.js:85:24)
at get_width (/usr/local/lib/node_modules/sloc/node_modules/cli-table/lib/index.js:138:70)
at /usr/local/lib/node_modules/sloc/node_modules/cli-table/lib/index.js:131:68
at Array.forEach ()
at extractColumnWidths (/usr/local/lib/node_modules/sloc/node_modules/cli-table/lib/index.js:130:9)
at /usr/local/lib/node_modules/sloc/node_modules/cli-table/lib/index.js:104:11
at Array.forEach ()
at Table.toString (/usr/local/lib/node_modules/sloc/node_modules/cli-table/lib/index.js:101:16)
at module.exports (/usr/local/lib/node_modules/sloc/lib/formatters/cli-table.js:56:18)
at print (/usr/local/lib/node_modules/sloc/lib/cli.js:95:11)
Node.js v17.0.1
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the command with the newest docker-node image and Node.js v17. Start at lib/formatters/cli-table.js:56 and lib/cli.js:95, then inspect the cli-table stack trace in node_modules. Done means the reported command completes and prints its table output without the TypeError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, nodejs
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100