This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-03-13
Channels
- # atlanta-clojurians (1)
- # beginners (148)
- # boot (13)
- # capetown (1)
- # cider (38)
- # cljs-dev (92)
- # clojure (61)
- # clojure-brasil (1)
- # clojure-dev (6)
- # clojure-italy (21)
- # clojure-losangeles (1)
- # clojure-nl (7)
- # clojure-norway (20)
- # clojure-spec (70)
- # clojure-uk (64)
- # clojurescript (69)
- # core-async (11)
- # cursive (6)
- # data-science (2)
- # datomic (50)
- # docker (2)
- # duct (12)
- # figwheel (1)
- # fulcro (81)
- # graphql (19)
- # jobs (3)
- # jobs-discuss (44)
- # keechma (1)
- # leiningen (1)
- # mount (2)
- # off-topic (10)
- # onyx (19)
- # parinfer (3)
- # portkey (6)
- # re-frame (4)
- # reagent (145)
- # reitit (1)
- # ring (1)
- # ring-swagger (2)
- # specter (1)
- # sql (4)
- # tools-deps (43)
- # unrepl (29)
- # vim (1)
trying clojure.tools.gitlibs
, I get a failure loading slf4j:
user=> (require '[clojure.tools.gitlibs :as gl])
nil
user=> (gl/resolve "" "cc1305534b1371df3962fd46503dd0478d81a08a")
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See for further details.
NullPointerException clojure.string/starts-with? (string.clj:364)
adding slf4j-simple to class path resolves that warning but doesn’t affect the error
ok, I removed the braintripping
directories from ~/.gitlibs/_repos
(inside <mailto:[email protected]|[email protected]> and http://github.com) and now it works
Reproduction steps:
1. create an empty directory at ~/.gitlibs/_repos/github.com/<user>/<repo>
2. try loading any version of
with deps
=> NullPointerException
my original empty dir was somehow created by gitlibs, maybe while I was trying to figure out how to properly specify a root dir
If you want to file a jira at https://dev.clojure.org/jira/browse/TDEPS I’m sure that can be improved
then we could set that with an -e "(set! clojure.main/*main-repl-fn* rebel-readline.main/repl)"
clojure.main is in Clojure, so this would require a change in Clojure 1.10. I think ultimately we’ll want a change that does something like that. But I’d like to look at a shorter range version.
@dominicm I was just trying to think of a lightweight way for clj to inject rebel-readline, adding an inline dep and extra e arg would be easy
Currently, I have
:rebel {:extra-deps {com.bhauman/rebel-readline {:mvn/version "RELEASE"}}
:main-opts ["-m" "rebel-readline.main"]}
in my ~/.clojure/deps.edn
file and just say clj -A:rebel
when I want a rebel REPL...@seancorfield do you have your handy snippet for clj
+ socket server?
This one?
:socket {:jvm-opts ["-Dclojure.server.repl={:port,5555,:accept,clojure.core.server/repl}"]}
clj -J-Dclojure.server.repl={:port,5555,:accept,clojure.core.server/repl} -A:dev:build
is giving me
Caused by: java.lang.IllegalArgumentException: Don't know how to create ISeq from: clojure.lang.Symbol
at clojure.lang.RT.seqFrom(RT.java:547)
at clojure.lang.RT.seq(RT.java:527)
at clojure.lang.APersistentMap.cons(APersistentMap.java:40)
at clojure.lang.RT.conj(RT.java:667)
at clojure.core$conj__4932.invokeStatic(core.clj:85)
at clojure.core$merge$fn__5498.invoke(core.clj:3029)
at clojure.core$reduce1.invokeStatic(core.clj:936)
at clojure.core$reduce1.invokeStatic(core.clj:926)
at clojure.core$merge.invokeStatic(core.clj:3028)
at clojure.core.server$parse_props$fn__8321.invoke(server.clj:149)
at clojure.core.protocols$naive_seq_reduce.invokeStatic(protocols.clj:62)
at clojure.core.protocols$interface_or_naive_reduce.invokeStatic(protocols.clj:72)
at clojure.core.protocols$fn__7665.invokeStatic(protocols.clj:168)
at clojure.core.protocols$fn__7665.invoke(protocols.clj:124)
at clojure.core.protocols$fn__7620$G__7615__7629.invoke(protocols.clj:19)
at clojure.core.protocols$seq_reduce.invokeStatic(protocols.clj:31)
at clojure.core.protocols$fn__7642.invokeStatic(protocols.clj:75)
at clojure.core.protocols$fn__7642.invoke(protocols.clj:75)
at clojure.core.protocols$fn__7594$G__7589__7607.invoke(protocols.clj:13)
at clojure.core$reduce.invokeStatic(core.clj:6704)
at clojure.core.server$parse_props.invokeStatic(server.clj:143)
at clojure.core.server$start_servers.invokeStatic(server.clj:154)
at clojure.core.server$start_servers.invoke(server.clj:154)
at clojure.lang.Var.invoke(Var.java:381)
at clojure.lang.RT.doInit(RT.java:486)
at clojure.lang.RT.<clinit>(RT.java:333)
... 1 more
java.lang.NoClassDefFoundError: Could not initialize class clojure.lang.RT
at clojure.lang.PersistentQueue.pop(PersistentQueue.java:113)
at clojure.lang.PersistentQueue.pop(PersistentQueue.java:25)
at clojure.lang.Agent$Action.doRun(Agent.java:149)
at clojure.lang.Agent$Action.run(Agent.java:163)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
which is interestingYou need "..."
around it.
clj -J"-Dclojure..."
Or this
clj -J-Dclojure.server.repl="{:port,5555,:accept,clojure.core.server/repl}"
(! 614)-> clj -J-Dclojure.server.repl="{:port,5555,:accept,clojure.core.server/repl}"
Clojure 1.9.0
user=> ^D
Tue Mar 13 15:32:30
(sean)-(jobs:0)-(~/clojure/lsnape)
(! 615)-> clj -J-Dclojure.server.repl={:port,5555,:accept,clojure.core.server/repl}
Exception in thread "main" java.lang.ExceptionInInitializerError
at clojure.main.<clinit>(main.java:20)
Caused by: java.lang.IllegalArgumentException: Don't know how to create ISeq from: clojure.lang.Symbol
I get the exception without the quotes -- but it works with quotes as seen above.