This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-07-19
Channels
- # aleph (3)
- # beginners (90)
- # boot (1)
- # cider (1)
- # cljdoc (23)
- # clojars (1)
- # clojure (91)
- # clojure-dev (8)
- # clojure-greece (1)
- # clojure-italy (17)
- # clojure-japan (1)
- # clojure-nl (6)
- # clojure-spec (4)
- # clojure-uk (89)
- # clojurescript (48)
- # core-async (5)
- # cursive (79)
- # datascript (1)
- # datomic (40)
- # duct (1)
- # emacs (7)
- # figwheel-main (2)
- # graphql (7)
- # jobs (5)
- # nyc (5)
- # off-topic (61)
- # other-languages (2)
- # parinfer (6)
- # re-frame (63)
- # reagent (131)
- # ring-swagger (6)
- # shadow-cljs (158)
- # spacemacs (14)
- # tools-deps (15)
Cursive deps support is out! https://groups.google.com/d/topic/cursive/32tfBegzfVc/discussion
@flowthing Do you get any details if you click on that?
@flowthing If you go to Settings->Build, Execution, Deployment->Build Tools->Clojure Deps, is the path to āclojureā command set correctly? Does it show a version below it?
The path is set correctly (it's set to /usr/local/bin/clojure
and it works when I run it from the command line), but it says "Command timed out" below it.
If you do clojure -Sdescribe
on the command line, is it quick to return? The timeout is set to 5secs IIRC
āÆ time clojure -Sdescribe
{:version "1.9.0.381"
:config-files ["/usr/local/Cellar/clojure/1.9.0.381/deps.edn" "/Users/eerohe/.clojure/deps.edn" ]
:install-dir "/usr/local/Cellar/clojure/1.9.0.381"
:config-dir "/Users/eerohe/.clojure"
:cache-dir "/Users/eerohe/.clojure/.cpcache"
:force false
:repro false
:resolve-aliases ""
:classpath-aliases ""
:jvm-aliases ""
:main-aliases ""
:all-aliases ""}
0.03 real 0.01 user 0.01 sys
There are also some StackOverflow errors that mention Cursive namespaces/classes in the IDEA log, but I'm not sure whether they're related to this or something else.
I've tried multiple, yeah. I just created a new project that has just {:deps {org.clojure/core.cache {:mvn/version "0.7.1"}}}
in the deps.edn
file.
Hmm, actually I see the timeout is 1 sec, I remember bumping that up to 5 sec to make it work on my machine, but I donāt understand why it should take so long.
For some reason, the Shell path setting under Tools > Terminal was borked. I set it to /usr/local/bin/bash
and now it works.
Iām using an IntelliJ utility class to execute that process, I never imagined it would use that setting.
Well, sorry about the wild goose chase, but I guess something useful came out of this, at least.
Yes, absolutely. Iāll debug that tomorrow and see if I can figure out where that value is being used. If it does turn out to be important Iāll flag an error if what it points to doesnāt exist or isnāt an executable file.
But probably Iāll just execute that process another way - it shouldnāt require a full shell. I wonder if thatās why it took so long on my machine.
Anyway, thank you very much for deps.edn
support! Seems to work great now that that got sorted out.
Great! Let me know if there are any other issues, Iāll get another build out soon fixing any issues people find.
@flowthing BTW are you on OSX?
Would it be possible to somehow resolve such require
s? Or at least remove the highlighting for such statements.
Maybe it would be possible to not mark anything as unresolved when the first item in a vector in :require
in CLJS is a string?
I switched the project by deleting the .idea and .iml file in my project, selecting "Import Project", selected my project folder, and then chose Deps. Not sure if there is an easier way to do that. Is there a way to specify aliases Cursive should use to resolve things?
What I sometime do is open the project from the project.clj file, opening from deps.edn probably works, and then choose recreate project or something like that.
@U0567Q30W The little banner that usually says "Add project" did not appear.
Oh, you mean that there wasnāt a menu item for that? Yes, I havenāt added that yet.
But if you close the project, then open it again using the deps.edn instead of the project.clj, I would hope that will work - Iāll test that today.
@U0567Q30W Does open it using deps.edn mean clicking Open then selecting the actual deps.edn file in the file browser?
is there a way to get cursive licenses to work with the intellij license server? caveat: I have no idea what any of that means
@gfredericks No, but I was waiting for someone to ask about it.
(the tl;dr is that you have your licences registered with a server that the IDE checks against, instead of mailing licence files around)
modulo the above caveat, I believe so
we already do our intellij licenses that way, and the cursive ones are manual and every year some sort of mystical process happens
Yeah, I have no idea how companies with lots of licences manage it. A few of them have written to me from time to time saying some variation on āwe have a total mess internally, this is nutsā.
but they never ask about the license server thingamabob?
There is a possibility that that might happen in the future, but I donāt know when (relies on JetBrains)
does this mean you'll start the process and it'll just be blocked on them, or you'll wait for more users to ask for it?
It requires them to develop functionality, they were planning it for this year but I donāt know if that will happen. Thereās also uncertainty about how it will work, i.e. migrating existing licences onto their system.
roger; thanks
I even added a FAQ entry before I released in anticipation of the questions which never came š
No, currently it tries to add all source roots etc that it can. Is this for dependencies?
I guess this should work more or less like the lein integration, where you can choose which you want to use.