Fork me on GitHub
#cider
<
2016-03-24
>
steven_t13:03:13

hi, can someone help me with a wrong namespace in my Emacs / Clojure? I'd like clojure-update-ns to put the correct ns in. I run leiningen 2.6.1, SpaceMacs and am trying some code in an new empty project created with lein new app

steven_t13:03:25

I open a new file in src/app/main.clj and add (ns bla), run clojure-update-ns and get: (ns ......Repositories.clojure.myapp2.src.myapp2.main)

benedek14:03:08

there is a recently accepted PR in cider which might help you out: https://github.com/clojure-emacs/clojure-mode/issues/372

steven_t14:03:00

thx for the tip. I am not sure if this is what happens for me.

steven_t14:03:39

In the test project I have there is no setting for source-paths. I use the default src/myapp/

benedek15:03:49

I guess the point here that if you use the new stuff in cider it actually uses the classpath to figure out the ns (you need to be connected to a REPL with cider tho)

benedek15:03:33

weird tho as obviously you use lein and clojure-mode basically uses project.clj to figure out where the project root is

steven_t15:03:42

I will try at home on my MBp to see if it behaves the same. And I will try a stock emacs

fommil20:03:17

does cider have anything like https://github.com/franks42/clj-ns-browser built in?

fommil20:03:32

i.e. an Emacs-only way to browse docs of my depenencies

harold20:03:51

There's C-c C-d C-d, but you probably know about that (and that's at the symbol level, too).

adamkowalski20:03:52

does the cider debugger work fine with evil-mode?

adamkowalski20:03:19

I am entering the debugger, and when I press n or c or q nothing seems to happen, whether I am in normal or insert mode

fommil20:03:20

oh dear, I ran C-x C-e on a block of code that will never terminate. Any way to stop it except M-x cider-restart?

rmuslimov20:03:41

C-c C-b should fix the problem

arrdem22:03:41

Is there a CIDER keybind for evaluating the top level form the point is in?

arrdem22:03:41

I don't want to be continually moving my point to cider-eval-last-sexpr

arrdem22:03:36

nice! thanks!

hans23:03:44

@arrdem: that works across emacs for most interactive programming modes