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

create-astro new lines after directy is not empty error #31

Open
1 task
Dezaku opened this issue Oct 22, 2023 · 7 comments
Open
1 task

create-astro new lines after directy is not empty error #31

Dezaku opened this issue Oct 22, 2023 · 7 comments

Comments

@Dezaku
Copy link

Dezaku commented Oct 22, 2023

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.
@lilnasy
Copy link

lilnasy commented Oct 24, 2023

Oh wow, good catch!

video.mp4

@jacobdalamb
Copy link

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

@lilnasy
Copy link

lilnasy commented Dec 5, 2023

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 ...

@jacobdalamb
Copy link

Ohh. Okay

@bluwy
Copy link
Member

bluwy commented Dec 29, 2023

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

@lilnasy
Copy link

lilnasy commented Dec 29, 2023

If we used clack, it could. 🤯

@bluwy
Copy link
Member

bluwy commented Dec 29, 2023

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.

@matthewp matthewp transferred this issue from withastro/astro Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants