Skip to content
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

Auto-complete destroys *1 *2 *3 special bindings #5

Open
thheller opened this issue Oct 7, 2019 · 2 comments
Open

Auto-complete destroys *1 *2 *3 special bindings #5

thheller opened this issue Oct 7, 2019 · 2 comments

Comments

@thheller
Copy link

thheller commented Oct 7, 2019

$ clj -Asuitable
2019-10-08 01:06:51.710:INFO::main: Logging initialized @4424ms to org.eclipse.jetty.util.log.StdErrLog
[Figwheel] Compiling build dev to "target/public/cljs-out/dev-main.js"
...
[Rebel readline] Type :repl/help for online help info
Opening URL http://localhost:9500
Failed to open browser: 
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
ClojureScript 1.10.520
cljs.user=> (def x 1)
#'cljs.user/x
cljs.user=> js/document
#object[HTMLDocument [object HTMLDocument]]
cljs.user=> *2
({:name "document", :hierarchy 0, :type "var"})
cljs.user=>

*2 should be the #'cljs.user/x var but isn't if I pressed TAB during js/doc|.

Minor issue but seems like it shouldn't be touching those. Might be possible to get rid of this effect with a custom :wrap-fn. Not currently possible in shadow-cljs though.

@rksm
Copy link
Member

rksm commented Oct 11, 2019

Good point, thanks, I'll look into it.

@bbatsov
Copy link
Member

bbatsov commented Jan 20, 2020

In nREPL you might be able to do the evaluations in a dedicated nREPL sessions potentially. That's how CIDER avoids clobbering results for internal Clojure evaluations. Not sure how easy that'd be with Piggieback, though. Might be another thing worth mentioning in the README.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants