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

[Uncaught Promise] uix --init: ENOENT when git is not installed #146

Closed
Tracked by #144
asbng opened this issue Jun 6, 2024 · 0 comments
Closed
Tracked by #144

[Uncaught Promise] uix --init: ENOENT when git is not installed #146

asbng opened this issue Jun 6, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@asbng
Copy link
Member

asbng commented Jun 6, 2024

🕗 Version & Regression Information

UIX v0.2.6

💻 Code

uix --init

🙁 Actual behavior

When git is not installed on the system or not found on the PATH, the following error is thrown:

Uncaught promise: Promise {
  <rejected> NotFound: No such file or directory (os error 2)
    at opRun (ext:runtime/40_process.js:58:10)
    at Object.run (ext:runtime/40_process.js:155:15)
    at initBaseProject (https://cdn.unyt.org/uix/src/utils/init-base-project.ts:28:21)
    at eventLoopTick (ext:core/01_core.js:169:7)
    at async https://cdn.unyt.org/uix/run.ts:39:7 {
    name: "NotFound",
    code: "ENOENT"
  }
}
error: Uncaught (in promise) NotFound: No such file or directory (os error 2)
	const clone = Deno.run({
	                   ^
    at opRun (ext:runtime/40_process.js:58:10)
    at Object.run (ext:runtime/40_process.js:155:15)
    at initBaseProject (https://cdn.unyt.org/uix/src/utils/init-base-project.ts:28:21)
    at eventLoopTick (ext:core/01_core.js:169:7)
    at async https://cdn.unyt.org/uix/run.ts:39:7

🙂 Expected behavior

Error handling according to #144

Additional information about the issue

No response

@asbng asbng added the bug Something isn't working label Jun 6, 2024
@benStre benStre closed this as completed in 2b81d77 Jun 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant