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
anything happens with anyone?
@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.
boot -d boot/new new -t app -n myapp
and after CIDER jack in
@seancorfield thats the way it happens
maybe fix nrepl deps?
[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.
sure, that it was happen
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 - <nrepl://127.0.0.1:61420>
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 <http://clojuredocs.org|clojuredocs.org>: [clojuredocs or cdoc]
(user/clojuredocs name-here)
(user/clojuredocs "ns-here" "name-here")
cap.core=>
quit
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 - <nrepl://127.0.0.1:56255>
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 <http://clojuredocs.org|clojuredocs.org>: [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
#<http://boot-clj.com>
#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...
I removed cider from my Emacs, installed it again and tried, and it works
I think it was old version of cider
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?