Anyone faced similar mismatch in auto-completion in Emacs? repl vs in-file
https://emacs.stackexchange.com/questions/83374/clojure-mismatch-completion-behaviour
Does this happen in other projects too? In other namespaces? Can you try with LSP disabled?
LSP disabled: it won't complete anything, aside from copilot/windsurf
It happens in every project, currently. I haven't used Clojure in a while, now (1/2 years)
I'm 98% sure this is something with your setup – completion is a base feature and anybody else would notice this too. You having copilot and stuff hints that something may be overriding your regular cider completions.
tree
.
├── deps.edn
└── src
└── ugh_core
└── core.clj
cat deps.edn
{:paths ["src"]
:deps {org.clojure/clojure {:mvn/version "1.11.1"}}
:aliases
{:dev
{:extra-deps {nrepl/nrepl {:mvn/version "1.3.1"}
cider/cider-nrepl {:mvn/version "0.54.0"}
refactor-nrepl/refactor-nrepl {:mvn/version "3.10.0"}}
:main-opts ["-m" "nrepl.cmdline"
"--middleware"
"[refactor-nrepl.middleware/wrap-refactor,cider.nrepl/cider-middleware]"]}}}What happens if you invoke M-x completion-at-point manully?
nothingness. Only message I get in Messages is You can run the command 'completion-at-point' with C-@ [4 times]
Another thing to try out:
• M-x nrepl-toggle-message-logging
• Try to trigger a completion
• Swtich to *nrepl-messages ... buffer and check if the complete op went through
Most likely it won't be there
(-->
id "24"
op "eldoc"
session "33198572-497e-47ed-b8fa-a9a336f55ac4"
time-stamp "2025-04-05 15:18:57.610271040"
context "(__prefix__)"
ns #("ugh-core.core" 0 13 (face font-lock-type-face ws-butler-chg chg help-echo cider--help-echo fontified t))
sym "pp/"
)
(<--
id "24"
session "33198572-497e-47ed-b8fa-a9a336f55ac4"
time-stamp "2025-04-05 15:18:57.612717701"
status ("done" "no-eldoc")
)Seems like can't fint eldoc
Yeah, that's op "eldoc", you need op "complete"
You can try doing completion from the REPL, then you'll see that op in the messages
It's very wierd. When I clojure-mode to refresh the mode, or I start a new folder, I get a non-highlighted text.
I think both things are related somehow
Ok, I removed anything related to codeium, and now it's working; I removed a lot of extra stuff too; anything related to clojure, expect the vanilla setup from doom
It's working now
I still get the white text highlighting when I clojure-mode though, which is still very weird but unrelated, it seems.
Found this other culprit
indent-bars is incompatible with tree-sitter was causing a crash in hook-time, when I called clojure-mode
> If debugging is the process of removing software bugs, then programming must be the process of putting them in
Removing 30% of my packages to make emacs more beautiful must solve like 90% of my problems; If I remove AI nonsense it's 99%. 😂