Fork me on GitHub
#cider
<
2019-11-21
>
macrobartfast01:11:37

I asked a cider/luminus question in #clojurescript if anyone has time to look at it... basically an issue where the routes are not reloading when changed (the swagger-ui page will unexpectedly stop reflecting changes).

macrobartfast01:11:00

I wasn't sure which channel to ask it in.

futuro01:11:16

I’d assume luminus.

futuro01:11:55

Depending on how routes are defined, reloading may be complicated, and not controlled by cider.

dpsutton02:11:18

I’m not aware of anything in clojure much less cider that would require them to reload. You could look into tools namespace and do the reloaded workflow or just require reload the namespaces with routes in them yourself

manuel07:11:34

@dpsutton just want to say that turning on cider-company-enable-fuzzy-completion fixed the company completion I was talking about. So, once again, thank you @bozhidar and the CIDER team for another great (and documented!) feature. 🙂

Karol Wójcik09:11:34

Does anyone experience the issue which causes the $ to move to the end line (which is the last paren)? 1L (some-call) <-- here the cursor goes while it should be on (some call)_HERE Previously $ was moving the cursor to the 1 character after the last sign on the line. (edited)

keymone13:11:17

@karol.wojcik your config is missing (setq evil-move-beyond-eol t) ?

dpsutton13:11:21

@manuel its good that that fixed it but that shouldn't be required

fappy18:11:07

If I’ve dropped into the debugger at a breakpoint, should I be able to instrument another (additional) function? When I try this, it says Sync nREPL request timed out

fappy19:11:37

(The reason I can’t just instrument that second function before hitting the breakpoint is because the code is dynamically loading the clj file that contains that function)

macrobartfast20:11:08

@dpsutton thanks (once again) for great information... I'll look into the reloaded workflow; I think I tried what you are suggesting in reloading the namespace by evaluating (cider-load-buffer) all of services.clj (and even home.clj) in emacs, but it didn't do the trick.

dpsutton20:11:41

try (require :reload)

macrobartfast20:11:13

hmm... (require myapp.routes.services :reload) throws `Caused by java.lang.ClassNotFoundException myapp.routes.services`

macrobartfast20:11:40

I tried it in the repl and also as a statement inside services.clj.

dpsutton20:11:01

quote your namespace. require takes symbols

dpsutton20:11:19

(require ' :reload)

macrobartfast20:11:10

ah, ok! that didn't make the modified/added endpoints in services.clj appear on the swagger-ui page, but good to know about the quoting.