-
-
Notifications
You must be signed in to change notification settings - Fork 225
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 rewrite-clj breaks REPL #1188
Comments
Thanks for reporting. Unfortunately, I cannot reproduce this issue. I created a new project with (require '[rewrite-clj.zip :as z])
(z/of-string "[1 2]")
(def x 1) Could it be something about the argument you're passing to |
I believe this was a false alarm. In short, Or chalk this one up to user error, either works. |
Oh I see.
If you evaluate forms from a source file you'll see the form that was evaluated highlighted. I recommend using rich comments over evaluating things at the prompt in the output window, such as is mentioned here: https://calva.io/try-first/ I do see what you mean though about it being potentially confusing for newcomers if the current form evaluation is used. In this example below, if I evaluate clj꞉core꞉>
(def hello "world")
"world" We have multiple options here that I see:
I think the best decision is either number 1 or we change nothing. I'll close this now, but I do want to know @PEZ's thoughts on the above. If a change is deemed appropriate we'll create a new issue for it. |
I discovered that trying to follow the rewrite-clj tutorial breaks my REPL, and I was able to reproduce it on another computer.
Steps to reproduce.
lein new
a project.add a dependency on rewrite clj to the
project.clj
. I used[rewrite-clj "1.0.644-alpha"]
lein deps
.launch calva REPL, with the leiningen option.
(require '[rewrite-clj.zip :as z])
in the REPL, and then follow it withz/of-string
.Now try to define a variable, or much of anything.
def
seems return it's last argument instead, I can't(def some-string "It's a string, Jim")
and then evalsome-string
without it erroring aboutsome-string
not being defined.I file this bug here, cause the same steps behave as expected in the
lein repl
.The text was updated successfully, but these errors were encountered: