cider

lein ring server with nrepl doesn't honour cider-nrepl

时光怂恿深爱的人放手 提交于 2019-12-06 02:12:00
问题 When I start up my current project with lein ring server and try to connect to it from Emacs via cider, I get the following warning: ; CIDER 0.8.2 (Java 1.7.0_51, Clojure 1.6.0, nREPL 0.2.6) WARNING: The following required nREPL ops are not supported: apropos classpath complete eldoc info inspect-start inspect-refresh inspect-pop inspect-push inspect-reset macroexpand ns-list ns-vars resource stacktrace toggle-trace-var toggle-trace-ns undef Please, install (or update) cider-nrepl 0.8.2 and

clojure: profiles.clj not getting honored in some projects when using cider

柔情痞子 提交于 2019-12-05 20:21:01
I'm facing the same issue that is mentioned in the last comment in https://stackoverflow.com/a/25401281/4329629 (by Yu Shen) I don't know why adding :plugins [[cider/cider-nrepl "0.7.0"]] at ~/.lein/profiles.clj does not work. But the same expression: :plugins [[cider/cider-nrepl "0.7.0"]] at the project.clj of my project worked as expected. Till now i thought that all my projects were behaving this way, but today i found something different. Maybe a hint to what is going wrong? The 2 projects that behave differently have the following structure: ==================== project-1/project.clj

New console window when developing in the repl

混江龙づ霸主 提交于 2019-12-05 06:48:52
问题 If I'm developing, let's say, a console text editor, how could I call a new console frame from the lein repl? (or any repl) If it's called (main "file.txt") from the repl it would be 'popped' a new console window with the the file.txt content where I could edit. 来源: https://stackoverflow.com/questions/40961962/new-console-window-when-developing-in-the-repl

lein ring server with nrepl doesn't honour cider-nrepl

你离开我真会死。 提交于 2019-12-04 07:51:10
When I start up my current project with lein ring server and try to connect to it from Emacs via cider, I get the following warning: ; CIDER 0.8.2 (Java 1.7.0_51, Clojure 1.6.0, nREPL 0.2.6) WARNING: The following required nREPL ops are not supported: apropos classpath complete eldoc info inspect-start inspect-refresh inspect-pop inspect-push inspect-reset macroexpand ns-list ns-vars resource stacktrace toggle-trace-var toggle-trace-ns undef Please, install (or update) cider-nrepl 0.8.2 and restart CIDER user> However, I do have a dependency for [cider/cider-nrepl "0.8.2"] in my project.clj .

New console window when developing in the repl

不羁岁月 提交于 2019-12-03 21:33:46
If I'm developing, let's say, a console text editor, how could I call a new console frame from the lein repl? (or any repl) If it's called (main "file.txt") from the repl it would be 'popped' a new console window with the the file.txt content where I could edit. 来源: https://stackoverflow.com/questions/40961962/new-console-window-when-developing-in-the-repl

How to clear the REPL in cider-mode?

僤鯓⒐⒋嵵緔 提交于 2019-12-03 03:53:23
I am not meaning cleaning up the text output of REPL; I mean cleaning up all evaluated results in REPL. During developing, repeatedly C-c C-q and C-c M-j is low efficiency. UPDATE There may be some bad debug behaviour of mine. I am not sure how other people develop progs with CIDER, but I really need the functionality mentioned above. I guess other developers also encounter same problems as mine. For example, at the top of a clojure prog unit, I use declare to declare a function foo , which is used by another function bar , and foo is implemented after bar . Then, I C-c C-k , etc, and the prog

Installation of cider-nrepl

血红的双手。 提交于 2019-11-29 11:09:10
问题 I've installed CIDER 0.7.0 and now when I start it inside of Emacs (via M-x cider-jack-in RET ), I get the following warning: WARNING: CIDER's version (0.7.0) does not match cider-nrepl's version (not installed) I've downloaded cider-nrepl and found out that it consists of closure code, not emacs lisp code. Since I've started exploring Clojure world just today, and there is no installation instructions on the project page, could you tell me how can I install cider-nrepl? 回答1: You need to put

Why can't I print from background threads in Clojure Cider REPL in emacs?

醉酒当歌 提交于 2019-11-28 07:50:26
If I try to evaluate the following code in my emacs cider-repl, nil is returned, as expected, but none of the printing takes place in the repl buffer or console. How can I make this print out as intended? (dotimes [i 5] (.start (Thread. (fn [] (Thread/sleep (rand 500)) (println (format "Finished %d on %s" i (Thread/currentThread))))))) ;=> nil This works fine, however: (println (format "Finished 1 on %s" (Thread/currentThread))) ;=> Finished 1 on Thread[nREPL-worker-18,5,main] ----------- mini-buffer ----------------- nil The behavior of println is to use a dynamically bound var called *out*

Why can't I print from background threads in Clojure Cider REPL in emacs?

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-27 02:00:10
问题 If I try to evaluate the following code in my emacs cider-repl, nil is returned, as expected, but none of the printing takes place in the repl buffer or console. How can I make this print out as intended? (dotimes [i 5] (.start (Thread. (fn [] (Thread/sleep (rand 500)) (println (format "Finished %d on %s" i (Thread/currentThread))))))) ;=> nil This works fine, however: (println (format "Finished 1 on %s" (Thread/currentThread))) ;=> Finished 1 on Thread[nREPL-worker-18,5,main] -----------