This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-06-09
Channels
- # aleph (4)
- # arachne (3)
- # beginners (41)
- # boot (300)
- # cider (17)
- # cljs-dev (37)
- # cljsjs (4)
- # cljsrn (5)
- # clojure (249)
- # clojure-boston (3)
- # clojure-czech (4)
- # clojure-dev (14)
- # clojure-greece (183)
- # clojure-nl (2)
- # clojure-russia (11)
- # clojure-spec (135)
- # clojure-uk (37)
- # clojurescript (56)
- # community-development (8)
- # cursive (22)
- # data-science (4)
- # datomic (150)
- # devcards (6)
- # emacs (5)
- # euroclojure (8)
- # funcool (18)
- # hoplon (29)
- # immutant (1)
- # jobs (1)
- # lambdaisland (3)
- # lein-figwheel (7)
- # leiningen (18)
- # mount (1)
- # om (81)
- # onyx (95)
- # planck (50)
- # proton (6)
- # re-frame (62)
- # reagent (2)
- # ring (1)
- # robots (1)
- # spacemacs (2)
- # specter (88)
- # test-check (32)
- # untangled (23)
- # yada (1)
@wasser: I can’t think of anything that should cause that. Can you send a copy of your log (Help->Show log in Finder/Explorer) to <mailto:[email protected]|[email protected]>?
@rodeorockstar: That’s somewhat inevitable unfortunately - the problem is that let
is what actually appears in the code, and that’s the width the formatting uses. It can’t use the folded text width, because if you unfold it then your formatting would be bad as well. You’ll see the same in Java when it folds e.g. lambdas etc.
@sashton: You should be able to achieve that easily. "One space list indent” only applies when there’s no other formatting configuration for a form. So turn that on, and str
(and any other function) should be formatted as in your example. Macro forms that Cursive knows about out of the box should be indented correctly with 2 spaces, and new ones like your with-body
you can configure the formatting for as described at the bottom of the page here: https://cursive-ide.com/userguide/formatting.html
@wasser: Thanks. Could you check a couple of things - open File->Project Structure->Modules->your module->Dependencies and check that the module you’re trying to use to run your REPL has Clojure attached to it?
Using garden (css generator) I keep getting Dependency cycle [units.cljc -> units.cljc -> units.cljc]
when I want to Sync files in repl
@rauh: Can you file an issue for that, and I’ll look at it? I thought I’d fixed that issue with cljc
Thanks @cfleming. I wasn't aware that the symbols with custom indentation would use 2 spaces in that case. Looks good.
@cfleming I’m not seeing “Dependencies” listed anywhere on that dialog. Am I looking in the wrong place?
@wasser: So that’s your problem, I think. How did you import this project? It looks like the module type is wrong, perhaps a web module or something?
If you look in your module *.iml
file (mine is at .idea/modules/cursive.iml
) you should see something like this:
<module external.linked.project.id="cursive" external.linked.project.path="$MODULE_DIR$/../.." external.root.project.path="$MODULE_DIR$/../.." external.system.id="GRADLE" external.system.module.group="com.cursive-ide" external.system.module.version="1.3.0-eap2-2016.2" type=“JAVA_MODULE" version="4”>
@cfleming not sure how, but looked like it was set to a web_module. I re-imported and it's working now. Let me see if it's he same in some of the other project I had trouble with.