Might anyone know why, just sometimes, you might get a whole slew of indicators that everything should be working correctly, but neither the output in the output.calva-repl
shows up nor can you evaluate anything? Pictures below.
This happened to me on another app, and I going nuclear and recreating from scratch worked, but I'd rather not need to do that again. It "should" be working?
Yeah it is exactly hitting via http - not REPL, cause that's the use case the most devs want to do (cider user myself but debugging for others 🙂) In any case thanks for your help, repro case seems too much work for me at the moment, maybe later on
I'm not sure "what" I did, but it's working now. I did have older dependencies for the nrepl (something like version ~6) and cider-nrepl (a couple of patch versions behind) in my root profiles.clj. I also had dependency to "venantius/ultra" in my root profiles.clj that I removed, and finally I simply restarted code. I'm not sure which of those fixed it, but here to say that it's all good now!
Ok, understood. This isn't the first time this has come up if I remember correctly, but I don't think we tracked it well before. I remember seeing it work, myself, but I don't try to do this in my usual work. I think this has something to do with how things are evaluated/loaded. If it works in Cider we should be able to make it work in Calva, since Calva uses cider-nrepl for much of its debugger functionality.
Glad it's working now! Either of those could have caused issues, unfortunately Calva wasn't showing what went wrong, at least in an obvious place (not sure if you checked the developer console but maybe something was printed there).
My advice to most folks having problems with Leiningen is to comment out everything in your user profiles.clj
as a first step 🙂 and I seem to recall venantius/ultra as being particularly problematic (but I can't remember why).
Related issue: https://github.com/BetterThanTomorrow/calva/issues/207
Oh wow, I didn't realize that Ultra advertised the fact that it is somewhat incompatible with CIDER!
See, this is why I like really simple tooling...
I made an issue for this so I can investigate soon. I'll try to repro myself. May ping you at a later date for more info or to test a change, if you're up for it. :simple_smile:
Please do, I am open to experimenting 😃
And thanks a lot!
Just as an FYI the code I inherited is a duct app with a pedestal http server...many moving parts I know