This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-03-16
Channels
- # aatree (1)
- # admin-announcements (6)
- # alda (3)
- # beginners (66)
- # boot (41)
- # cider (4)
- # cljsjs (3)
- # cljsrn (18)
- # clojure (146)
- # clojure-android (2)
- # clojure-nl (1)
- # clojure-russia (35)
- # clojure-sdn (2)
- # clojure-sg (5)
- # clojure-uk (41)
- # clojurescript (116)
- # datomic (12)
- # dirac (40)
- # docker (2)
- # editors (2)
- # hoplon (85)
- # immutant (19)
- # jobs (1)
- # keechma (2)
- # lein-figwheel (8)
- # mount (33)
- # off-topic (1)
- # om (114)
- # onyx (159)
- # parinfer (24)
- # proton (3)
- # reagent (4)
- # ring-swagger (15)
- # uncomplicate (7)
- # untangled (93)
- # yada (30)
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?
@eveline: can you please paste output of boot -V
BOOT_CLOJURE_NAME=org.clojure/clojure
BOOT_CLOJURE_VERSION=1.8.0
BOOT_VERSION=2.6.0-SNAPSHOT
Hmm looks good
And when you do boot REPL, it says clojure 1.8?
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)
Oh sorry, it's repl lower case. My iPad is dumb
There was a thread about this on a boot issue on github iirc
Have you run across yet? It might have more info. It would have the Windows tag on it
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
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
Other options include Docker or VM
Oh also you could add to that issue with your setup info, maybe someone in the thread has more to say
@eveline: btw are you able to reproduce the problem reliably? If so the project you're trying wth would be helpful to share
@alandipert: enduro is one my fav libraries. totes under-rated. Thanks man!
Aha thanks. Yeah I try not to make anything too popular, because anything popular probably sucks 😏
@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
.
@eveline: got it. so like boot dev
in there triggers the problem?
@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?
(to check - run boot -V
in the project directory)
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
[...]
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
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)))
@eveline: huh, interesting, what components are in your dev system? maybe one of them isn't working correctly keeping the files open?
This is the dev system code, i have not written it myself - so it is hard for me to see where the problem is
(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)
@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.
@laforge49: happy to hear it worked!