Fork me on GitHub
#cider
<
2018-06-11
>
bozhidar05:06:41

@theeternalpulse Yeah, it has to be on your classpath and shadow will leverage it properly.

bozhidar06:06:40

@richiardiandrea I just checked in src and everything there seems correct to me. If you’re referring to the extra clojure dir, that’s because nREPL still has a bit of Java code under src/java. I’ll likely drop the Java code at some point.

richiardiandrea06:06:39

Oh ok got it, I was updating Shadow's namespaces today and I thought the error was due to that. Rather haste conclusion actually. Will report back.

robert-stuttaford07:06:01

How do I alter the host list shown by cider-connect? for some reason it won’t include ‘localhost’ until i’ve actually opened a connection to localhost once while Emacs is open. i’ve grepped all over the place to try find a history file, to no avail. it seems to be inferring a bunch of hosts from my ~/.ssh/config too

theeternalpulse14:06:39

I think it looks down the path, and for lein looks at greps the process for the port and host

theeternalpulse14:06:02

I had a pr to include additional paths, but I don't think it covered all the bases.

mattly20:06:18

so I'm having an issue where when I do cider-load-buffer everything seems to work fine – it'll even print stuff to the repl buffer and whatnot

mattly20:06:57

but for any given form when I try to eval it I get Namespace not found

mattly20:06:28

in the Messages buffer; nothing shows up anywhere else

mattly20:06:57

any ideas?

dpsutton20:06:00

what do you mean eval? do you mean typing a form in at the repl and evalling, or using the commands to eval last sexp in a code buffer?

mattly20:06:11

sorry, the latter; evaling from a buffer

dpsutton20:06:31

cljc/ cljs/ clj?

dpsutton20:06:02

and how many projects do you have open? just the one?

mattly20:06:37

clj ; I've never gotten cljs working with cider

mattly20:06:39

despite trying

dpsutton20:06:45

oh bummer. sorry about that

mattly20:06:48

I have a few projects open, though this is the only one connected

mattly20:06:01

it's ok, I can't get cljs working anywhere else either

dpsutton20:06:16

can you try m-x nrepl-toggle-message-logging? It will show you the messages going back and forth

dpsutton20:06:26

can look at those to see if there are any clues

dpsutton20:06:32

it will make a Messages buffer for you

mattly20:06:53

sure, thanks

mattly20:06:17

ok I think I figured it out

dpsutton20:06:50

what's the issue?

mattly20:06:01

so for my dev profile in lein, I've got a source dir env/dev/src:` :source-paths ["env/dev/src"]`

mattly20:06:36

the file at env/dev/src/sketch.clj has (ns sketch but cider was thinking it was supposed to be (ns dev.src.sketch

mattly20:06:53

changing it to that and reloading the buffer made it happy

mattly20:06:11

really I should just be doing this type of exploratory work in org+babel

mattly20:06:21

but I haven't gotten that working quite right either

dpsutton20:06:59

that seems weird. I don't think CIDER expects stuff like that. I thought that's classpath stuff

dpsutton20:06:07

but i'm not sure. I get real hazy on those details

mattly20:06:12

yeah I'm not really sure on that either

mattly20:06:32

I understand just enough of this stuff to cargo cult bits and pieces

dpsutton20:06:51

welcome to the club

mattly20:06:05

story of my career 😄

richiardiandrea22:06:01

does anybody knows why the following keys are not defined in my repl?

(with-eval-after-load "cider-repl-mode"
  (define-key cider-repl-mode-map (kbd "C-c r f") 'ar-emacs-cljs-figwheel-main-repl)
  (define-key cider-repl-mode-map (kbd "C-c r n") 'ar-emacs-cljs-node-repl)
  (define-key cider-repl-mode-map (kbd "C-c r p") 'ar-emacs-cljs-piggieback-node-repl)
  (define-key cider-repl-mode-map (kbd "C-c r b") 'ar-emacs-cljs-boot-repl)
  (define-key cider-repl-mode-map (kbd "C-c r s") 'ar-emacs-cljs-shadow-select-repl))

richiardiandrea22:06:07

I need cider-repl there, which is the "namespace" of the file