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

[minor bug] First time adonis repl throws ENOENT #642

Closed
corysimmons opened this issue Sep 13, 2017 · 2 comments
Closed

[minor bug] First time adonis repl throws ENOENT #642

corysimmons opened this issue Sep 13, 2017 · 2 comments

Comments

@corysimmons
Copy link

$ adonis repl                                                                                                                             2662ms  

Wed Sep 13 18:44:21 2017
> { Error: ENOENT: no such file or directory, stat '/Users/cory/.adonis_repl_history'
    at Object.fs.statSync (fs.js:954:11)
    at Repl._readHistoryFile (/usr/local/lib/node_modules/@adonisjs/cli/src/Commands/Repl/index.js:57:10)
    at Repl.handle (/usr/local/lib/node_modules/@adonisjs/cli/src/Commands/Repl/index.js:108:10)
    at Function.exec (/Users/cory/Desktop/Work/Worky/lister/node_modules/@adonisjs/ace/src/Command/index.js:553:28)
    at Function.commanderAction (/Users/cory/Desktop/Work/Worky/lister/node_modules/@adonisjs/ace/src/Command/index.js:534:17)
    at Command.listener (/Users/cory/Desktop/Work/Worky/lister/node_modules/commander/index.js:300:8)
    at emitTwo (events.js:125:13)
    at Command.emit (events.js:213:7)
    at Command.parseArgs (/Users/cory/Desktop/Work/Worky/lister/node_modules/commander/index.js:635:12)
    at Command.parse (/Users/cory/Desktop/Work/Worky/lister/node_modules/commander/index.js:457:21)
  errno: -2,
  code: 'ENOENT',
  syscall: 'stat',
  path: '/Users/cory/.adonis_repl_history' }

Can't read it because it doesn't exist yet. Running adonis repl again doesn't throw (so it created the file).

To fix, fs.stat ~/.adonis_repl_history and touch it if need be.

@corysimmons corysimmons changed the title First time adonis repl throws ENOENT [minor bug] First time adonis repl throws ENOENT Sep 13, 2017
RomainLanz added a commit to RomainForks/adonis-cli that referenced this issue Sep 14, 2017
@RomainLanz
Copy link
Member

Hey @corysimmons 👋

Thanks for your report!
The error will be fixed in the next release.

@lock
Copy link

lock bot commented Mar 11, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Mar 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants