dkackman / chia-repl

A REPL tool for Chia
Apache License 2.0
22 stars 4 forks source link

[BUG] RuntimeError: abort(Error: ENOENT: no such file or directory ...) when trying `.connect` #30

Closed kimsk closed 1 year ago

kimsk commented 1 year ago

Describe the bug When trying to .connect, I got an error below and program exits:

[Error: ENOENT: no such file or directory, scandir '/Users/karlkim/.chia-repl/scripts'] {
  errno: -2,
  code: 'ENOENT',
  syscall: 'scandir',
  path: '/Users/karlkim/.chia-repl/scripts'
}
/opt/homebrew/lib/node_modules/chia-repl/node_modules/@chiamine/bls-signatures/blsjs.js:11
if(ia)w=v?require("path").dirname(w)+"/":__dirname+"/",ka=function(a,b){na||(na=require("fs"));oa||(oa=require("path"));a=oa.normalize(a);return na.readFileSync(a,b?null:"utf8")},ma=function(a){a=ka(a,!0);a.buffer||(a=new Uint8Array(a));assert(a.buffer);return a},1<process.argv.length&&(fa=process.argv[1].replace(/\\/g,"/")),process.argv.slice(2),process.on("uncaughtException",function(a){throw a;}),process.on("unhandledRejection",x),h.inspect=function(){return"[Emscripten Module object]"};else if(ja)"undefined"!=
                                                                                                                                                                                                                                                                                                                                                                                                        ^

RuntimeError: abort(Error: ENOENT: no such file or directory, scandir '/Users/karlkim/.chia-repl/scripts'). Build with -s ASSERTIONS=1 for more info.
    at process.x (/opt/homebrew/lib/node_modules/chia-repl/node_modules/@chiamine/bls-signatures/blsjs.js:20:96)
    at process.emit (node:events:525:35)
    at process.emit (node:domain:489:12)
    at emit (node:internal/process/promises:140:20)
    at processPromiseRejections (node:internal/process/promises:274:27)
    at processTicksAndRejections (node:internal/process/task_queues:97:32)

To Reproduce Steps to reproduce the behavior:

  1. run .connect
  2. see run-time error and program exits.

Expected behavior Be able to connect to Chia RPC.

Screenshots

image

Desktop (please complete the following information):

Additional context This works on 0.13.0.

image
dkackman commented 1 year ago

yup. for sure a bug. fix incoming.

In the meantime if you create this folder it'll work /Users/karlkim/.chia-repl/scripts

dkackman commented 1 year ago

try chia-repl@0.16.0