Occasionally, the wrong REPL type is selected.
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 45/100
- Issue-Typ
- Bug
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Veraltet
- Tech-Stack
- clojure, emacs, emacs-lisp
- Bereich
- developer-experience, tooling
Rechercherichtung
Beginne in inf-clojure.el bei inf-clojure--detect-repl-type ungefähr in Zeile 297 und untersuche, wie inf-clojure--process-response und inf-clojure--process-reponse-match-p mit leeren Ergebnissen umgehen. Reproduziere das Problem mit process-activity logging, nachdem du inf-clojure-repl-type lokal zurückgesetzt hast, und überprüfe anschließend, dass die Erkennung nicht den falschen REPL-Typ auswählt und dass die eldoc-Ausgabe den ausgewählten Typ korrekt verwendet.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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).
- Vorherrschende Sprache
- Emacs Lisp
- Sterne
- 260
- Forks
- 43
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus clojure-emacs/inf-clojure
-
bug
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 45/100
clojure-emacs/inf-clojure#216 · 4 Kommentare ·
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 35/100
clojure-emacs/inf-clojure#121 · 6 Kommentare ·
-
Multiple replsOffen
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 35/100
clojure-emacs/inf-clojure#118 · 5 Kommentare ·
-
Implement ANSI filtering in process responsesEvtl. wieder frei @charignon hat das vor 2859 Tagen übernommen, und es ist kein Pull Request offen. Offenhelp wanted
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 35/100
clojure-emacs/inf-clojure#91 · 4 Kommentare · 1 Reaktion ·
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 25/100
clojure-emacs/inf-clojure#47 · 6 Kommentare ·
Alle Issues in clojure-emacs/inf-clojure
Ähnliche Issues
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 88/100
py-econometrics/pyfixest#2114 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Verify the Linux Python quick start from a fresh Ubuntu checkoutEvtl. vergeben @romanv9 hat das heute übernommen. Offendocumentation good first issue help wanted
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
R0Y00/Xbox2Windows#652 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
documentation good first issue
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
Haseeb-MernStack/commune#138 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 62/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
clojure-emacs/cider#4235 ·
Maintainer antworten meist innerhalb von 1 Tag