This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-09-14
Channels
- # ai (3)
- # babashka (45)
- # beginners (81)
- # biff (26)
- # calva (10)
- # cider (5)
- # clj-kondo (55)
- # cljfx (6)
- # clojure (125)
- # clojure-berlin (1)
- # clojure-europe (37)
- # clojure-italy (7)
- # clojure-nl (3)
- # clojure-norway (79)
- # clojure-uk (1)
- # clojurescript (63)
- # clojutre (1)
- # conjure (5)
- # cursive (37)
- # data-science (1)
- # datalevin (4)
- # datomic (28)
- # eastwood (6)
- # fulcro (26)
- # graphql (20)
- # honeysql (6)
- # humbleui (4)
- # jobs-discuss (5)
- # kaocha (1)
- # leiningen (8)
- # missionary (5)
- # nbb (4)
- # observability (3)
- # off-topic (7)
- # pathom (8)
- # podcasts-discuss (1)
- # rewrite-clj (18)
- # ring (6)
- # sci (23)
- # scittle (9)
- # shadow-cljs (49)
- # squint (10)
- # testing (11)
- # xtdb (17)
How do I tell Cursive that I want to start a REPL within the context of a specific alias? Like, the equivalent within a run configuration of clj -A:dev
? Setting -A:dev
under 'Parameters' gives:
Execution error (FileNotFoundException) at java.io.FileInputStream/open0 (FileInputStream.java:-2).
-A:dev (No such file or directory)
and then the REPL exitsAah, I just had to tell it to use Run with Deps
instead of Run with IntelliJ project classpath
I've got a deps.edn
with an alias specified as:
:cider {:main-opts ["-e" "(require (quote griffin.user))" "-m" "nrepl.cmdline" "--middleware" ["cider.nrepl/cider-middleware"]]}
When I launch the REPL in a terminal via clj -M:cider
it works fine. When I try and use IntelliJ run configurations to launch an nREPL run with deps and include cider
as an alias, it bombs out with
nREPL middleware: --interactive has no namespace
Does anyone have any pointers as to where I even begin to debug that? o.0Technically I only need the ["-e" "(require (quote griffin.user))"]
bit of it, which I can put in another alias just fine. This is just curiosity. The :cider
alias is for our team mates who are using Emacs (or Vim with the right plugins), but I thought all Cursive was doing was launching the REPL in the background with clj
and connecting to it from an nREPL client, so I don't get why that alias would work on the CLI but not through a run config.
It's just a bit of a faff to say "Emacs users need alias X, IntelliJ users need alias Y"
I do recall at one point trying to set up the cider middleware, but I forget why I wanted it now. There was one specific feature it offered that I thought was handy and it'd be good to try and get in the Cursive REPL
I'd use 2 aliases and emacs people could use -M:startupcommand:cider
and cursive just startupcommand
is there a way to show the file extension when searching for a file by filename in the project files panel?
Which search are you referring to specifically? IDEA has a bazillion ways to slice the search ham 🙂
cmd+shift+o
where do you see the .clj file extension in that screenshot?
haha I was genuinely confused
that's what i've had to do, too, but I really don't like it
thanks for checking, though!
I was slightly confused for a moment - I’ve rebound my cmd+shift+o to be actually the Namespaces search instead of Files. Namespaces shows file types in ambigous cases.
The correct action to bind is in Settings > Keymap / Plugins > Cursive > Namespace...
(and possibly also Main Menu > Navigate > Namespace...
)
Just to prove a point, I did this rebinding change some time ago when I was working on a project which had a certain preference to naming things and realized that the cmd+shift+o wasn’t doing the thing I assumed it should… 😅
I don't only search for clojure files though?
probably not a cursive question
I just have a hard time believing people don't need to see this