This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
- # announcements (12)
- # beginners (225)
- # calva (7)
- # cider (45)
- # clj-kondo (1)
- # cljdoc (1)
- # cljsrn (3)
- # clojure (112)
- # clojure-dev (45)
- # clojure-europe (6)
- # clojure-finland (2)
- # clojure-india (1)
- # clojure-nl (27)
- # clojure-spec (37)
- # clojure-uk (171)
- # clojurescript (39)
- # core-async (9)
- # cursive (22)
- # datascript (8)
- # datomic (50)
- # emacs (12)
- # figwheel-main (17)
- # fulcro (42)
- # garden (2)
- # hoplon (27)
- # jobs (4)
- # kaocha (8)
- # klipse (2)
- # luminus (2)
- # off-topic (9)
- # perun (33)
- # planck (2)
- # re-frame (9)
- # reagent (48)
- # reitit (5)
- # remote-jobs (1)
- # rum (2)
- # shadow-cljs (23)
- # slack-help (3)
- # spacemacs (18)
- # sql (7)
- # tools-deps (24)
- # unrepl (9)
- # vim (30)
hi, I'm just getting started with clojure/cider, and I'm having a weird problem that I don't know how to solve
Whenever I switch to a new namespace, I don't have any functions defined. I can't even run
(+ 1 1)
I get an error reading
Syntax error compiling at (invyte:localhost:32961(clj)*:49:19). Unable to resolve symbol: + in this context
Seeing that GitHub is now starting to offer sponsorship feature for developers, where 100% of donations go to the developer, it might be an interesting feature for CIDER donations: https://github.com/sponsors
@bozhidar There is a waitlist for https://github.com/sponsors so suggest getting yourself added soon. It looks very promising. I've signed up and also nominated you as someone to sponsor.
@dominicm This happens for me too using
(in-ns 'some-ns), is there a way to do that w/out loosing clojure.core & clojure.repl? (the not having any vars defined when switch ns @brandon149 mentioned)
@mgrbyte if you in-ns to a namespace that doesn't exist, that will happen. You need to
the ns exists, and I can see symbols from the one I switch to, but clojure.core + .repl vars do not.
If a namespace was loaded before switching to it everything will behave formally. The REPL utils are auto-required in
user, but not in other namespaces.
@bozhidar Github now supports creating a “sponsor” button: go to settings and then Sponsorships
going to look at how that autoloading of REPL utils works, because I want that for all namesapces that I use in the REPL.
I’ve also experimented with this for clj-kondo, just to see how it works. I’ve setup an opencollective account, but I’m not sure how that works. you can only get money out of that if you have expenses like travel?
> going to look at how that autoloading of REPL utils works, because I want that for all namesapces that I use in the REPL.
Frankly, I don’t think that’s very useful in CIDER because it has its own replacements of every function there and I never use it for anything. But I assume not everyone knows this. 🙂
> I’ve also experimented with this for clj-kondo, just to see how it works. I’ve setup an opencollective account, but I’m not sure how that works. you can only get money out of that if you have expenses like travel?
In the end you approve your own expenses if you’re the only person in the collective. 🙂
> @bozhidar Github now supports creating a “sponsor” button: go to settings and then Sponsorships
> E.g. I don’t get why you’d need something like
Probably just because I've not learnt/remembered. Mostly I type
(doc symbol) a lot, but as you say,
C-d d (cider-doc) works without needing to require clojure.repl 👍 #must-teach-fingers (thanks btw!)
I've had issues several times when running multiple threads over a debug-compiled function.
The most annoying one is that sometimes after I'm out of the debugger (with either
c), the REPL remains hung up. Apparently, some CountDownLatch didn't clear. In such cases, I had to restart the REPL.
Obviously, I'm not asking for adequate multi-threading debugging (I don't think anyone knows how that should look like). But is it possible to have a foolproof of some sorts that would allow only one thread enter the debugger at the same time?
> Obviously, I’m not asking for adequate multi-threading debugging (I don’t think anyone knows how that should look like). But is it possible to have a foolproof of some sorts that would allow only one thread enter the debugger at the same time?
I’m afraid I barely remember this part of the code, but I assume we can figure something out. @vspinu and @malabarba are way more knowledgable there. We could certainly use more help with the debugger’s maintenance.
I think that's doable. Tbh, the nrepl side of the debugger is actually fully thread-functional. It keeps track of all the requests it's waiting for is a safe way. The part that gets confused is the emacs side. If you receive two input requests, the latest one override the first one and you loose the ability to reply to the previous one.
Preventing the nrepl from sending new requests once it's already waiting for one should be a small change.
@malabarba Can you open some ticket with an overview of what needs to be done? I assume you won’t be able to fix this yourself, but with enough info we might be able to get someone else to tackle this.
I’m would like to understand the model behind jacking into both a clj and cljs repl… I’ve got a project using clojure-cli that has a figwheel-main cljs repl that I can start from the command line and a clojure repl that I can start from the command line. I cannot determine how to include the figwheel dependencies only on the cljs repl (using something like -Afig). To have it loaded in both repls is easy (in
(cider-clojure-cli-global-options . "-A:dev")) -but that smells. Is it possible to specify cli options that are only applied to the cljs repl?