-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I can't run Dirac on MacOS, it keeps complaining about org.clojure/data.json - even though it is listed as a dependency #98
Comments
There should be a better way of doing this but below worked for me: Add this dependency to your
Should load okay, I noticed that it also needs Google Chrome Canary installed |
The dependency org.clojure/data.json was removed from ClojureScript in version 1.11.51 of May 13th 2022. See release notes https://clojurescript.org/news/2022-05-13-release: Vendorization of tools.reader, data.json, and transit-clj (...) After conferring with the Clojure Team, we decided to vendorize all these dependencies. This way we can AOT everything and be confident that we won’t create a conflict that can’t easily be fixed via normal dependency management. (...) The dependance on data.json has been removed This commit adds an explicit dependency on clojure.data.json. Fixes binaryage#98
Thank you for trying to help!
There is something weird here. When I opened the file ;; The deps.edn file describes the information needed to build a classpath.
;;
;; When using the `clojure` or `clj` script, there are several deps.edn files
;; that are combined:
;; - install-level
;; - user level (this file)
;; - project level (current directory when invoked)
;;
;; For all attributes other than :paths, these config files are merged left to right.
;; Only the last :paths is kept and others are dropped.
{
;; Paths
;; Directories in the current project to include in the classpath
;; :paths ["src"]
;; External dependencies
;; :deps {
;; org.clojure/clojure {:mvn/version "1.11.1"}
;; }
;; Aliases
;; resolve-deps aliases (-R) affect dependency resolution, options:
;; :extra-deps - specifies extra deps to add to :deps
;; :override-deps - specifies a coordinate to use instead of that in :deps
;; :default-deps - specifies a coordinate to use for a lib if one isn't found
;; make-classpath aliases (-C) affect the classpath generation, options:
;; :extra-paths - vector of additional paths to add to the classpath
;; :classpath-overrides - map of lib to path that overrides the result of resolving deps
;; :aliases {
;; :deps {:extra-deps {org.clojure/tools.deps.alpha {:mvn/version "0.14.1212"}}}
;; :test {:extra-paths ["test"]}
;; }
;; Provider attributes
;; :mvn/repos {
;; "central" {:url "https://repo1.maven.org/maven2/"}
;; "clojars" {:url "https://repo.clojars.org/"}
;; }
}
Is this expected? |
Please, see my question about this problem on StackOverflow. |
Hi,
I am trying to install Dirac on a Macbook Air M1 running Monterey 12.5.
I am following the documentation which indicates:
The installation seems to have worked out since it exists on binaries:
Unfortunately, when I go to the 2nd step on manual which is running
dirac
, the error below is retrieved:Initially, I tried running it at
home
folder. I thought it would work out fine.Then, I decided to run it inside a project folder that had the file
clojure/data/json.clj
included in the the
project.clj
file. Unfortunately, even this approach did not work out.Below you see a simplified version of the
project.clj
file:1 - I thought Dirac would work out even outside of the project folder. Is it necessary to be in the project folder?
2 - Why is Dirac complaining about the Json library even though it is listed as a dependency?
Is there any difference between
clojure/data/json.clj
(error message retrieved) andorg.clojure/data.json
(my dependency)?Thanks!
The text was updated successfully, but these errors were encountered: