This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-05-26
Channels
- # beginners (91)
- # cider (34)
- # cljsrn (6)
- # clojure (95)
- # clojure-gamedev (4)
- # clojure-serbia (7)
- # clojure-spec (5)
- # clojure-uk (27)
- # clojurescript (42)
- # data-science (1)
- # datascript (2)
- # datomic (4)
- # duct (10)
- # emacs (11)
- # fulcro (21)
- # luminus (3)
- # lumo (24)
- # off-topic (2)
- # other-languages (2)
- # ring (2)
- # shadow-cljs (39)
- # spacemacs (9)
- # tools-deps (2)
I'm using spacemacs org mode with source code blocks. All seems to work fine, except source code blocks of clojurescript: only the first line is evaluated, not the rest.
When starting clojurescript jack-in, a clj repl and cljs repl are started as expected.
1. evaluating multiline clojure works fine (all the results are shown in the #+RESULTS
block)
2. evaluating a single line cljs works fine as well (the result is shown in the #+RESULTS
block)
3. evaluating multiline cljs - only the result of the first line is shown)
Anyone any idea what the problem could be?
#+BEGIN_SRC clojure :results value
4544
\a
"a"
#+END_SRC
#+RESULTS:
: 4544
any idea why only the first line is evaluated?(when using the cljs connection - clj works fine)
When in Evil mode, using cider-eval-last-sexp
is problematic — I always have to move my cursor to the right of the sexp (by adding an extra piece of whitespace). Is there a fix for that?
evil-move-beyond-eol is a variable defined in ‘evil-vars.el’. Its value is t Original value was nil Documentation: Whether the cursor is allowed to move past the last character of a line. You can customize this variable.
I changed to moving the cursor to the next line, then evaluating. I typically have at least one blank line between forms. I also use , e f more often to evaluate without going to end of lie or , e ; to evaluate and return answer as comment.
So this morning, after updating, spacemacs is getting this error:
Warning (initialization): An error occurred while loading ‘/home/mago/.emacs.d/init.el’:
error: Unable to activate package ‘clojure-cheatsheet’.
Required package ‘cider-0.9.0’ is unavailable
To ensure normal operation, you should investigate and remove the
cause of the error in your initialization file. Start Emacs with
the ‘--debug-init’ option to view a complete error backtrace.