cursive

Rei 2026-02-10T08:00:00.831979Z

Hello folks. It's been a while since I last touched Cursive so I may be a bit rusty here, but how can one start an NREPL on a fixed port in Cursive? Thanks in advance.

Rei 2026-02-12T07:53:51.428359Z

@cfleming as always, thanks a lot for the help! it's working for me now šŸ™‚

cfleming 2026-02-10T08:35:34.224499Z

It's not Cursive-specific, but you should be able to use nrepl.edn to do that: https://nrepl.org/nrepl/usage/server.html#server-options

šŸ‘ 1
2026-02-10T08:16:25.834829Z

Anyone using squint who’s worked out how to how to fix unresolved symbols in cursive?

Stephen Castro-Starkey 2026-02-10T14:02:40.806959Z

Oooh I want to know this, too

cfleming 2026-02-10T18:41:35.942659Z

Maybe this? https://clojurians.slack.com/archives/C0744GXCJ/p1761905554884019

2026-02-10T19:03:24.441329Z

I'll try it when I get home, one thing is that squint uses strings instead of symbols

(ns example
  (:require ["fs" :as fs]
            ["url" :refer [fileURLToPath]]))

(println (fs/existsSync (fileURLToPath js/import.meta.url)))

(defn foo [{:keys [a b c]}]
  (+ a b c))

(println (foo {:a 1 :b 2 :c 3}))

reefersleep 2026-02-10T11:54:54.714739Z

Can I have done something odd to make it hard for Cursive to find usages of CLJC functions in a library project, used in a CLJ project and a CLJS project in the same repo? I don't know if it's consistent, but, often at least, functions appear unused, and I cannot find anything with 'find usage'.

reefersleep 2026-04-16T12:46:09.576449Z

Is Cursive not knowing references of CLJC vars in CLJS/CLJ namespaces a known issue that is being worked on or is planned for fixing at some point?

reefersleep 2026-04-16T12:47:06.894689Z

The strength of CLJC is the ability to share across CLJS/CLJ for me, and that's greatly weakened when the IDE cannot see where it's used.

reefersleep 2026-04-16T13:03:30.176039Z

I can't find it in the https://github.com/cursive-ide/cursive/issues

reefersleep 2026-02-10T11:57:36.985779Z

I see @p-himik already talked about this some time ago. https://clojurians.slack.com/archives/C0744GXCJ/p1713075817741459

Joel 2026-02-10T15:52:44.636789Z

In my context menu I don’t see ā€œResolve [macro-name] as...ā€œ. Also in Languages & Frameworks/Clojure/Symbol Resolution, I can see the table, but it only has a minus button, so I can’t even manually add a resolution there. ā€œCopy to project/IDEā€ doesn’t seem to have an effect. This doesn’t help with adoption šŸ˜ž . Any help appreciated.

Joel 2026-02-10T15:54:09.680879Z

I’m running 2025.3.2 Intellij (Build #IU-253.30387.90, built on January 21, 2026) and Cursive 2025.2.1-253

Joel 2026-02-10T16:18:50.067499Z

I’m guessing part of my problem is with potemkin. Are those resolvable with Cursive?

shaunlebron 2026-02-10T18:45:50.447959Z

the table is for treating unrecognized macros as a built-in supported macro for static analysis, and you can export/import these settings between projects

shaunlebron 2026-02-10T18:47:30.796339Z

but there’s currently not a way to add support for new kinds of macros that don’t mirror existing ones

shaunlebron 2026-02-10T18:48:47.847259Z

you can choose "resolve as... None" to hide the errors

Joel 2026-02-10T20:21:29.047739Z

@shaunlebron That’s the problem, there is no option to ā€œresolve asā€¦ā€ in the UI.

Joel 2026-02-10T20:22:02.518019Z

Context menu has option to ā€œcreate function xxxā€ ONLY.

shaunlebron 2026-02-10T21:09:12.854949Z

I see this sometimes when I think something weird is going on with the resolver (or intellij). does restarting do anything?

Joel 2026-02-10T21:11:15.136389Z

no. i’ve clicked all the restart/invalidation options. computer reboot. Don’t know where to look.

cfleming 2026-02-11T02:25:39.113049Z

When this happens, it's often that the intention required for this has been disabled. Due to the way IntelliJ presents intentions, it's quite easy for this to happen accidentally. Check Settings | Editor | Intentions | Clojure and make sure the Clojure ones are enabled, in particular Resolution.

šŸ’Æ 1
šŸŽ‰ 1
Joel 2026-02-11T02:31:02.900779Z

@cfleming Is potemkin just a problem?

cfleming 2026-02-11T03:10:34.253309Z

Possibly, yes. I did fix that back in the day but someone reported recently that it wasn't working for them, so possibly either potemkin has changed or something has broken in Cursive. I haven't had a chance to look into it yet though, I'll try to do that soon.

Joel 2026-02-11T03:14:00.683239Z

not a fan of this feature of potemkin. thanks!