Fork me on GitHub
#cursive
<
2019-01-26
>
joshkh16:01:04

cursive is telling me that core clojure functions are not defined in my deps.edn based project. i found a related github project and the suggestion to reimport the project isn't working. šŸ™‚

joshkh16:01:17

also, i can't load namespaces in the repl (command + shift + L):

Loading src/clj/myproject/core.clj... 
Syntax error (FileNotFoundException) compiling at (core.clj:1:1).
Could not locate amazonica/aws/ec2__init.class, amazonica/aws/ec2.clj or amazonica/aws/ec2.cljc on classpath.

joshkh16:01:37

ah! upgrading to the latest stable release did the trick.

joshkh17:01:16

whoops, spoke too soon. still loads of unresolved functions.

WhoNeedszZz00:01:52

deps.edn support is still being worked out as it is itself relatively new. I can confirm it works correctly when using Leiningen so if you can use that I'd suggest doing that instead of fighting the tooling.

joshkh07:01:42

thanks for the tip! i love deps.edn too much to avoid it though. šŸ™‚

cfleming08:01:47

deps.edn support should be stable now.

cfleming08:01:58

Iā€™m not aware of any outstanding serious issues.

cfleming08:01:16

It is new though, so there may well be bugs šŸ™‚

WhoNeedszZz20:01:33

Ok well that's good to know. @U0GC1C09L What's so special about deps.edn that Leiningen doesn't do?

joshkh22:01:56

@UAFT1B7Q8 i like the ability to point to a git sha as a dependency (say on github) rather than a package tagged with a version number. deps.edn also makes it easier to work on multiple projects at the same time. i don't have to lein install them over and over as i make updates. also, aliases are really powerful. for example, i can launch my project in different ways for testing, or automate my deployments.

joshkh23:01:40

it's fast, lightweight, and with aliases i get the parts i need automate stuff. lein or boot can do that, of course, but in my experience it takes a little more effort.

WhoNeedszZz23:01:49

Interesting. What exactly do you mean about multiple projects at the same time? From what I'm seeing aliases are the same as profiles in Leiningen.