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

No diagnostics, and documentColor/codeLens never answered, when the workspace folder is null (Windows, 0.3.20)

クローズ
#794 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

関連するプルリクエストがすでにマージされています。

  • #801 @renkun-ken による — マージ済み

評価

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

調査の方向性

Start by tracing the task completion callback and the path_has_parent check named in the error log, then compare how it handles a null rootPath with a workspace folder present. Reproduce with a saved .R file in a window without a folder and check diagnostics, textDocument/documentColor, and textDocument/codeLens; done when all respond without the callback error.

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

説明

Claude reports: on Windows with R 4.6.1 and languageserver 0.3.20, using the Sublime Text LSP client, I opened a saved .R file in a window with no folder (rootUri and rootPath are null). Hover and completion work. No diagnostics ever arrive, and textDocument/documentColor and textDocument/codeLens get no reply.

With r.lsp.debug: true the log shows:

task completion callback error: <simpleError in if (path_has_parent(self$rootPath, temp_root) || !path_has_parent(path_from_uri(uri), temp_root)) {...}: missing value where TRUE/FALSE needed>

Opening the same file in a window with a folder, or adding a folder and restarting the server, makes it work.

Possibly related: #460, #279.

主要言語
R
スター
679
フォーク
119
平均マージ
1日 15時間
マージ済み PR(30日)
33

環境構築

Codespaces で開く

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

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

はじめの一歩

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

REditorSupport/languageserver のほかの issue

REditorSupport/languageserver の issue をすべて見る

似ている issue

R の issue をもっと見る

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

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