-
-
Notifications
You must be signed in to change notification settings - Fork 139
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
Eval behaving differently than cpp
and friends with Piggieback
#220
Comments
You can check |
It seems to be sending back an vector of two maps: the first one contains the Either way, it seems the |
I've tracked it down to the repl message being too long for the browser to handle, which led me to this line: https://github.com/tpope/vim-fireplace/blob/master/plugin/fireplace.vim#L917 How is it that padding the form with newlines and spaces makes it the innermost form to be evaluated? Removing the beginning/trailing newlines before sending the eval op fixes the issue for |
The whitespace padding is clever trick to fix the line numbers in stack traces, a technique I've since seen endorsed by Chas himself. I'm confused why this is an issue for the browser. Is it using a GET request for a clearly not safe/idempotent action? |
Clever! That makes sense. It seems the code to be eval-ed never even makes it to the browser. I can't recreate this using the stock ClojureScript browser REPL, so it's gotta be an issue in Weasel itself. I'm closing this issue and directing my efforts that way. Thanks for helping me track it down. |
I seem to be having the same issue, however this is with the stock ClojureScript (v0.0-3308) browser REPL.
@jgdavey Were you able to resolve your issue? Which version of the cljs browser repl were you successfully using |
Btw, Chas no longer endorses this and we dropped it from CIDER. See clojure-emacs/cider#1088 |
I am hitting this too and also happen to have a boot setup. This seems to happen with
|
Any news? |
This one is going to be hard to replicate without my specific setup, because I'm trying to update some of the tooling around
boot
and the ClojureScript repl with weasel, so I've got a bunch of WIP jars.I'm in a
.cljs
file, with an active Piggieback/weasel connection.:Eval
andcq
work as expected, butcp
does not. I'm not sure how to pull more information out of the error here, but when Icpp
a form, I get:As you can see, there is neither an
ex
nor avalue
in the response. I am using cider-nrepl, and bleeding edge versions of everything. However, I'm surprised by the differing behavior.Any clue on how to debug this better?
The text was updated successfully, but these errors were encountered: