No diagnostics, and documentColor/codeLens never answered, when the workspace folder is null (Windows, 0.3.20)
メンテナーはふだん 1 日以内に返信
関連するプルリクエストがすでにマージされています。
- #801 @renkun-ken による — マージ済み
評価
調査の方向性
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
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
REditorSupport/languageserver のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
REditorSupport/languageserver#731 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
confirmed
難易度 3/5 1〜2日 初心者へのやさしさ 65/100
REditorSupport/languageserver#771 · コメント 5 件 ·
メンテナーはふだん 1 日以内に返信
-
needs information
難易度 3/5 1〜2日 初心者へのやさしさ 42/100
REditorSupport/languageserver#703 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
REditorSupport/languageserver#697 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
REditorSupport/languageserver#691 ·
メンテナーはふだん 1 日以内に返信
REditorSupport/languageserver の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
Open-Systems-Pharmacology/OSPSuite.Core#3049 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
NovoNordisk-OpenSource/mighty#88 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
petal-code/helios#174 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
-
beginner-task
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
Rdatatable/data.table#7948 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信