denon icon indicating copy to clipboard operation
denon copied to clipboard

No such file or directory (os error 2)

Open slim-hmidi opened this issue 3 years ago • 0 comments

Describe the bug I run denon start and I got this error:

Uncaught (in promise) NotFound: No such file or directory (os error 2)
    return Deno.run(options);
                ^
    at Object.opSync (deno:core/01_core.js:142:12)
    at opRun (deno:runtime/js/40_process.js:27:17)
    at Object.run (deno:runtime/js/40_process.js:114:17)
    at Runner.execute (https://raw.githubusercontent.com/denosaurs/denon/main/src/runner.ts:169:17)
    at Object.exe (https://raw.githubusercontent.com/denosaurs/denon/main/src/runner.ts:45:21)
    at Daemon.start (https://raw.githubusercontent.com/denosaurs/denon/main/src/daemon.ts:66:31)
    at Daemon.iterate (https://raw.githubusercontent.com/denosaurs/denon/main/src/daemon.ts:169:32)
    at iterate.next (<anonymous>)
    at https://raw.githubusercontent.com/denosaurs/denon/main/denon.ts:167:20
   

To Reproduce Steps to reproduce the behavior:

  1. Install deno v1.16.4
  2. Add the file scripts.config.ts:
export { config as env } from "https://deno.land/x/dotenv/mod.ts";
const config = {
  scripts: {
    // same as json configuration
    start: {
      cmd: "deno run --unstable server.ts",
      tsconfig: "tsconfig.json",
      allow: ["env", "read", "net"],
      env: env({ safe: true }),
    },
  },
};

export default config;
  1. Start the server using denon start

Expected behavior The server should be executed successfully.

Setup

  • OS: macOs
  • Deno version: 1.16.4
  • Denon version: 2.5.0

slim-hmidi avatar Apr 29 '22 15:04 slim-hmidi