This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-08-24
Channels
- # announcements (26)
- # babashka (9)
- # beginners (63)
- # calva (2)
- # chlorine-clover (22)
- # cider (2)
- # cljsrn (8)
- # clojure (36)
- # clojure-europe (36)
- # clojure-italy (5)
- # clojure-nl (76)
- # clojure-spec (9)
- # clojure-uk (8)
- # clojurescript (39)
- # conjure (24)
- # cursive (19)
- # data-science (1)
- # datascript (10)
- # datomic (1)
- # emacs (2)
- # events (5)
- # figwheel-main (9)
- # fulcro (21)
- # graalvm (1)
- # helix (5)
- # jobs (1)
- # jobs-discuss (1)
- # kaocha (1)
- # leiningen (4)
- # meander (2)
- # off-topic (22)
- # re-frame (16)
- # reitit (3)
- # rewrite-clj (75)
- # rum (1)
- # sci (51)
- # shadow-cljs (110)
- # tools-deps (16)
- # vrac (9)
- # xtdb (23)
I imported a shared (deps-based, via :local/root
) library as a module into an existsing deps-project. It seems that the paths are not resolved correctly for that module if the paths are defined under a alias, e.g.
{:aliases {:backend {:extra-paths ["src/clj"]}}}
If I put all the paths into top :paths
it works correctly.
{:paths ["src/clj" "resources"]}
How can I work with deps-modules with paths under aliases?Can’t figure out how to do that. In the Deps
section I can see both modules, but only 1 set of aliases, which are from the main project. I don’t know how to enable :dev
profile just for the added module.
resolved: removing the src
from sources makes it work. so, having src
at top-level and src/clj
under alias made it to fail.
Oh, so the problem is that src
was present, but is not the actual source root - is that right? You don’t have code directly under src
?
no code directly under src
directly, just subfolders clj
, cljc
and cljs
with the actual sources.
I'm having some trouble refreshing deps-based projects using Cursive - the error I get is 'Command failed when executing /usr/local/bin/clojure'. Going in to the settings, I can see it's pointing to that path but it seems like it can't correctly pick up the clojure executable there as it also has 'Command failed' just under it rather than the clojure version. I can run clojure using the terminal - what am I missing here?
Do you have anything in your log saying Output from <command>
where command is probably /usr/local/bin/clojure
? Help->Show log in Finder/Explorer/whatever
#cursive.deps.DepsSettings - Output from /usr/local/bin/clojure -Sdescribe: Couldn't find 'java'. Please set JAVA_HOME.