-
Notifications
You must be signed in to change notification settings - Fork 31
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
Connecting to Browser REPL fails with Fireplace #1
Comments
I finally had time to look what's wrong with this. As the error message suggests, Fireplace evals the forms it sends to nREPL by embedding them to '(try (clojure.core/eval ''(do '.a:expr."\n".'))' .
\ ' (catch Exception e' .
\ ' (clojure.core/print (clojure.core/apply clojure.core/str (clojure.core/interleave (clojure.core/repeat "\b") (clojure.core/map clojure.core/str (.getStackTrace e)))))' .
\ ' (throw e)))', ... This can be circumvented by creating a new function to Fireplace that allows the user to send "raw evals". I tested this on my fork of Fireplace and it seems to fix this. So therefore I think this issue can be closed and I will issue a pull request to Fireplace if I can make the fix decent enough. |
Yup, makes sense. This is part of why I started work on a fork of Fireplace (maybe to be merged upstream, maybe not…there may be conflicting goals). Thanks for chasing this down. |
@mharju Ran into this issue too, looking forward to your pull request. |
@yayitswei I've still not been able to allocate more time for doing this. See discussion in tpope/vim-fireplace#83 to see where I'm at now. :) |
Catch up with upstream from cemerick/austin
The Browser REPL fails to evaluate any forms on Fireplace with VIM.
Leiningen 2.2.0 on Java 1.6.0_51 Java HotSpot(TM) 64-Bit Server VM
VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Jul 5 2012 11:32:03)
Fireplace latest available on GitHub
Using the current example project repeat the following steps to reproduce:
Outputs an error:
The text was updated successfully, but these errors were encountered: