This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-12-31
Channels
- # adventofcode (15)
- # announcements (8)
- # babashka (16)
- # beginners (48)
- # braveandtrue (5)
- # calva (54)
- # cider (7)
- # clara (8)
- # clj-kondo (3)
- # cljdoc (3)
- # clojure (37)
- # clojure-europe (1)
- # clojure-italy (15)
- # clojure-losangeles (2)
- # clojure-nl (15)
- # clojure-uk (6)
- # clojurescript (145)
- # community-development (53)
- # cursive (20)
- # data-science (8)
- # datomic (23)
- # duct (2)
- # emacs (22)
- # fulcro (16)
- # gorilla (7)
- # graalvm (7)
- # hoplon (1)
- # malli (7)
- # off-topic (8)
- # rewrite-clj (2)
- # ring (9)
- # spacemacs (2)
- # specter (1)
- # tools-deps (25)
- # vrac (1)
is there an example of using gorilla with clojure cli tools? (quick googling hasn't yielded any useful results)
I've looked into what does the lein-gorilla
plugin do, but when I try to replicate it in a tools deps project I get the following error:
$ clj -Srepro -Sdeps '{org.clojure/clojure {:mvn/version "1.10.1"} org.clojars.benfb/gorilla-repl {:mvn/version "0.5.2"}}' -e "(use 'gorilla-repl.core)"
Execution error (FileNotFoundException) at user/eval1 (REPL:1).
Could not locate gorilla_repl/core__init.class, gorilla_repl/core.clj or gorilla_repl/core.cljc on classpath. Please check that namespaces with dashes use underscores in the Clojure file name.
0.6.0
works in a fresh lein project 😕
onetom@lynx gorilla % lein new gorilla-test
Generating a project called gorilla-test based on the 'default' template.
The default template is intended for library projects, not applications.
To see other templates (app, plugin, etc), try `lein help new`.
onetom@lynx gorilla % cd gorilla-test
onetom@lynx gorilla-test % lein change :dependencies conj '[org.clojars.benfb/gorilla-repl "0.6.0"]'
onetom@lynx gorilla-test % echo "(use 'gorilla-repl.core) (run-gorilla-server {})" | lein repl
nREPL server started on port 64158 on host 127.0.0.1 -
REPL-y 0.4.3, nREPL 0.6.0
Clojure 1.10.0
OpenJDK 64-Bit Server VM 1.8.0_222-b10
...
gorilla-test.core=> (use 'gorilla-repl.core) (run-gorilla-server {})
nil
Gorilla-REPL: develop
Unable to reach update server.
Started nREPL server on port 64167
Running at .
Ctrl+C to exit.
nil
gorilla-test.core=> Bye for now!
ok, my deps specification was incorrect. this works:
% clj -Srepro -Sdeps '{:deps {org.clojars.benfb/gorilla-repl {:mvn/version "0.6.0"}}}' -e "(use 'gorilla-repl.core) (run-gorilla-server {})"
Gorilla-REPL: develop
Unable to reach update server.
Started nREPL server on port 50946
Running at .
Ctrl+C to exit.