Fork me on GitHub

Is there a way to subtly change the background colour of the form block that the cursor is in? To visually show the scope, if you know what I mean, of the block. As you move the cursor up and down, between forms, the subtle background highlight would change shape. I know, presently, that I rest my cursor on an opening, or closing, parens, it shows it's counterpart, but I'm after showing the entire block.


I've seen something for this, but I don't recall the name


Might be starred, I'll have a look


I've been exploring clojurescript again and was curious if fireplace is able to show documentation for cljs functions and whatnot.


I keep getting error messages like:


Error in phase :compilation Unable to resolve var: special-doc in this context at line 1 cljs/us er.cljs Error detected while processing function <SNR>80_Doc[5]..fireplace#i nfo[39]..fireplace#query[10]..<SNR>80_PlatformDelegate[7]..<SNR>80_E valQuery:


Not sure if I have to do something different or if it's just not an available feature.


It is available


I wonder if it is because I'm starting my nrepl through shadow-cljs? I do have cider/cider-nrepl in my dependencies.


It should work with shadow.


Do you have a cljs/user.cljs file maybe?


does it work in a fresh shadow project?


It was a pretty vanilla shadow cljs project starter. I'm doing a tutorial


when I run the shadow-cljs watch app command it starts the nrepl but now I am realizing there is no repl prompt.


No user.cljs file either


My workflow so far is start up the nrepl with that command (according to the tutorial guide) and then use :Connect 3333 to connect fireplace and then use :Piggieback to connect the cljs. It connects because I'm able to evaluate things and (js/alert "test") works. But just no docs. Not a huge deal but I was curious

Tim Smart00:05:58

If cider/cider-nrepl is in your dependencies, then this should work: • Run shadow-cljs watch app • Make sure the build is running in your browser / node-script is running before moving any further • Then run :CljEval (shadow/repl :app) to start the ClojureScript REPL Fireplace mappings like K should work now. No need to run Piggieback.


That is good to hear about no piggieback needed! Thank you.


Unfortunately K still doesn't work.


Here is the full error message I am seeing


Error detected while processing function <SNR>80_Doc[5]..fireplace#info[39]..firepla ce#query[10]..<SNR>80_PlatformDelegate[7]..<SNR>80_EvalQuery: line 27: E605: Exception not caught: fireplace.vim: No value in {'status': ['done'], 'id': 'b 4cec1fd-4210-4f20-4d97-5043618cdd92', 'session': ['cfa62d63-19c3-48bd-bafa-09368991a d4a'], 'err': 'Error in phase :compilation^@Unable to resolve var: special-doc in th is context at line 1 cljs/user.cljs'}


i can tell from the stacktrace cider-nrepl isn't active


i don't remember what contortions were needed to get it to load off the top of my head, but I'm pretty sure it was more than just "add it to the dependencies"


Shadow automatically loads it if it's on the classpath


i mean i don't doubt you but does it also require a full moon or something? I recall it being sooooo fiddly

Tim Smart07:05:49

Oh right, it just worked ™️ for me :man-shrugging:

Tim Smart07:05:49

Compared to getting figwheel working with my vim setup it was surprisingly easy. Maybe I was battle hardened by that stage lol.


figwheel ... might have been worse lol

dominicm07:05:44 > Shadow-CLJS will inject the required CIDER-nREPL middleware once it sees this dependency.