cli-kit
cli-kit copied to clipboard
create-astro new lines after directy is not empty error
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.
Oh wow, good catch!
https://github.com/withastro/astro/assets/69170106/6072b984-7340-49ad-ad8d-6a0f4783c504
I tried replicating this issue on my machine (macbook air m2 on sonoma) and didn't have this issue.
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
...
Ohh. Okay
Should this be reported to https://github.com/natemoo-re/clack instead?
If we used clack, it could. 🤯
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.