This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-01-22
Channels
- # announcements (5)
- # aws (38)
- # aws-lambda (21)
- # babashka (45)
- # beginners (87)
- # boot (1)
- # calva (32)
- # cider (23)
- # clara (7)
- # clj-kondo (41)
- # cljs-dev (29)
- # clojure (145)
- # clojure-europe (6)
- # clojure-italy (12)
- # clojure-nl (4)
- # clojure-spec (39)
- # clojure-uk (45)
- # clojurescript (171)
- # copenhagen-clojurians (4)
- # cursive (14)
- # datomic (48)
- # docker (6)
- # figwheel-main (2)
- # fulcro (54)
- # jackdaw (1)
- # jobs (1)
- # kaocha (3)
- # leiningen (7)
- # luminus (6)
- # malli (2)
- # off-topic (51)
- # pathom (8)
- # quil (20)
- # re-frame (14)
- # reagent (1)
- # reitit (2)
- # remote-jobs (1)
- # shadow-cljs (39)
- # tools-deps (1)
- # vim (12)
- # xtdb (5)
Have there been any recent developments related to CLJS repls? I’m specifically looking to connect to a figwheel-main repl in a deps.edn project, but general information would be good too.
Sadly no, sorry, I got sidetracked with other things. It’s still near the top of my to-do list.
Totally understood - no worries on my end, I was mostly wondering if I missed any news about it. Hopefully things are a little more stable on the Intellij side of things for the next little while.
i have some issues with loading .cljc
files.
if im trying to load one into a remote nREPL client, cmd-shift-l does nothing, but cmd-shift-p works and it uses the namespace of the cljc file too.
if i start a local nREPL client in the same clojure deps project, i can evaluate the same cljc file.
i've also noticed, when i start a Cursive nREPL client with the "Use port from nREPL file" option, then i try to edit that run configuration later,
the Project field under the "Use port..." radio button goes back to [none]
state and a little red x appears over the icon of the run configuration.
(im on the latest 1.9.1-eap2-1-g33030cb3
cursive version, jdk8, intellij 2019.3.2)
im using a remote nREPL server to connect to a locally started gorilla nrepl server, btw
If I import this project: https://github.com/roman01la/proton-native-cljs how do I get the unresolved messages to go away?
I think there's no way to do it in Cursive
@U0567Q30W is there anything Cursive can do with this? Maybe use externs information to resolve JS methods and properties?
ClojureScript is already doing that to provide arglists and docs in REPL
Yes, I’m planning to improve this support, and also make the inspection much less shouty when it doesn’t work. There will always be a lot of cases where it’s basically impossible to tell what’s going on with JS.
I think type hints could help to resolve values in such cases?
I’m still debating whether to base the new support on the IntelliJ JS support or not. Obviously that is much more mature and complete than anything I will ever do, but it’s also only available in paid IDE editions.
I imagine it would be neat if Cursive’s JS resolution mechanism could work the same as ClojureScript’s externs inference, so unresolved highlighted expressions would actually point that an expression should by type hinted or manual externs should be provided.