terminal: fall back when a cwd_provider result names no folder (E475 today)

オープン 初心者向け
#599 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
88/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
lua, neovim
領域
devtools

調査の方向性

terminal.lua の build_config から始め、cwd の処理を cwd.resolve と比較します。次に tests/integration/terminal_cwd_spec.lua と README のルールを読みます。provider の無効な結果の場合に、まず静的な cwd、次に git root にフォールバックするケースを追加し、README を更新します。統合テストが通り、文書化されたルールが動作と一致したら完了です。

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

説明

needs-triage

The terminal fails with E475 when a cwd_provider result names no folder, instead of falling back like cwd.resolve does.

Defect. When a cwd_provider returns text that names no existing folder after vim.fn.expand, terminal.lua build_config passes it on, and the terminal fails with E475 ("expected valid directory"). cwd.resolve drops such a value and tries the static cwd, then the git root. Main behaves this way; #569 did not change it.

Reproduction. Set terminal = { cwd_provider = function() return "/no/such/folder" end } and open the terminal.

Planned fix. Make build_config fall through to the static cwd and then the git root, as cwd.resolve does. This changes behavior, so update the README rule and add cases to tests/integration/terminal_cwd_spec.lua.

Owner: the next change to terminal.lua's cwd handling. Deferred from the README verification run with the maintainer's agreement.


Generated with xum • Model: anthropic:claude-opus-5-5 • Thinking: high

主要言語
Lua
スター
3.2k
フォーク
223
平均マージ
7時間 18分
マージ済み PR(30日)
234

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

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

coder/claudecode.nvim のほかの issue

coder/claudecode.nvim の issue をすべて見る

似ている issue

Lua の issue をもっと見る

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

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