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

Use of undeclared var in REPL window resets the namespace #257

Closed
CheatEx opened this issue Jul 16, 2019 · 2 comments
Closed

Use of undeclared var in REPL window resets the namespace #257

CheatEx opened this issue Jul 16, 2019 · 2 comments

Comments

@CheatEx
Copy link

@CheatEx CheatEx commented Jul 16, 2019

Steps:

  1. Switch any window to any namespace
  2. Evaluate some unknown variable, (fake) for example
  3. Got exception (see below)
  4. Namespace becomes cljs.user

Expected: namespace doesn't change.

Example session

do-stack.tasks-test=> (fake)
core.clj: | 4739 | clojure.core/ex-info
-- | -- | --
core.clj: | 4739 | clojure.core/ex-info
repl.cljc: | 577
repl.cljc: | 498
piggieback.clj: | 208 | cider.piggieback/eval-cljs
piggieback.clj: | 207 | cider.piggieback/eval-cljs
piggieback.clj: | 244 | cider.piggieback/do-eval/fn
AFn.java: | 152 | clojure.lang.AFn/applyToHelper
AFn.java: | 144 | clojure.lang.AFn/applyTo
core.clj: | 657 | clojure.core/apply
core.clj: | 1965 | clojure.core/with-bindings*
core.clj: | 1965 | clojure.core/with-bindings*
RestFn.java: | 425 | clojure.lang.RestFn/invoke
piggieback.clj: | 221 | cider.piggieback/do-eval
piggieback.clj: | 220 | cider.piggieback/do-eval
piggieback.clj: | 267 | cider.piggieback/evaluate
piggieback.clj: | 265 | cider.piggieback/evaluate
Var.java: | 381 | clojure.lang.Var/invoke
piggieback.clj: | 299 | cider.piggieback/wrap-cljs-repl/fn/fn/fn
piggieback.clj: | 191 | cider.piggieback/enqueue/fn
AFn.java: | 22 | clojure.lang.AFn/run
session.clj: | 171 | nrepl.middleware.session/session-exec/main-loop/fn
session.clj: | 170 | nrepl.middleware.session/session-exec/main-loop
AFn.java: | 22 | clojure.lang.AFn/run
Thread.java: | 834 | java.lang.Thread/run
cljs.user=>

@cfehse

This comment has been minimized.

Copy link
Contributor

@cfehse cfehse commented Oct 11, 2019

@CheatEx @PEZ

I can reproduce this behavior. I will take a look at this.

@cfehse cfehse mentioned this issue Oct 11, 2019
6 of 6 tasks complete
@cfehse

This comment has been minimized.

Copy link
Contributor

@cfehse cfehse commented Oct 12, 2019

@CheatEx This issue is fixed in version 2.0.49.

@cfehse cfehse closed this Oct 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.