Fork me on GitHub
#cursive
<
2020-05-08
>
tekacs07:05:49

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.

4
cfleming02:05:03

Yes, I need to add some customisation to how different forms are folded (https://github.com/cursive-ide/cursive/issues/2042)

cfleming02:05:19

There was also a request to show the docstrings of folded defns, but I can’t find an issue for that at the moment.

joshkh13:05:43

i've noticed that map destructured values in lets 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.3

ikitommi15:05:31

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.

4
ikitommi15:05:48

also clj-kondo files (generated by file-watcher) also cause this. Excluding more directorys manually.

dazld15:05:10

I add those directories to my global gitignore - and use the ignore plugin.

dazld15:05:54

.cpcache, target,`.shadow-cljs` etc

ikitommi19:05:16

thanks, just what I wanted.

ikitommi09:05:26

@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.

dazld11:05:21

sorry, i must have done something else then

dazld11:05:27

thought it was that!

cfleming02:05:54

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.

ikitommi05:05:12

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?

cfleming05:05:17

I think having a list of “always exclude these dirs if they exist” probably makes sense.

Kamuela15:05:12

I'm trying to setup IntelliJ with cursive and I'm getting this from a CLJS project using Shadow, lots of "cannot be resolved"

kenny15:05:07

Is clojurescript on your classpath?

Trevor16:05:26

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"])

Trevor16:05:35

Notice that both clojure and clojurescript are in there.

Kamuela11:05:22

I actually only have a single shadow-cljs.edn, can this be managed there?

Cris B04:05:57

I've only just started looking into this myself, but it appears not: https://shadow-cljs.github.io/docs/UsersGuide.html#_cursive

cfleming02:05:47

That’s correct, Shadow projects need to be set up per the doc over there for the moment.

cfleming02:05:04

Not right now, sorry, although it’s planned.

teodorlu22:05:24

Possibly ignorant question: Does Cursive support Intellij 2020.1? I'm having trouble finding the plugin in the marketplace.

teodorlu22:05:48

I updated IntelliJ, and was able to install Cursive. ✔️ Never mind!