Fork me on GitHub
#beginners
<
2022-01-09
>
dreamer05:01:19

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)

dreamer07:01:28

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.

popeye07:01:48

do you have curl command installed?

dreamer13:01:04

command not found, curl. what should i do?

popeye13:01:25

Try install that and follow as Linux clojure installation

seancorfield22:01:48

It's

brew install clojure/tools/clojure
not
brew install/clojure/tools/clojure
(which is what you posted)

seancorfield22:01:44

I've used brew install clojure/tools/clojure on macOS several times and it works fine @U6K32QRJL

dreamer01:01:02

thanks. But still not solved. “rlwrap’ is not installed on my macbook, is this a problem? and my java jdk 11 -> problem?

seancorfield01:01:49

brew install rlwrap

seancorfield01:01:09

What do you mean by "and my java jdk 11 -> problem?" ?

dreamer03:01:38

open jdk version 17 …became..

seancorfield03:01:35

Because you did brew install clojure instead of brew install clojure/tools/clojure.

seancorfield03:01:56

The former is controlled by the brew team and they force the latest version of every dependency on people.

seancorfield03:01:20

The latter is controlled by the Clojure core team and assumes you will install whatever version of Java you want to use.

dreamer09:01:09

thanks, I solved it

popeye09:01:55

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"]]}

Benjamin12:01:25

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

jaihindhreddy16:01:55

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.

fadrian13:01:53

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]             [ :as io]))   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?

fearnoeval13:01:40

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 ()

fearnoeval13:01:05

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.

fadrian14:01:25

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.

👍 1
dpsutton15:01:28

There is no Clojure 1.10.4. Your repl cannot start up likely due to not finding the deps you are looking for

Dmitrii Pisarenko17:01:24

Hello! Is there way to easily deploy a ClojureScript/Reagent web application to Heroku?

Chase18:01:49

I imagine easier if you are just doing the front end and not full stack

mal19:01:02

https://github.com/plexus/chestnut maybe? Just looked at my bookmarks for heroku and clojurescript 🙂

Cora (she/her)19:01:15

ultra basic example app with support for deploying to heroku

Cora (she/her)19:01:50

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

drewverlee23:01:03

[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.