Occasionally, the wrong REPL type is selected.
還沒有人認領這個 Issue。
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 45/100
- Issue 類型
- 缺陷
- 描述清晰度
- 基本清楚
- 活躍度
- 停滯
- 技術堆疊
- clojure, emacs, emacs-lisp
研究方向
從 inf-clojure.el 中第 297 行附近的 inf-clojure--detect-repl-type 開始,檢查 inf-clojure--process-response 和 inf-clojure--process-reponse-match-p 如何處理空白結果。在本機重設 inf-clojure-repl-type 後,透過 process-activity logging 重現問題,然後確認偵測不會選取錯誤的 REPL 類型,並確認 eldoc 輸出正確使用選取的類型。
由索引模型根據 Issue 內容生成。
描述
Occasionally, inf-clojure will select the wrong REPL type. The problem appears to start here at inf-clojure--detect-repl-type: https://github.com/clojure-emacs/inf-clojure/blob/master/inf-clojure.el#L297
I added debug messages around inf-clojure--process-reponse-match-p ( https://github.com/clojure-emacs/inf-clojure/blob/master/inf-clojure.el#L1277) and it looks like what is happening is that one of the calls to inf-clojure--process-response, to check if a certain namespace, like planck.repl, is available, will return a blank string, and then the corresponding type will be selected because it isn't nil.
The most obvious symptom of this issue is that the eldoc output will either be absent or show part of an error message. I added a message to print out the type as soon as it was selected, but you can also see it calling the wrong functions if you follow the instructions for logging process activity here: https://github.com/clojure-emacs/inf-clojure#log-process-activity.
To test this, I had to M-: (setq-local inf-clojure-repl-type nil) RET in the buffer that I was testing in order for inf-clojure to reattempt to determine the REPL type.
Initially, I thought I could reproduce the problem by evaluating the buffer after the REPL starts, but before triggering eldoc (by moving the cursor inside an expression), but I haven't been able to trigger the issue consistently (only about 3 out of 25 attempts).
- 主要語言
- Emacs Lisp
- 星號
- 260
- 分支
- 43
- PR 合併指標
- 30 天內沒有已合併 PR
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
clojure-emacs/inf-clojure 的其他 Issue
-
bug
難度 3/5 1-2 天 新手友好度 45/100
clojure-emacs/inf-clojure#216 · 4 則留言 ·
-
難度 4/5 3-5 天 新手友好度 35/100
clojure-emacs/inf-clojure#121 · 6 則留言 ·
-
Multiple repls未關閉
難度 4/5 3-5 天 新手友好度 35/100
clojure-emacs/inf-clojure#118 · 5 則留言 ·
-
Implement ANSI filtering in process responses可能重新可做 @charignon 於 2859 天前認領,目前沒有進行中的 PR。 未關閉help wanted
難度 3/5 1-2 天 新手友好度 35/100
clojure-emacs/inf-clojure#91 · 4 則留言 · 1 個 reaction ·
-
難度 4/5 3-5 天 新手友好度 25/100
clojure-emacs/inf-clojure#47 · 6 則留言 ·
查看 clojure-emacs/inf-clojure 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 62/100
維護者通常 1 天內回覆
-
InterfaceMemberImpliedModifier: records and annotation types nested in interfaces are not checked未關閉
難度 2/5 1-3 小時 新手友好度 72/100
checkstyle/checkstyle#23007 ·
維護者通常 1 天內回覆
-
難度 1/5 1 小時以內 新手友好度 72/100
pathintegral-institute/mcpm.sh#568 ·
維護者通常 21 天內回覆
-
難度 2/5 1-3 小時 新手友好度 62/100
headroomlabs-ai/headroom#4992 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 62/100
betaflight/betaflight-configurator#5812 ·
維護者通常 1 天內回覆