cli-kit icon indicating copy to clipboard operation
cli-kit copied to clipboard

create-astro new lines after directy is not empty error

Open Dezaku opened this issue 1 year ago • 7 comments

Astro Info

Its a create-astro bug, but I'm gonna send my system informations since I'm using the Windows Command Line.
Windows 11
Version 22H2
Build 22621.2428

If this issue only occurs in one browser, which browser is a problem?

/

Describe the Bug

When doing npm create astro@latest and giving the input ./ as directory when the one you are in is not empty, it will give you an error "directory is not empty". When then typing some other characters, there will always be a new line created, if you first delete a character after the error and then type some new ones, there won't be new lines created.

What's the expected result?

Just staying on the same line without creating new ones

Link to Minimal Reproducible Example

create-astro bug

Participation

  • [ ] I am willing to submit a pull request for this issue.

Dezaku avatar Oct 22 '23 20:10 Dezaku

Oh wow, good catch!

https://github.com/withastro/astro/assets/69170106/6072b984-7340-49ad-ad8d-6a0f4783c504

lilnasy avatar Oct 24 '23 23:10 lilnasy

I tried replicating this issue on my machine (macbook air m2 on sonoma) and didn't have this issue.

jacobdalamb avatar Dec 05 '23 19:12 jacobdalamb

I am realising it isn't clear what keys I pressed to get that output so I'll write it out here:

. / <Enter> <Enter> e m p <Backspace> p t y ...

lilnasy avatar Dec 05 '23 20:12 lilnasy

Ohh. Okay

jacobdalamb avatar Dec 05 '23 20:12 jacobdalamb

Should this be reported to https://github.com/natemoo-re/clack instead?

bluwy avatar Dec 29 '23 09:12 bluwy

If we used clack, it could. 🤯

lilnasy avatar Dec 29 '23 13:12 lilnasy

Ah no we don't use clack, got a brainfart moment 😅 The UI looked very similar. We use https://github.com/withastro/cli-kit instead so maybe it's an issue there.

bluwy avatar Dec 29 '23 13:12 bluwy