-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
create-astro: Even if installation of dependencies fails, still prints Dependencies installed #8990
Comments
Thanks for looking into it! |
Still digging through the code. It looks like
So, gotta look into it. Wrt to this suggestion:
Let me know if you want to proceed with it, of course with proper print outs. |
Would it retry installation? I think it would be fine to defer it to the user to do it manually afterwards. In general, more ambiguous messaging would be better. We don't really know if it is slow/severed internet connection, or if its the server, the package manager, the OS, and the code to determine that info might be a bit much. |
Gotcha. Then it will be easier, I'm updating https://github.com/withastro/cli-kit |
@lilnasy fixed with #8993 - this PR depends on withastro/cli-kit#25 ✨ |
Closing as fixed by #9048. |
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
While running
create-astro
CLI on slow/bad network you can end up in Timeout error, but current implementation ofspinner
doesn't handle failed cases and will always print success message, even if error was shown.This results in this confusing behaviour:
spinner
call fromdependencies.ts
file:Maybe it would be nice to handle such edge cases like slow internet, cause I think for my bad internet { cwd, timeout: 90_000, stdio: 'ignore' } timeout of 90s was not enough.
Also, maybe you could use your
isOnline
function every time before doing any network request, just to confirm that the user still has the internet.What's the expected result?
If due to my internet speed or internet connection interruption I was not able to install dependencies it should result in error.
Could also print something like
"Ah, oh, your internet connection is gone."
"Do you want to retry installing dependencies?"
Basically handling this edge case properly.
Link to Minimal Reproducible Example
N/A - CLI issue
Participation
The text was updated successfully, but these errors were encountered: