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

CLI Windows quickstart quits after selecting archetype if user.name contains whitespace #798

Closed
edbratt opened this issue Oct 7, 2022 · 2 comments
Assignees
Labels
2.x Applies to the 2.x branch 3.x bug Something isn't working cli
Milestone

Comments

@edbratt
Copy link
Member

edbratt commented Oct 7, 2022

Common on Windows systems, user name is FIRST\bLAST (\b is space). If this is the setting for user.name, the CLI will bail out after you select the Archetype with (using my user ID: 'Ed Bratt'
error: default.package.name in C:\Users\Ed Bratt\.helidon\config does not resolve to a valid package name: me.Ed Bratt.mp.quickstart
I suspect the problem is Ed Bratt in the package name string.
I could get around this by substituting FirstLast into the impacted property settings:
default.group.id default.artifact.id
If possible, this action would be best deferred until after the user had a chance to enter substitute defaults (as occurs when the script continues to completion). Otherwise, the property might need to be modified by removing white-space or substituting underscores.

I wasn't able to substitute user.name as a command-line option (that could have been pilot error)

@romain-grecourt
Copy link
Contributor

romain-grecourt commented Oct 8, 2022

We should sanitize user.name, that's a proper bug.

You can work around this in different ways:

  • update default.package.name in ~/.helidon/config
  • pass --package com.example to the init command

@romain-grecourt romain-grecourt added bug Something isn't working cli 2.x Applies to the 2.x branch 3.x labels Oct 8, 2022
@romain-grecourt romain-grecourt added this to the 3.0.1 milestone Oct 8, 2022
@tvallin
Copy link
Member

tvallin commented Nov 11, 2022

Closed by #810 and #811

@tvallin tvallin closed this as completed Nov 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.x Applies to the 2.x branch 3.x bug Something isn't working cli
Projects
None yet
Development

No branches or pull requests

3 participants