This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-09-04
Channels
- # announcements (5)
- # aws (12)
- # beginners (76)
- # boot (29)
- # cider (24)
- # circleci (9)
- # clojure (64)
- # clojure-dev (27)
- # clojure-europe (3)
- # clojure-houston (1)
- # clojure-italy (33)
- # clojure-nl (19)
- # clojure-poland (1)
- # clojure-spec (6)
- # clojure-uk (20)
- # clojurescript (103)
- # clojutre (1)
- # code-reviews (60)
- # cursive (76)
- # data-science (20)
- # datomic (20)
- # duct (58)
- # figwheel-main (4)
- # fulcro (36)
- # graphql (6)
- # kaocha (4)
- # onyx (1)
- # pathom (15)
- # quil (3)
- # re-frame (15)
- # reagent (15)
- # reitit (9)
- # remote-jobs (2)
- # rewrite-clj (16)
- # ring-swagger (7)
- # shadow-cljs (132)
- # spacemacs (12)
- # sql (5)
- # vim (9)
- # xtdb (12)
- # yada (4)
Hello all, I´m trying with latest boot template and I´m getting this error java.io.FileNotFoundException: Could not locate nrepl/middleware/caught__init.class, nrepl/middleware/caught.clj or nrepl/middleware/caught.cljc on classpath.
before that error in process sentinel: nrepl-server-sentinel: Could not start nREPL server: Classpath conflict: org.clojure/clojure version 1.10.1 already loaded, NOT loading version 1.2.0
@fabrao Can you clarify what you mean by "latest boot template"?
Also, how are you running that? From a command line? Trying to start Boot via CIDER jack in?
Overall, it looks like a dependency issue -- mismatched/outdated nREPL and/or Clojure -- so in addition to answering those questions, you probably need to share the :dependencies
part of your build.boot
file at least.
@seancorfield thats the way it happens
[nREPL] Starting server via "c:/ProgramData/chocolatey/bin/boot.exe" -i "(require 'cider.tasks)" -d "org.clojure/tools.nrepl:0.2.13" -d "refactor-nrepl:2.4.0" -d "cider/cider-nrepl:0.21.1" cider.tasks/add-middleware -m "refactor-nrepl.middleware/wrap-refactor" -m "cider.nrepl/cider-middleware" repl -s -H :: wait...
<- cider start
And you didn't change your build.boot
after creating the new app project?
If you can run boot repl
on the command line successfully, then your problem is with #cider versions I think so you should ask in that channel.
boot repl
[WARNING] No nREPL middleware descriptor in metadata of boot.repl$disable_exception_colors@c0bcefb, see nrepl.middleware/set-descriptor!
nREPL server started on port 61420 on host 127.0.0.1 -
REPL-y 0.4.3, nREPL 0.6.0
Clojure 1.10.1
Java HotSpot(TM) 64-Bit Server VM 1.8.0_211-b12
Exit: Control+D or (exit) or (quit)
Commands: (user/help)
Docs: (doc function-name-here)
(find-doc "part-of-name-here")
Find by Name: (find-name "part-of-name-here")
Source: (source function-name-here)
Javadoc: (javadoc java-object-or-class-here)
Examples from : [clojuredocs or cdoc]
(user/clojuredocs name-here)
(user/clojuredocs "ns-here" "name-here")
cap.core=>
What does boot -V
show you?
In a freshly created myapp
folder, using exactly the command you used to create the app, boot repl
gives me this
seanc@DESKTOP-QU2UJ1N:~/clojure/myapp$ boot repl
Classpath conflict: org.clojure/clojure version 1.8.0 already loaded, NOT loading version 1.10.1
nREPL server started on port 56255 on host 127.0.0.1 -
REPL-y 0.4.3, nREPL 0.6.0
Clojure 1.8.0
OpenJDK 64-Bit Server VM 10.0.2+13-Ubuntu-1ubuntu0.18.04.4
Exit: Control+D or (exit) or (quit)
Commands: (user/help)
Docs: (doc function-name-here)
(find-doc "part-of-name-here")
Find by Name: (find-name "part-of-name-here")
Source: (source function-name-here)
Javadoc: (javadoc java-object-or-class-here)
Examples from : [clojuredocs or cdoc]
(user/clojuredocs name-here)
(user/clojuredocs "ns-here" "name-here")
myapp.core=>
Note the conflict because seanc@DESKTOP-QU2UJ1N:~/clojure/myapp$ cat ~/.boot/boot.properties
#
#Tue Sep 03 18:20:04 PDT 2019
BOOT_VERSION=2.8.3
BOOT_CLOJURE_VERSION=1.8.0
BOOT_CLOJURE_NAME=org.clojure/clojure
seanc@DESKTOP-QU2UJ1N:~/clojure/myapp$
For you to get the conflict you did, with Clojure 1.2.0, you either have it specified somewhere or you have a version range that is pulling it in. That definitely isn't helping.
(I updated my ~/.boot/boot.properties
file to specify Clojure 1.10.1 and my conflict went away, FYI)
@fabrao You'll need to share the error you are seeing in the #cider channel so that they understand what you are asking about...
hello folks, having a problem here compiling via boot using a scoped npm package. always errors:
No such namespace: @microsoft/office-js, could not locate _CIRCA_microsoft_SLASH_office_js.cljs, _CIRCA_microsoft_SLASH_office_js.cljc, or JavaScript source providing "@microsoft/office-js" (Please check that namespaces with dashes use underscores in the ClojureScript file name) in file src/app.cljs
here a minimal failure case. just run boot dev
and you will see the above error. no idea what this is.
@michael.heuberger it’s telling you that you cannot use npm package names as a namespace
I recommend compiling with shadow-cljs if you want that functionality
Really? Can’t boot-clj deal with scoped npm packages?
Shadow-cljs … how can we add that to boot-clj based on my above example?