Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

PathInput treats existing directory as an ERROR

オープン
#874 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 3 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
java
領域
cli

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

type/enhancement

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()
Screenshot 2023-09-28 165413

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());
  }
主要言語
Java
スター
826
フォーク
405
平均マージ
6日 9時間
マージ済み PR(30日)
1

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

spring-projects/spring-shell のほかの issue

spring-projects/spring-shell の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。