-
Notifications
You must be signed in to change notification settings - Fork 312
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
Clojure REPL and escape characters in strings #291
Comments
Hi @DjebbZ, Just for reference, the code in question is at https://github.com/wuub/SublimeREPL/blob/master/text_transfer.py#L80 and the commit that introduced it is here 71d0092 I believe @lionandoil added that to allow syntax errors to be thrown immediately, rather than trying to accidentally evaluate a single, incomplete line or selection, i.e. @lionandoil should the sender automatically double-escape the string? In Emacs, Paredit-mode will convert Would implementing that cause other issues? Thanks! |
Heyho, yes I just tried and squeezing a
between the strip() and the other replace() should indeed do the trick. I'm quite busy at the moment so if someone else could make that pull request that'd be grand! |
Yep, I'll take care of it today. Thanks dude! |
Clojure sender now escapes backslashes. Fixes #291
Thanks ! |
Probably this Sunday. Sorry. :( I'm trying to find time to do a release for two weeks now, it takes a LOT |
No problem, SublimeREPL is already super nice like this for a beginner like me. 2 weeks is quick enough :) |
@DjebbZ I'll need one or two more days :) Unfortunately I was not able to do it today :( |
No problem ! You take your contribution very seriously, I really appreciate. I'm not using Clojure nor SublimeREPL in production, so take it easy :) |
Hi, this plugin has been of great help to me, so thank you very much! |
Hi,
First thanks for the plugin. Learning Clojure with it is a delightful experience.
I'm encountering a strange behaviour when I evaluate characters and regexps from my code. When I type
#{\a \b}
in the REPL, it returns itself normally. When I send this same code from my editor to the REPL, it fails with :So I have to double-escape every single characters, as well as special chars from regexps like so
#{\\a \\b}
so I can send them to the REPL from my code.Is this behaviour normal ? To be expected ? A bug ? As I started to learn Clojure (my first Lisp ever) I may not know several things about how code and REPL differ. Any explanations very welcome.
The text was updated successfully, but these errors were encountered: