Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to create new file #395

Open
zeg-io opened this issue May 30, 2017 · 1 comment
Open

Failed to create new file #395

zeg-io opened this issue May 30, 2017 · 1 comment
Labels

Comments

@zeg-io
Copy link

zeg-io commented May 30, 2017

I attempted to create and edit a new (currently non-existing) file by using

slap dc-logs.sh

It just crashed with the following...

Fatal Error: ENOENT: no such file or directory, lstat 'dc-logs.sh'
    at Error (native)
    at Object.fs.lstatSync (fs.js:994:11)
    at /usr/lib/node_modules/slap/lib/ui/Slap.js:67:14
    at tryCatcher (/usr/lib/node_modules/slap/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/usr/lib/node_modules/slap/node_modules/bluebird/js/release/promise.js:504:31)
    at Promise._settlePromise (/usr/lib/node_modules/slap/node_modules/bluebird/js/release/promise.js:561:18)
    at Promise._settlePromiseCtx (/usr/lib/node_modules/slap/node_modules/bluebird/js/release/promise.js:598:10)
    at Async._drainQueue (/usr/lib/node_modules/slap/node_modules/bluebird/js/release/async.js:143:Fatal Error: ENOENT: no such file or directory, lstat 'dc-logs.sh'
    at Error (native)
    at Object.fs.lstatSync (fs.js:994:11)
    at /usr/lib/node_modules/slap/lib/ui/Slap.js:67:14
    at tryCatcher (/usr/lib/node_modules/slap/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/usr/lib/node_modules/slap/node_modules/bluebird/js/release/promise.js:504:31)
    at Promise._settlePromise (/usr/lib/node_modules/slap/node_modules/bluebird/js/release/promise.js:561:18)
    at Promise._settlePromiseCtx (/usr/lib/node_modules/slap/node_modules/bluebird/js/release/promise.js:598:10)
    at Async._drainQueue (/usr/lib/node_modules/slap/node_modules/bluebird/js/release/async.js:143:12)
    at Async._drainQueues (/usr/lib/node_modules/slap/node_modules/bluebird/js/release/async.js:148:10)
    at Immediate.Async.drainQueues (/usr/lib/node_modules/slap/node_modules/bluebird/js/release/async.js:17:14)
    at runCallback (timers.js:666:20)
    at tryOnImmediate (timers.js:639:5)
    at processImmediate [as _immediateCallback] (timers.js:611:5)
12)
    at Async._drainQueues (/usr/lib/node_modules/slap/node_modules/bluebird/js/release/async.js:148:10)
    at Immediate.Async.drainQueues (/usr/lib/node_modules/slap/node_modules/bluebird/js/release/async.js:17:14)
    at runCallback (timers.js:666:20)
    at tryOnImmediate (timers.js:639:5)
    at processImmediate [as _immediateCallback] (timers.js:611:5)
@zeg-io
Copy link
Author

zeg-io commented May 30, 2017

I see in the docs that the suggested convention is to just execute the command without a filename, but I submit that entering the filename up front is more intuitive (to me anyhow).

@dbkaplun dbkaplun added the bug label May 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants