This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-01-09
Channels
- # announcements (14)
- # babashka (2)
- # beginners (33)
- # calva (25)
- # cider (4)
- # clj-kondo (14)
- # clojure (11)
- # cursive (4)
- # datomic (3)
- # fulcro (53)
- # gratitude (3)
- # integrant (2)
- # leiningen (7)
- # lsp (10)
- # malli (34)
- # missionary (3)
- # off-topic (71)
- # other-languages (18)
- # pathom (1)
- # practicalli (2)
- # releases (1)
- # ring (4)
- # spacemacs (1)
- # vim (14)
hello, I begin clojure. but I am not clojure enviroment setting. please help me ( it is not brew install/clojure/tools/clojure/ I have Homebrew installed on my MacbookPro)
thank you, but….. Error: No similarly named formulae found. ==> Searching for a previously deleted formula (in the last month)... Error: No previously deleted formula found. ==> Searching taps on GitHub... Error: No formulae found in taps.
It's
brew install clojure/tools/clojure
not
brew install/clojure/tools/clojure
(which is what you posted)I've used brew install clojure/tools/clojure
on macOS several times and it works fine @U6K32QRJL
thanks. But still not solved. “rlwrap’ is not installed on my macbook, is this a problem? and my java jdk 11 -> problem?
brew install rlwrap
What do you mean by "and my java jdk 11 -> problem?" ?
Because you did brew install clojure
instead of brew install clojure/tools/clojure
.
The former is controlled by the brew team and they force the latest version of every dependency on people.
The latter is controlled by the Clojure core team and assumes you will install whatever version of Java you want to use.
I am using Ubuntu and I have defined below in my project.clj , But this only running less auto
, and not starting the server ? my co worked is using windows and both server and lein auto is running, Is there any issues with OS? Also I have referred https://stackoverflow.com/questions/47075245/run-more-than-one-lein-task-at-the-same-time
:aliases {"watch" ["pdo" ["figwheel" "dev-run"]
["less" "auto"]]}
is there an idiom for transducing for side effects?
I opted for (->> (educe..) (run! side-effecty))
. I guess the question would be if using educe
with map
for side effects is ok
map
is lazy, and not meant for side-effects.
doseq
and run!
are eager, and the right fit when you want to do side effects.
You chose right.
I am a newbie to deps.edn, which I am attempting to use on a new project. I have the following ns form in my .clj file:
(ns main.clojure.mapper
(:require [clojure.pprint :as clj-pp :refer [cl-format pprint]]
[clojure.data.csv :as csv]
[
I also have the following in my deps.edn file:
;;; deps.edn for mercator project
{:paths
`["src/main/clojure"]`
`:deps`
`{org.clojure/clojure {:mvn/version "1.10.4"}`
org.clojure/data.csv {:mvn/version "1.0.0"}
org.clojure/java.io {:mvn/version "1.10.3"}}
`}`
However, when I attempt to evaluate the ns form, my repl throws an error:
; Execution error (FileNotFoundException) at main.clojure.mapper/eval7530$loading (REPL:1).
; Could not locate clojure/data/csv__init.class, clojure/data/csv.clj or clojure/data/csv.cljc on classpath.
Any idea why Clojure can't find the clojure.data.csv dependency?
Did you perhaps start your REPL before creating the deps.edn
file or from a different directory? With your deps.edn
, I get a different error:
Error building classpath. Could not find artifact org.clojure:clojure:jar:1.10.4 in central ( )
Also,
is included with Clojure, so you'd get the same error for that after bumping Clojure down to 1.10.3
. With those two changes, though, it works for me.
Thanks for your help so far. I'm using Calva in VSCode for my development environment and now I'm having trouble jacking into the repl. So now I have to track that down, first before I can look at this further.
There is no Clojure 1.10.4. Your repl cannot start up likely due to not finding the deps you are looking for
Hello! Is there way to easily deploy a ClojureScript/Reagent web application to Heroku?
https://clojurians.slack.com/archives/C03S1KBA2/p1641427367193700?thread_ts=1641425187.192800&cid=C03S1KBA2 Recent convo I had with someone about that. It's doable.
https://github.com/plexus/chestnut maybe? Just looked at my bookmarks for heroku and clojurescript 🙂
ultra basic example app with support for deploying to heroku
chestnut looks nice. atemoia made some different library choices but that's the story of clojure in general: there's always more than one right way to do it
[edit] fixed. the file didn't have the write ns name. (i had added an extra bit at the start)
I want to require my .cljc code in my .cljs file by doing
(ns ... (:require [some.cljc.core :as core])
with the .cljc file (ns some.cljc.core (:require [clojure.core.async :as async])
I have a deps.edn file in both root directories and the cljs project is using :local/root
for development. I expect this to work, but instead i get a Bad dependency path or symbol: some.cljc.core
in my browser console. I'm not sure why. The error seems to be generated by figwheel.