This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-11-19
Channels
- # announcements (5)
- # beginners (68)
- # boot (1)
- # cider (27)
- # clara (11)
- # cljdoc (10)
- # clojure (129)
- # clojure-europe (2)
- # clojure-italy (16)
- # clojure-nl (15)
- # clojure-spec (74)
- # clojure-uk (31)
- # clojurescript (62)
- # core-async (17)
- # cursive (28)
- # datomic (22)
- # duct (29)
- # emacs (10)
- # fulcro (65)
- # hoplon (2)
- # hyperfiddle (16)
- # instaparse (3)
- # kaocha (2)
- # lein-figwheel (3)
- # leiningen (1)
- # mount (1)
- # nrepl (21)
- # off-topic (23)
- # re-frame (59)
- # reitit (18)
- # ring-swagger (2)
- # shadow-cljs (2)
- # spacemacs (16)
- # timbre (2)
- # tools-deps (22)
can I teach Cursive to understand special syntax (eg string interpolation like "your email: '~{email}'"
(https://cemerick.com/2009/12/04/string-interpolation-in-clojure/) so that the local (`email`) is still refactored correctly etc..?
@robert.mather.rmm No, you can’t configure the printer - what would you like to configure about it?
There’s no way to teach Cursive about the string interpolation at the moment, unfortunately. I’ll think about how that might be done, but it’s tricky.
I'm on 'nREPL' btw. I think what happened is that a certain kinds of exceptions (compiler exceptions I guess?) didn't pretty print. Other things are though.
Ok, if you have examples of things that are not, I’ll look into why - they should be.
hello, I just tried to use some override-deps to point a dep to a git source, in the deps panel it shows the correct version (with the git sha), but in the External Libraries the version is still the one from maven, and when I navigate to the code it goes to the maven version, is this a bug?
I expected it to navigate to the git and look references from it, but seems like it still relying on the maven
nope, I tried a couple times
Ok, so the repro case is: have a maven dep, then switch to a git dep using override-deps? I’ll try that.
yes, correct, in my case the maven dep is a second degree dep, that in my project I'm trying to override on a alias using an override dep
Ok, so you don’t explicitly depend on the one you’re overriding, it comes in transitively?
@U066U8JQJ I can’t reproduce this.
I have a project that looks like this:
{:deps {ring {:mvn/version "1.6.3"}}
:aliases {:test {:override-deps
{org.clojure/java.classpath
{:git/url ""
:sha "bc8992ec34df03c4a33d8d17f7543d5711de6308"}}}}}
java.classpath
is pulled in transitively, but it’s correctly replaced with a “Deps: org.clojure/java.classpath:bc89922” lib.
There is one thing which is strange - the git library isn’t shown in the External Libraries section at all.
Can you check File->Project structure, what I suspect is happening is that in your module with the override, it’s being overridden correctly but the git lib doesn’t show in External Libs. Then I suspect that the original Maven lib is still being pulled in from somewhere else in your project, which is why it does show up there.
trying again now and it works, maybe been some cache issue :man-shrugging: