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

Can't create a project #9

Open
ile opened this issue Apr 28, 2024 · 4 comments
Open

Can't create a project #9

ile opened this issue Apr 28, 2024 · 4 comments

Comments

@ile
Copy link

ile commented Apr 28, 2024

It doesn't seem to accept any name.

ile@ilepc:~/src/sc2$ eg new testi1
> Project must contains only:
  - at least 5 characters
  - lower case type of name
  - project name may contain '_' and '-' characters.
Please re-enter the project name.
? Project Name: testi1
> Project must contains only:
  - at least 5 characters
  - lower case type of name
  - project name may contain '_' and '-' characters.
Please re-enter the project name.
? Project Name: testi1
> Project must contains only:
  - at least 5 characters
  - lower case type of name
  - project name may contain '_' and '-' characters.
Please re-enter the project name.
? Project Name: express-app
> Project must contains only:
  - at least 5 characters
  - lower case type of name
  - project name may contain '_' and '-' characters.
Please re-enter the project name.
? Project Name: express-app
> Project must contains only:
  - at least 5 characters
  - lower case type of name
  - project name may contain '_' and '-' characters.
Please re-enter the project name.
? Project Name: tasrt
> Project must contains only:
  - at least 5 characters
  - lower case type of name
  - project name may contain '_' and '-' characters.
Please re-enter the project name.
@the-az-dev
Copy link
Contributor

the-az-dev commented Apr 28, 2024

It looks like regexp bugged when you try to create name! I'll check it and make a bug fix if it exist!

Thanks for reporting!

@the-az-dev
Copy link
Contributor

the-az-dev commented Apr 28, 2024

It doesn't seem to accept any name.

ile@ilepc:~/src/sc2$ eg new testi1
> Project must contains only:
  - at least 5 characters
  - lower case type of name
  - project name may contain '_' and '-' characters.
Please re-enter the project name.

As you can see in your project name you add number, in our ProjectName Validator we don't add accepting number for the reason of rules which NodeJS Developers write as a not recommended option. So after so many tries validator crushed and this crash made our package not workable in your PC. Try to re-install our package and try to create project again!)

@ile
Copy link
Author

ile commented Apr 28, 2024

There is a bug here:

ile@ilepc:~/src/sc2$ eg new express-app6
> Project must contains only:
  - at least 5 characters
  - lower case type of name
  - project name may contain '_' and '-' characters.
Please re-enter the project name.
? Project Name: sdfsdfsdfsdf
> Project must contains only:
  - at least 5 characters
  - lower case type of name
  - project name may contain '_' and '-' characters.
Please re-enter the project name.
? Project Name: (express-app) 

... it doesn't accept any name after one invalid try. See "sdfsdfsdfsdf" - it didn't accept that, but it should.

If I do Ctrl-C and try again from the command line (with a valid name), it works.

@the-az-dev
Copy link
Contributor

Sorry for long delay 😢

Yeah, you were right! This is massive bug, made by me, im sorry! Ill learn this problem and make a pull request to fix it!)

Thank you for reporting the problem!)

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

2 participants