This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-11-28
Channels
- # admin-announcements (1)
- # aleph (3)
- # bangalore-clj (4)
- # beginners (167)
- # boot (14)
- # cider (4)
- # cljs-dev (24)
- # cljsjs (21)
- # cljsrn (33)
- # clojure (214)
- # clojure-greece (2)
- # clojure-italy (2)
- # clojure-korea (16)
- # clojure-russia (29)
- # clojure-spec (31)
- # clojure-uk (86)
- # clojurescript (144)
- # core-matrix (2)
- # cursive (37)
- # datascript (5)
- # datomic (104)
- # devcards (2)
- # events (2)
- # jobs (2)
- # luminus (8)
- # midje (1)
- # nyc (4)
- # off-topic (1)
- # om (39)
- # om-next (1)
- # onyx (47)
- # perun (1)
- # planck (6)
- # proton (2)
- # re-frame (25)
- # reagent (40)
- # spacemacs (9)
- # vim (71)
- # yada (3)
Not sure why, but after updating to 2016.3 I needed to re-enter my Cursive license
Ah, I had already run 2016.3 so it didn't offer to transfer my preferences
To answer your question, I’m pretty sure even if I learn lein & cljsbuild inside out, there’s no way I can get cursive to do what I want.
Now, I moved to boot: I use the generate plugin to produce a project.clj, obviously it’s even worse since most of the paths are computed at runtime.
I couldn’t find a reference to :source-dirs
in the doc, is the regular way to do this is to throw everything under :source-paths
?
The latest version of Cursive seem to get very confused when sources point to a checkout directory.
This is probably a newbie thing but I turned on slurp and now ctrl+left/right moves whole sexprs. In the Clojure Keybindings settings none of the bindings are checked. Previously some were.
@lsenta Yes, sorry - :source-paths
and :test-paths
is what you want. There’s also :java-source-paths
if that’s relevant (https://github.com/technomancy/leiningen/blob/master/sample.project.clj#L295-L298)
Lein does include the concept of resource paths, but basically treats them the same as source paths anyway IIRC (I’d need to check that to be sure)
So I disabled "Save files on frame deactivation" so figwheel would NOT kick in. But switching over to the REPL frame and it still saves & reloads.
@cfleming - lein: I have to duplicate all my paths (from cljsbuild & sass), I’m stuck with your definition of resources, I’m pretty sure I can’t define test resources - boot: all of the above + the need to write some generation script on top of what already exists
What I don’t understand is that wether it’s lein+plugins or boot, making sense of the paths looks like solving the halting problem
FWIW, I’ve been doing this for 6+months, I’m asking only now that I moved to boot and cursive trash 100% of the information I want
@imre: I am, but haven’t noticed anything in particular (haven’t done much digging, though). No problems either.
@cfleming If I send a command to REPL before it finish initializing, I get this:
Error evaluating - class java.net.SocketException: Socket closed
Exception starting REPL: java.lang.InterruptedException
Process finished with exit code 137 (interrupted by signal 9: SIGKILL)
@imre It looks a little nicer, but there’s nothing specific in there yet for Cursive. I’m planning to add support for the parameter hints: https://github.com/cursive-ide/cursive/issues/1596
@lsenta You don’t have to duplicate your cljsbuild paths, Cursive will pick those up. You only have to add any source paths that are missing to that list.