This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-05-08
Channels
- # announcements (5)
- # babashka (46)
- # beginners (206)
- # boot (1)
- # bristol-clojurians (1)
- # calva (9)
- # chlorine-clover (27)
- # cider (1)
- # clara (10)
- # clj-kondo (105)
- # cljsrn (2)
- # clojars (1)
- # clojure (104)
- # clojure-europe (6)
- # clojure-nl (2)
- # clojure-uk (18)
- # clojurescript (44)
- # conjure (10)
- # core-async (34)
- # cursive (28)
- # data-science (6)
- # datomic (14)
- # emacs (44)
- # events (1)
- # figwheel-main (1)
- # fulcro (13)
- # graphql (9)
- # helix (12)
- # kaocha (2)
- # meander (4)
- # off-topic (2)
- # pathom (1)
- # quil (1)
- # re-frame (21)
- # shadow-cljs (49)
- # spacemacs (6)
- # xtdb (8)
Putting a request in for this issue: https://github.com/cursive-ide/cursive/issues/1079 For multimethods (here being used in React's useReducer), being able to see the dispatch value would be incredibly valuable in a default-folded workflow.
Yes, I need to add some customisation to how different forms are folded (https://github.com/cursive-ide/cursive/issues/2042)
There was also a request to show the docstrings of folded defns, but I can’t find an issue for that at the moment.
i've noticed that map destructured values in let
s don't align with the rest:
(let [something-really-long-here :value
shorter :another-value
{:keys [x]} {:x 1} ; not aligned
{x :x} {:x 1} ; not aligned
])
is this by design? i'm on cursive 1.9.2-eap2-2019.3See https://github.com/cursive-ide/cursive/issues/949, there’s some discussion there.
What is a good place in a project to have shadow-cljs write the zillions of js-files in development so that IDEA doesn’t constantly re-index them? The directory can be marked as excluded, but that’s an extra manual step per project. Also, the search is really full of unwanted stuff.
also clj-kondo files (generated by file-watcher) also cause this. Excluding more directorys manually.
@dazld found .ignore
plugin, but it does not exclude the directories in the sense how mark exluded
works. Files still appear on the seach file & indexing.
Sorry, this is annoying, I know, and there isn’t a very good workaround (apart from manually excluding) until I add shadow as a recognised build type.
thanks! same applies to deps .cpcache
and clj-kondo .clj-kondo
, most likely there are (and will be) others. Could there be a cursive-level option to exclude dirs? or should I write a custom plugin (no time, but would solve this) to have global excludes?
I think having a list of “always exclude these dirs if they exist” probably makes sense.
I'm trying to setup IntelliJ with cursive and I'm getting this from a CLJS project using Shadow, lots of "cannot be resolved"
That always trips me up to. You do need to include clojurescript as a dependency. Here's an example project.clj
(defproject app "0.0.0"
:dependencies
[
[thheller/shadow-cljs "2.8.83"]
[org.clojure/clojure "1.10.0"]
[org.clojure/clojurescript "1.10.597"]
[binaryage/devtools "0.9.7"]
[reagent "0.8.0-alpha2"]
]
:source-paths
["src"])
I've only just started looking into this myself, but it appears not: https://shadow-cljs.github.io/docs/UsersGuide.html#_cursive
That’s correct, Shadow projects need to be set up per the doc over there for the moment.
Possibly ignorant question: Does Cursive support Intellij 2020.1? I'm having trouble finding the plugin in the marketplace.