-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
CLI - incorrect project folder name #46645
Comments
/cc @ebullient (cli), @maxandersen (cli) |
Although it works for full command as- |
Hi @nileshkmahant looking at command and you just using To make your command work you should use |
Exactly what @jedla97 said. There is no way how could Quarkus know from quarkus create && cd my-project that you want to create my-project, I think it never worked, so when you say despite of providing project name in command I think you misjudged what these commands mean. |
I think we can close this issue. although using command -> "quarkus create my-project" creates the project directly but in logs there is a error as follows- Command create-my-project is not available, looking for available plugins ... |
that's actually good catch, I tried it and it does create the project. I think that error message is confusing. Thanks @nileshkmahant |
@ebullient @maxandersen please read #46645 (comment) and confirm it's a bug or maybe refer to someone else who is looking into Quarkus CLI stuff. I think it is bit confusing:
|
@iocanel left over from some bad command detection logging ? |
@michalvavrik your issue looks similar to what I reported in #45922 . |
I'll close this one and link it/comment to #45922 , indeed seems similar; hope @nileshkmahant is ok with it |
It seems that we don't support really well hybrid commands (commands with subcommands that may also run as standalone). I think that what causes the breakage is checking if a plugin is used and if that plugin exists.
|
I am re-openning this, as I am feeling that there are two different issues. |
Describe the bug
When creating a new project with quarks cli version 3.19.2, it is creating project folder name as "code-with-quarkus" despite of providing project name in command.
console command and result below-
(base) nileshmahant@macbook java % quarkus create && cd my-project
Creating an app (default project type, see --help).
Looking for the newly published extensions in registry.quarkus.io
applying codestarts...
📚 java
🔨 maven
📦 quarkus
📝 config-properties
🔧 tooling-dockerfiles
🔧 tooling-maven-wrapper
🚀 rest-codestart
[SUCCESS] ✅ quarkus project has been successfully generated in:
--> /Users/nileshmahant/workspace/java/code-with-quarkus
Navigate into this directory and get started: quarkus dev
cd: no such file or directory: my-project
(base) nileshmahant@macbook java % ls
code-with-quarkus
Expected behavior
No response
Actual behavior
No response
How to Reproduce?
No response
Output of
uname -a
orver
No response
Output of
java -version
No response
Quarkus version or git rev
No response
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
No response
The text was updated successfully, but these errors were encountered: