-
-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use of (in-ns) evals on BufEnter in nrepl connections #372
Comments
@pinealan Thanks for your suggestion! I've tried to use But I only checked it a year ago, so we should check it again. |
@pinealan Sorry for late action. I re-enabled using |
@pinealan Hi! If you have a time, could you try eval-ns-parameter-again branch? |
@liquidz sorry for the delay and thanks for the update! The branch works perfectly for me on Vimr 0.35 + Neovim 0.5.1 + nREPL 0.8.3 on both JVM clojure and figwheel-main. |
@pinealan Thanks for your confirmation! |
By my uneducated guessed, the evaluation of
(in-ns <name-space>)
on the BufEnter hook is necessary for connections to socket repls to provide a smooth experience for when user initiatedeval
commands are triggered. However is it necessary for nREPL connections too?With nREPL, it seems an
:ns
parameter can accompany the:eval
op achieve the same development experience without flooding the repl with evaluations of (in-ns).My motivation for raising this issue is that the
in-ns
evals are messing with other nREPL tools, reveal in particular in my usecase.I believe a naive implementation would be to
:ns
key to the op map iniced#nrepl#eval#code
usingiced#nrepl#ns#name_by_buf
iced#nrepl#ns#in
iniced#nrepl#auto#bufenter
Does anyone else have the same issue? Would this change break other workflows? What would be a better way to do this?
The text was updated successfully, but these errors were encountered: