Fork me on GitHub
#cider
<
2022-09-17
>
puchacz13:09:10

hi, I connected cider-cljs and I have REPL, but my source buffer says cider[not connected], and I cannot use commands like M-. (jump to definition) or C-z (go to REPL). the REPL works all right though. and the sesman-browsser shows my session with suspicious message (pending-cljs):

puchacz13:09:15

1: projects5/bubrary-gui:localhost:9000 linked-to: proj(~/projects5/bubrary-gui/) objects: cider-repl %s(pending-cljs)

puchacz13:09:23

(I asked the same question on shadow-cljs channel)

Carsten Behring18:09:11

Hi, when use teh cider inspector on a map like this:

{:id "2",
 :refid "10",
 :author "",
 :title
 "Going wild with fermented food: The tastiest what's-old-is-new-again trend",
 :abstract
 "<a style=\"color:red\">If</a> you're not yet familiar with how delicious and <p style=color:green;>healthy</p> fermented foods can be, we introduce you to one of the industry's leading  <a style=\"text-decoration: none;color:orange\">sustainable</a> , fermented <span style=color:red;>food</span> producers: California-based wildbrine, which specializes in wild-fermenting <mark>organic</mark> produce.. <br>\r\n Rick Goldberg and Chris Glab, founders of wildbrine.. \r\n "Wild" fermentation is what makes wildbrine's products unique.  \r\n<div style=\"color:red;\">a</div>\r\n<h1 style=\"color:red;\">a</h1>\r\n<div style=\"color:red;\">a</div>",
 :level "1"}

Carsten Behring18:09:09

I get an error thrown by the cider-inspector:

Inspector error for: {:id "2", :refid "10", :author "", :title "Going wild with fermented food: The tastiest what's-old-is-new-again trend", :abstract "<a style=\"color:red\">If</a> you're not yet familiar with how delicious and <p style=color:green;>healthy</p> fermented foods can be, we introduce you to one of the industry's leading  <a style=\"text-decoration: none;color:orange\">sustainable</a> , fermented <span style=color:red;>food</span> producers: California-based wildbrine, which specializes in wild-fermenting <mark>organic</mark> produce.. <br>\r\n Rick Goldberg and Chris Glab, founders of wildbrine.. \r\n "Wild" fermentation is what makes wildbrine's products unique.  \r\n<div style=\"color:red;\">a</div>\r\n<h1 style=\"color:red;\">a</h1>\r\n<div style=\"color:red;\">a</div>", :level "1"}

puchacz20:09:39

what event changes REPL status from pending-cljs to cljs?

puchacz20:09:48

this is what I am missing

puchacz21:09:12

it is probably a bug in cider; however it is strange that there are no results about it when I google. can it be something specific to my environment? I made it as simple as I could

puchacz21:09:44

OMG! I did it! Second weekend! one has to be in the repl buffer, then M-x cider-set-repl-type Enter cljs Enter (in minibuffer) then the part of the name of the REPL buffer changes from pending-cljs to cljs:shadow and my source buffer eventually is associated with the session, so evaluating there works, C-z works and M-. works (I tried on +) it took me to core.cljs

puchacz21:09:29

what on Earth is going on? why didn't it get called automatically in cider--connected-handler in cider-connection.el?

rolt08:09:17

i tried to reproduce but couldn't, it works on my setup with your example (tried eval in source code, go to definition) i didn't check with the exact versions though

puchacz10:09:24

thanks. I can live with the workaround for now, I am not sure what is wrong with my setup. I figured out that the functionality I am missing is pretty basic, so people would have noticed if it was widespread.