PathInput treats existing directory as an ERROR
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 45/100
Research direction
Start by locating PathInput.checkPath() and reproduce the behavior described in the issue using the provided promptForPath example. Check how an existing directory is classified and add or update coverage so selecting an existing directory is not presented as an error; done means the directory can be accepted while invalid paths retain appropriate validation.
Written by the indexing model from the issue text.
Description
I have a use case whereby the user should select an existing directory, however they see x Directory exists which looks like an error message. It seems this behavior is hardcoded in PathInput.checkPath()
Observed on 2.1.12
code sample
protected Optional<Path> promptForPath(String prompt) {
PathInput component = new PathInput(getTerminal(), prompt);
component.setResourceLoader(getResourceLoader());
component.setTemplateExecutor(getTemplateExecutor());
return Optional.ofNullable(component.run(PathInputContext.empty()).getResultValue());
}
- Dominant language
- Java
- Stars
- 826
- Forks
- 405
- Avg merge
- 6d 9h
- Merged PRs (30d)
- 1
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from spring-projects/spring-shell
-
Difficulty 3/5 1-2 days Newbie friendliness 72/100
spring-projects/spring-shell#1391 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 65/100
spring-projects/spring-shell#1390 ·
-
type/enhancement
Difficulty 3/5 1-2 days Newbie friendliness 68/100
spring-projects/spring-shell#1383 · 6 comments ·
-
area/dependencies type/enhancement
Difficulty 5/5 Over a week Newbie friendliness 25/100
spring-projects/spring-shell#1213 · 1 reaction ·
-
area/dependencies type/enhancement
Difficulty 5/5 Over a week Newbie friendliness 25/100
spring-projects/spring-shell#1205 · 1 comment ·
All issues in spring-projects/spring-shell
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
aoqia194/leaf-loader#19 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
apache/streampark#4521 ·
-
Update license yearOpen0 - Backlog 1 - Ready documentation good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
cbor
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
FasterXML/jackson-dataformats-binary#844 ·
Maintainers usually reply within 1 day