This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-09-21
Channels
- # beginners (82)
- # bitcoin (1)
- # boot (38)
- # cider (6)
- # cljs-dev (13)
- # cljsrn (5)
- # clojure (320)
- # clojure-italy (22)
- # clojure-losangeles (6)
- # clojure-russia (55)
- # clojure-spec (25)
- # clojure-uk (48)
- # clojurescript (64)
- # component (16)
- # core-async (6)
- # cursive (54)
- # data-science (2)
- # datascript (2)
- # datomic (8)
- # docker (1)
- # ethereum (1)
- # fulcro (1)
- # garden (1)
- # graphql (16)
- # heroku (6)
- # hoplon (12)
- # jobs (4)
- # juxt (1)
- # leiningen (9)
- # off-topic (39)
- # om (13)
- # om-next (2)
- # onyx (9)
- # pedestal (2)
- # portkey (12)
- # re-frame (25)
- # reagent (6)
- # ring-swagger (4)
- # schema (1)
- # shadow-cljs (10)
- # spacemacs (11)
- # testing (19)
- # uncomplicate (1)
- # unrepl (6)
- # vim (21)
- # yada (3)
Hello, i've got a macro that is a thin wrapper around fn
, but in the 'resolve as' menu I can't find fn
. How can I do?
@pbaille So I still haven’t fixed this so you can enter arbitrary vars to resolve as, sorry. There’s a workaround you can use by hacking config files here: https://github.com/cursive-ide/cursive/issues/1440#issuecomment-232776904
@cfleming by the way, have you got an idea when the standalone version of cursive will be available?
@pbaille Not really, the install process is pretty easy these days so it’s less compelling.
I do still want to do it but it’s a lower priority than it was. Do you have a case where it would be useful?
Ok - I do want to do it, in particular a simpler version (or a version that could easily be configured to be simpler) for educational purposes is a use case I’d like to support.
Keybindings have also been an awkward part of setup but should be much easier in the next release.
Yeah, that’s mainly why I’ve de-prioritised the standalone version. It’s a complicated thing to set up that is not at all documented by JetBrains, and it’s unclear how a non-JetBrains standalone would update itself etc.
I've got another question: I'm wondering why repl evaluated forms doesn't print the same that when wrapped in a 'println' call, specifically \newline chars looks to be omitted
i've noticed that print-method is called with a stringwriter instead of a printwriter when I send an expr to the cursive repl
Umm, I’m not sure why that would be the case. Cursive doesn’t mess with how print-method
etc work, but since Cursive parses + pretty-prints the output on the client side, the results are sometimes different from what you might expect.
Cursive, in order to pretty print them, will try to parse them as Clojure data structures and then print the parsed version using fipp. What’s happening in your case is your output is correctly parsed as a form and then pprinted, but it all fits on one line so that’s how it’s printed.
You can disable that if you like in Settings->Languages & Frameworks->Clojure->Pretty print REPL return values
But then none of your results will be formatted unless you install a middleware or something.
In your second example, the newlines are preserved because you essentially have 3 top level forms.
So unfortunately it’s not extensible at the moment, because it’s built in to Cursive. I’m planning to allow it to be extended, but I’m not sure how that will work yet.
Yes, you can - I think https://github.com/greglook/whidbey is what you want.
No problem, let me know if you run into trouble - I’m not sure many people are using whidbey with Cursive, so I’d be interested to know how it goes.
I've just tried, I can't make it works. I've added whidbey stuff in my profiles.clj. It works as intended when used at the terminal with 'lein repl'. but doesn't works in cursive repl (i've unchecked Pretty print REPL return values). Also i've tried to check whidbey in profiles (lein intellij panel) but nothing seems to do the trick.
@pbaille Hmm, ok - I’ll take a look at that tomorrow. Could you file an issue to remind me?
@cfleming double shift search find my project/my_namespace
but not project.my-namespace
... It's a know bug?
@souenzzo Sort of - unfortunately the double shift search isn’t extensible. So the only way I can contribute to it is to use symbols, which isn’t great for namespaces.
That means namespaces will also show up in the Find symbol… search, which you almost certainly don’t want.