boot

:boot-clj: https://boot-clj.github.io/ — build tooling for Clojure. Dev chat in #boot-dev
fabrao 2019-09-04T00:31:57.004100Z

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.

fabrao 2019-09-04T00:32:35.004400Z

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 2019-09-04T00:33:03.004800Z

anything happens with anyone?

seancorfield 2019-09-04T00:46:22.005400Z

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

seancorfield 2019-09-04T00:47:14.006200Z

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

seancorfield 2019-09-04T00:48:35.007300Z

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.

fabrao 2019-09-04T00:55:41.007600Z

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

fabrao 2019-09-04T00:56:01.007900Z

and after CIDER jack in

fabrao 2019-09-04T00:56:39.008300Z

@seancorfield thats the way it happens

fabrao 2019-09-04T00:57:24.008800Z

maybe fix nrepl deps?

fabrao 2019-09-04T00:57:47.009100Z

[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

seancorfield 2019-09-04T01:15:58.009600Z

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

seancorfield 2019-09-04T01:16:41.010300Z

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.

fabrao 2019-09-04T01:20:07.010700Z

sure, that it was happen

fabrao 2019-09-04T01:20:25.010900Z

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=&gt;

fabrao 2019-09-04T01:21:17.011100Z

quit

seancorfield 2019-09-04T01:23:20.011400Z

What does boot -V show you?

seancorfield 2019-09-04T01:25:06.012400Z

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=&gt;
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$        

seancorfield 2019-09-04T01:26:21.013500Z

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.

seancorfield 2019-09-04T01:27:56.014200Z

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

seancorfield 2019-09-04T01:28:51.014900Z

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

fabrao 2019-09-04T02:49:23.015700Z

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

fabrao 2019-09-04T02:49:50.016100Z

I think it was old version of cider

2019-09-04T04:37:27.016900Z

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

2019-09-04T04:38:13.017100Z

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

flyboarder 2019-09-04T16:14:29.018100Z

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

flyboarder 2019-09-04T16:14:45.018500Z

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

2019-09-04T21:15:56.019100Z

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

2019-09-04T21:16:18.019600Z

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