Fork me on GitHub
#cider
<
2018-10-05
>
bozhidar04:10:15

@dumrat I’ve never used neotree, so I have no idea. 🙂

bozhidar04:10:01

@richiardiandrea Can you be more specific?

bozhidar04:10:53

I guess you want fdef font-locked as a special form/macro and whatever comes after it as a function name, right?

dpsutton04:10:22

I think anything with def in it's name is special case

bozhidar04:10:40

Not really. 🙂

bozhidar04:10:51

Imagine default-something. 😉

bozhidar04:10:46

Right now it’s a special case - there’s some regexp checking for forms starting with def-something, but we plan to remove this because of the false positives here and there.

bozhidar04:10:00

But to answer the original question - yeah, that’s very possible, although I’m not certain we should be using the same font-locking as for definitions.

bozhidar04:10:23

(because those aren’t exactly definitions)

bozhidar04:10:57

maybe def and fdef should be with the def face and whatever is after them should just be font-locked a keyword (green this in this example) and as a function in the second example?.

richiardiandrea04:10:29

Yes I was talking about s/fdef specifically sorry... I guess I am ok to leave white the symbol after it..it is a symbol after all.

richiardiandrea04:10:02

Ok I will try to work out the code

orestis06:10:18

@dumrat @bozhidar yes, I saw the exact same thing with neotree. A cider pop up will give you at least 10 new splits. Completely funky.

bozhidar08:10:39

That’s one weird package interaction.

orestis10:10:17

I have my CIDER/Figwheel-main terminology confused. I successfully (awesome!) jacked in to a Clojure REPL and a Figwheel-main CLJS repl. Everything works very nicely so far — but: I exited the CLJS repl by typing :cljs/quit and now I’m in the figwheel.main “parent” repl. How do I start again a CLJS repl and connect CIDER to it?

orestis10:10:16

If I try to do cider-connect-cljs, I eventually get:

user> ExceptionInfo A build with id "dev" is already running.  clojure.core/ex-info (core.clj:4739)

orestis10:10:32

That is of course, because a build with the same id is indeed running.

orestis10:10:40

I ended up killing my REPL and starting it again.

orestis10:10:39

Also I’m not sure what (if anything) should I put in my deps.edn. I don’t suppose CIDER injects anything figwheel related, right?

bhauman12:10:39

@orestis you should be able to restart the REPL with (figwheel.main/start "dev")

bhauman12:10:19

hmmm that might not work

bhauman12:10:55

you could also try (require 'figwheel.main.api) (figwheel.main.api/cljs-repl "dev")

orestis12:10:07

I’ll give it a shot. The rationale for this was that I changed my build settings slightly and wanted to restart the build, which is possible via the REPL, but not within the CLJS repl AFAICT?

ag22:10:12

in project with project.clj and deps.edn what do I need to set up, so it wouldn’t ask me again on jack-in lein or clojure-cli?

ag22:10:54

I’m setting cider-jack-in-default to 'lein - that ain’t helping

ag22:10:16

it still prompts me

ag22:10:22

Nevermind! I guess I have found it: it is cider-preferred-build-tool