You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have exactly the same issue as described in #204
(node:9785) UnhandledPromiseRejectionWarning: Error: ENOTDIR: not a directory, unlink '.jscpd/statistic'
at Object.unlinkSync (fs.js:951:3)
at Function.rimrafSync [as sync] (/Users/me/project/node_modules/rimraf/rimraf.js:306:17)
at new LevelDbStore (/Users/me/project/node_modules/jscpd/build/stores/leveldb.js:13:30)
at StoreManager.create (/Users/me/project/node_modules/jscpd/build/stores/stores-manager.js:98:33)
at StoreManager.getStore (/Users/me/project/node_modules/jscpd/build/stores/stores-manager.js:75:18)
at StatisticListener.saveStatistic (/Users/me/project/node_modules/jscpd/build/listeners/statistic.js:83:56)
at StatisticListener.matchSource (/Users/me/project/node_modules/jscpd/build/listeners/statistic.js:80:14)
at JscpdEventEmitter.emit (/Users/me/project/node_modules/eventemitter3/index.js:181:35)
at /Users/me/project/node_modules/jscpd/build/jscpd.js:313:48
at Array.map (<anonymous>)
To Reproduce
Create a completely new project
Run jscpd src (or jscpd .)
Expected behavior
I would expect to not see a unhandled rejection warning and that the program exists with exit code 1.
Desktop (please complete the following information):
OS: macOS
OS Version: 10.14.4
NodeJS Version: 10
jscpd version: 2.0.13
The text was updated successfully, but these errors were encountered:
Describe the bug
I have exactly the same issue as described in #204
To Reproduce
jscpd src
(orjscpd .
)Expected behavior
I would expect to not see a unhandled rejection warning and that the program exists with exit code
1
.Desktop (please complete the following information):
2.0.13
The text was updated successfully, but these errors were encountered: