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

--old ABP CLI - ERR] 'C:\Users\NAME' is not recognized as an internal or external command #21909

Open
1 task done
tranphita opened this issue Jan 15, 2025 · 1 comment
Open
1 task done
Labels

Comments

@tranphita
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Description

This problem is not new but it is still there in ABP 9 so...

It seems like if you are running new ABP CLI with a Windows user name containing a space like "NAME NAME" it will normally work. However, if you add "--old" parameter it will no longer work but instead give error message

With --old:
M:\Projects\ABP\src>abp new Acme.BookStore3 --old [15:14:51 ERR] 'C:\Users\NAME' is not recognized as an internal or external command, [15:14:51 ERR] operable program or batch file.

Without --old:
M:\Projects\ABP\src>abp new Acme.BookStore3 [15:15:18 INF] You are running the second generation of the ABP CLI. If you're interested in the legacy CLI, see https://abp.io/new-cli [15:15:18 INF] Creating your solution...

I know Windows in general has some problems with spaces in usernames, but sometimes you might not have an option but to have one, so is there a way to make it work besides uninstalling new CLI and installing old one (which does seem to work even though --old does not work)?

Reproduction Steps

No response

Expected behavior

No response

Actual behavior

No response

Regression?

No response

Known Workarounds

No response

Version

0.9.13

User Interface

Common (Default)

Database Provider

EF Core (Default)

Tiered or separate authentication server

None (Default)

Operation System

Windows (Default)

Other information

No response

@tranphita tranphita added the bug label Jan 15, 2025
@EngincanV
Copy link
Member

EngincanV commented Jan 15, 2025

Hi, can you check the old abp cli version with the following command:

abp-old

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants