Fork me on GitHub
#cursive
<
2017-08-28
>
danielcompton00:08:21

How do I set a cursive Lein profile to use that dependency?

danielcompton00:08:52

It doesn't seem like the dependency is enough to override the source-paths configuration, it still creates a separate sources root submodule

cfleming04:08:10

@danielcompton What do you mean by using it as a source dependency?

danielcompton22:08:05

We have 3 projects in one git repo, client, server, and specs. Rather than constantly releasing versions of the spec project, we want to specify :source-paths ["../specs/src"] so that the project always uses the current version of specs when building

cfleming09:08:28

If you’re all using Cursive, you don’t need to change the versions of the spec project. Just add a dependency on the spec project, and Cursive will set up a module dependency, which will allow the depending modules to access its source.

cfleming09:08:43

It sounds like the sort of thing you might use checkouts for, too.

cfleming04:08:20

You can configure the profiles that are used to sync the project in the Leiningen toolwindow, the profiles that are selected in the profiles tree.

joelsanchez12:08:56

I think I found a bug: in a test directory, use New -> Clojure Namespace, select ClojureScript test, you get a your-test.cljs file with this:

(ns app.your-test
  (:require [clojure.test :refer :all]))
Note "clojure.test" instead of "cljs.test"

rarous07:08:09

Should be working fine. Cljs compiler aliases cljs as clojure for simpler cross-platform code.

misha13:08:09

@cfleming greetings, I found an issue with clojure code debugger, do I report it within cursive project, or is it 3rd-party for you?

misha13:08:20

to reproduce: set any breakpoint inside clojure.pprint/print-table, and then try to step over: since print-table defined inside separate file via:

(in-ns 'clojure.pprint)
(defn print-table
IDEA highlights correct line inside wrong file: jar/clojure/pprint.clj, instead of jar/clojure/pprint/print-table.clj

sandbags16:08:41

@cfleming Is it possible to mess with how Clojure formats vectors across lines? I would like [foo bar\n----baz] rather than [foo bar\nbaz] if that makes sense? I had a look at the Clojure code style parameters and couldn't see anything so I'm guessing not, but never hurts to ask right? 🙂

amann21:08:22

Has anyone seen Visual Studio’s purported Clojure support? Anyone used it? A new-to-clojure-dev just asked for my help therein and it looked hella messed up. Instead of engaging in a Vim/Emacs/Cursive editor war with them, I’m trying to understand what the benefits of it over Cursive are before telling them to come to the light…etc.

cfleming22:08:13

@misha Could you report that in the cursive tracker?

cfleming22:08:01

Reading that blog post it should in semi-recent CLJS versions.

cfleming22:08:34

@sandbags No, but if you can create an issue with the behaviour you’d like I’ll look at it.

cfleming22:08:04

@amann I haven’t, no - my impression is that it’s pretty green, but I think someone is working on it actively.

cfleming22:08:35

I don’t know much about it - my impression is that in general Atom would be a better choice just because of proto-REPL

amann22:08:32

yeah, that was my feeling as well

amann22:08:48

the out of the box auto formatter is…bad…to put it lightly

amann22:08:46

I’ll play with it a lil’ and see if it’s worth a damn