This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-10-18
Channels
- # announcements (1)
- # babashka (8)
- # beginners (20)
- # calva (2)
- # clara (17)
- # cljsrn (7)
- # clojure (45)
- # clojure-australia (1)
- # clojure-europe (5)
- # clojure-spec (7)
- # clojure-uk (2)
- # clojurescript (30)
- # cursive (3)
- # data-science (1)
- # datomic (2)
- # emacs (9)
- # events (2)
- # figwheel-main (1)
- # fulcro (4)
- # luminus (2)
- # malli (2)
- # pathom (10)
- # re-frame (44)
- # reagent (5)
- # reitit (4)
- # remote-jobs (1)
- # rum (1)
- # sci (2)
- # uncomplicate (2)
- # xtdb (21)
@stopachka i'm also a rewrite-clj* user and think it is a fine alternative -- there is also: https://github.com/carocad/parcera (which i am also a user of)
I'm trying to launch a clj project from a main entry point using the instructions https://www.clojure.org/guides/deps_and_cli#_using_a_main, but am getting the following error
$ clj -X hello/run
Execution error (FileNotFoundException) at java.io.FileInputStream/open0 (FileInputStream.java:-2).
-X (No such file or directory)
Full report at:
/tmp/clojure-8241978478714474545.edn
It looks like it's trying to find the file -X
. What am I doing wrong?Also tried with this deps.edn
{:paths ["src"]
:aliases
{:main {:exec-fn main/run}}}
and this main.clj
(ns main)
(defn run [opts]
(println "Hello, World"))
running clj -X:main
same resultWhat OS? What is the output of clj -Sdescribe
?
OS is Ubuntu, -Sdescribe is
$ clj -Sdescribe
{:version "1.10.1.483"
:config-files ["/usr/local/lib/clojure/deps.edn" "/home/joe/.clojure/deps.edn" "deps.edn" ]
:config-user "/home/joe/.clojure/deps.edn"
:config-project "deps.edn"
:install-dir "/usr/local/lib/clojure"
:config-dir "/home/joe/.clojure"
:cache-dir ".cpcache"
:force false
:repro false
:resolve-aliases ""
:classpath-aliases ""
:jvm-aliases ""
:main-aliases ""
:all-aliases ""}
I believe that is a version before the -X
option was implemented.
No facepalm required -- the Clojure CLI tools have been going through a fair number of changes this past several months, so it is easy to have an older version that doesn't have all the latest features
hi all, how can I get (in separate lines)
"hello
world"
instead of "hello world" while running (str "hello " "world").you need a newline character then. (str "hello" "\n" "world")
or just "hello\nworld"
@dpsutton I want to concatenate some strings and get result similar to JSON format as can be seen in this example, not all on one line
{
"name": "John",
"age": 30
}
(clojure.string/join "\n" ["your" "collection" "of" "strings"])
-> "your\ncollection\nof\nstrings"
which will have the newlines you want
Hii, I was wondering if vim-fireplace is still relevant and usable or should I just migrate to neovim and vim-iced?