Fork me on GitHub
#boot
<
2019-09-04
>
fabrao00:09:57

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.

fabrao00:09:35

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

fabrao00:09:03

anything happens with anyone?

seancorfield00:09:22

@fabrao Can you clarify what you mean by "latest boot template"?

seancorfield00:09:14

Also, how are you running that? From a command line? Trying to start Boot via CIDER jack in?

seancorfield00:09:35

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.

fabrao00:09:41

boot -d boot/new new -t app -n myapp

fabrao00:09:01

and after CIDER jack in

fabrao00:09:39

@seancorfield thats the way it happens

fabrao00:09:24

maybe fix nrepl deps?

fabrao00:09:47

[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

seancorfield01:09:58

And you didn't change your build.boot after creating the new app project?

seancorfield01:09:41

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.

fabrao01:09:07

sure, that it was happen

fabrao01:09:25

boot repl
[WARNING] No nREPL middleware descriptor in metadata of [email protected], 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=>

seancorfield01:09:20

What does boot -V show you?

seancorfield01:09:06

In a freshly created myapp folder, using exactly the command you used to create the app, boot repl gives me this

[email protected]:~/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
[email protected]:~/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
[email protected]:~/clojure/myapp$        

seancorfield01:09:21

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.

seancorfield01:09:56

(I updated my ~/.boot/boot.properties file to specify Clojure 1.10.1 and my conflict went away, FYI)

seancorfield01:09:51

@fabrao You'll need to share the error you are seeing in the #cider channel so that they understand what you are asking about...

fabrao02:09:23

I removed cider from my Emacs, installed it again and tried, and it works

fabrao02:09:50

I think it was old version of cider

michael.heuberger04:09:27

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

michael.heuberger04:09:13

here a minimal failure case. just run boot dev and you will see the above error. no idea what this is.

flyboarder16:09:29

@michael.heuberger it’s telling you that you cannot use npm package names as a namespace

flyboarder16:09:45

I recommend compiling with shadow-cljs if you want that functionality

michael.heuberger21:09:56

Really? Can’t boot-clj deal with scoped npm packages?

michael.heuberger21:09:18

Shadow-cljs … how can we add that to boot-clj based on my above example?