Fork me on GitHub
#boot
<
2016-03-16
>
eveline10:03:26

Hi everyone, I'm using boot on windows 10 but i'm having problems. When I save a file, I get a lot of java.io.IOException: Couldn't delete exceptions. I found some related issues on the internet, but it seems this should have been solved with clojure 1.8.0? Does anyone have some insight in this?

dm310:03:40

@eveline: what version of Boot are you using?

eveline10:03:36

I have tried 2.6.0-SNAPSHOT and 2.5.5

alandipert11:03:18

@eveline: can you please paste output of boot -V

eveline11:03:40

BOOT_CLOJURE_NAME=org.clojure/clojure
BOOT_CLOJURE_VERSION=1.8.0
BOOT_VERSION=2.6.0-SNAPSHOT 

alandipert11:03:26

Hmm looks good

alandipert11:03:08

And when you do boot REPL, it says clojure 1.8?

eveline11:03:43

Hmmm, I hadn't tried that yet - and i get this error:

clojure.lang.ExceptionInfo: java.lang.IllegalArgumentException: No such task (REPL)
    data: {:file
           "C:\\Users\\eveline\\AppData\\Local\\Temp\\boot.user7771413294044418362.clj",
           :line 41}
java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: No such task (REPL) 

alandipert11:03:23

Oh sorry, it's repl lower case. My iPad is dumb

eveline11:03:27

jup, clojure 1.8.0

alandipert11:03:58

There was a thread about this on a boot issue on github iirc

alandipert11:03:27

Have you run across yet? It might have more info. It would have the Windows tag on it

eveline11:03:57

yes, i found this issue https://github.com/boot-clj/boot/issues/117 - but this issue was supposed to be fixed with clojure 1.8.0

eveline11:03:04

if i understand correctly

alandipert11:03:02

Hmm maybe seancorfield will be able to help later. I believe he uses boot regularly on win 10, we can see what his setup is

alandipert11:03:43

Other options include Docker or VM

alandipert11:03:47

Oh also you could add to that issue with your setup info, maybe someone in the thread has more to say

eveline11:03:41

oke, thanks!

alandipert11:03:02

@eveline: btw are you able to reproduce the problem reliably? If so the project you're trying wth would be helpful to share

escherize11:03:38

@alandipert: enduro is one my fav libraries. totes under-rated. Thanks man!

alandipert11:03:31

Aha thanks. Yeah I try not to make anything too popular, because anything popular probably sucks 😏

eveline12:03:46

@alandipert: I can't share the project im working on, but with this project https://github.com/borkdude/lein2boot i'm having the exact same problem. Files in ~/.boot/cache can't be deleted because they are in use by java.exe .

alandipert12:03:58

@eveline: got it. so like boot dev in there triggers the problem?

alandipert12:03:32

@eveline: https://github.com/borkdude/lein2boot/blob/master/boot.properties stands out - if a project has this, it will override your ~/.boot/boot.properties. maybe the project you're working on has one?

alandipert12:03:56

(to check - run boot -V in the project directory)

eveline12:03:28

yes it has this, but i updated it

nha14:03:34

Hello, Trying to debug an issue : I am specifying Clojure 1.8 in my dependencies but it is not picked up (ex. in boot repl / boot dev).

boot repl
nREPL server started on port 62853 on host 127.0.0.1 - 
REPL-y 0.3.7, nREPL 0.2.12
Clojure 1.7.0
Java HotSpot(TM) 64-Bit Server VM 1.8.0_60-b27
        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")
boot.user=> (println *clojure-version*)
{:major 1, :minor 7, :incremental 0, :qualifier nil}
nil
So I did boot show-p, however it seems to say that I am using Clojure 1.8 (I specify it in my dependencies).
[✔] org.clojure/clojure
    ✔ 1.8.0
      org.clojure/clojure
    ✘ 1.7.0-RC1
      weasel
    ✘ 1.7.0
      cljs-ajax
      compojure
      devcards
      com.stuartsierra/component
      juxt.modular/bidi
      kibu/pushy
      org.clojure/clojurescript
      org.danielsz/system
      pandeiro/boot-http
      [...]

dm314:03:21

what does boot -V say?

nha14:03:43

boot -V

#
#Wed Mar 16 15:21:30 CET 2016
BOOT_CLOJURE_NAME=org.clojure/clojure
BOOT_CLOJURE_VERSION=1.7.0
BOOT_VERSION=2.5.5

nha14:03:20

BOOT_CLOJURE_VERSION=1.7.0 => BOOT_CLOJURE_VERSION=1.8.0 in my boot.properties

nha14:03:19

Thanks !

nha14:03:20

(and I thought I was using 1.8 all that time ^^)

eveline14:03:30

So, I have found my problem! In my dev task was (system :sys #'dev-system :auto true) which creates the IOExceptions! Does anyone know how to fix this problem? My complete dev task:

(deftask dev  []
  (comp
   (local-env)
   (watch)
   (less :source-map true)
   (reload :on-jsload 'relations-for-jira.core/render)
   (cljs-repl)
   (cljs)
   (system :sys #'dev-system :auto true))) 

martinklepsch14:03:54

@eveline: huh, interesting, what components are in your dev system? maybe one of them isn't working correctly keeping the files open?

eveline15:03:31

This is the dev system code, i have not written it myself - so it is hard for me to see where the problem is

seancorfield16:03:14

(I saw my name invoked earlier but it looks like progress has been made — FWIW, whilst I "regularly" use Boot on Windows 10, I wouldn’t say that I do anything particularly extensive with it… just small build / install / deploy tasks on projects, mainly)

laforge4917:03:38

@micha Many thanks for recommending clojure proxy. over gen-class. Eliminating aot solves a lot of problems, and the code is more idiomatic as well. simple_smile

micha18:03:30

@laforge49: happy to hear it worked!