This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-03-29
Channels
- # beginners (14)
- # boot (83)
- # cider (13)
- # cljsrn (4)
- # clojure (240)
- # clojure-argentina (1)
- # clojure-berlin (2)
- # clojure-canada (1)
- # clojure-dusseldorf (1)
- # clojure-greece (2)
- # clojure-india (2)
- # clojure-japan (2)
- # clojure-russia (23)
- # clojure-taiwan (2)
- # clojure-uk (12)
- # clojurescript (138)
- # cursive (6)
- # datomic (36)
- # hoplon (245)
- # jobs-discuss (35)
- # lein-figwheel (4)
- # melbourne (2)
- # off-topic (1)
- # om (26)
- # om-next (2)
- # onyx (23)
- # proton (8)
- # quil (1)
- # re-frame (9)
- # ring-swagger (2)
- # untangled (10)
- # yada (6)
(set-env!
:source-paths #{"src"}
:resource-paths #{"resources"}
:dependencies'[[org.clojure/clojurescript "1.8.40"]
[adzerk/boot-reload "0.4.6"]
[adzerk/boot-cljs-repl "0.3.0"]
[adzerk/boot-cljs "1.7.228-1" :scope "test"]
[com.cemerick/piggieback "0.2.1" :scope "test"]
[weasel "0.7.0" :scope "test"]
[org.clojure/tools.nrepl "0.2.12" :scope "test"]])
❯ boot dev 02:52:16 PM 9s 589ms → 1
clojure.lang.ExceptionInfo: org.clojure
data: {:file "/tmp/boot.user5470485860592388448.clj", :line 5}
java.lang.ClassNotFoundException: org.clojure
...
boot.main/-main/fn main.clj: 200
boot.main/-main main.clj: 200
...
boot.App.runBoot App.java: 403
boot.App.main App.java: 492
...
Boot.main Boot.java: 258
@jethroksy: Missing space after '
has anyone else faced the problem of localhost
getting trimmed off when initiating a websocket connection with boot-reload?
I get Uncaught SyntaxError: Failed to construct 'WebSocket': The URL 'ws://:33471' is invalid.
but localhost is all there:
❯ ag 33471 03:14:31 PM 2m 20s 943ms → 130
target/renderer.out/adzerk/boot_reload.cljs
2:(client/connect "" {:ws-host nil, :asset-host nil, :on-jsload (fn* [] (app.renderer/init))})
target/renderer.out/adzerk/boot_reload.js
6:adzerk.boot_reload.client.connect.call(null,"",new cljs.core.PersistentArrayMap(null, 3, [new cljs.core.Keyword(null,"ws-host","ws-host",587956291),null,new cljs.core.Keyword(null,"asset-host","asset-host",-899289050),null,new cljs.core.Keyword(null,"on-jsload","on-jsload",-395756602),(function (){
I'm trying to get cljs to work with electron and boot, and I'm following @martinklepsch 's original code, just bumping the deps and changing some deprecated stuff https://github.com/jethrokuan/electron-cljs
ah okay issue resolved, I had to specifically add the :ws-host
option in boot-reload
should not be needed
@slotkenov: boot-http has a :handler
option which you can use to respond to requests however you want https://github.com/pandeiro/boot-http#3-start-server-with-given-ring-handler
hey guys im trying to set up new relic for my dear program
a lot of the tutorials show that lein has a 'java-agents' param to set. is there anything comparable to that in boot?
BOOT_JVM_OPTIONS
e.g. export BOOT_JVM_OPTIONS="-javaagent:/path/to/newrelic.jar"
then start boot
thank you sir
I'm trying to run boot tasks programmatically in my project. I added boot/core as a dependency and am running the boot
function meant for REPL use. Is there any issue with this? It seems to work, but when I close my program it throws an error about not finding a file in ~/.boot
, as if it's trying to do cleanup or something.
is boot the entrypoint to your program?
or are you e.g. running via your own main method
if not through boot, you'll run into weird issues... currently boot.App/main does a bunch of setup. it does stuff because it needs to run before any clojures are loaded
I'm running it in my own main method. Perhaps I can manually run boot.App/main to set everything up
cool, that's another way to do it
running boot.App/main
and passing the arguments to it seems to work. it seems to be much slower than I expected, so i wonder if it is starting a new process. also i was hoping to also include third-party tasks in my project’s dependencies, but with this technique I think I have to retrieve them by passing -d
, which isn’t ideal since it has to download it dynamically. nonetheless it seems to be a reliable way of doing it.
@sekao: what kind of project is it?
i see, neat
one way around -d is to ship with the dep jars and install them manually into the maven cache using boot.aether/install
vs. letting aether resolve and install them
well, you could still call set-env or -d, except aether wouldn't get them from the net since they'd already be in the cache
although i guess there's a chicken/egg problem there... since boot.aether needs boot to be running already to do its thing
i guess that could still be a way, but you'd have to install them using non-boot methods
i wonder if the slowness is due to this issue. i’m running boot-new by passing "-d" "seancorfield/boot-new”
to the main method, and i suppose it could be querying clojars every time to see if there is a new version of the task.
@sekao: nightcode is awesome btw, we've been using it for clojurebridge workshops and it's the best thing
@sekao: you could test by doing "-d" "seancorfield/boot-new:0.4.2"
(cli deps support a gradle-ish version syntax)
@martinklepsch: really great to hear! i’m experimenting with a rewrite that uses javafx for the UI and boot for the build system, we’ll see how it goes
@alandipert: seems slightly faster but may be my perception. i checked activity monitor and it doesn’t look like a new process is being spawned so i suppose it’s just the setup code
@sekao: when you do boot.App/main
and initialize things you can then create pods in which you can install dependencies etc
When I call boot pom jar push -r s3repo
. I get a stacktrace that looks like:
WARNING: Error Response: GET '/releases%2Fs3repo%2Fstormpath%2Fmaven-metadata.xml' -- ResponseCode: 404, ResponseStatus: Not Found, Request Headers: [Content-Type: , Date: Tue, 29 Mar 2016 23:25:18 GMT, Authorization: AWS AKI..., User-Agent: JetS3t/0.7.1 (Mac OS X/10.11.4; x86_64; en; JVM 1.8.0_60), Host: , Response Headers: [x-amz-request-id: 51C0..., x-amz-id-2: tV4DK..., Content-Type: application/xml, Transfer-Encoding: chunked, Date: Tue, 29 Mar 2016 23:25:18 GMT, Server: AmazonS3]
Mar 29, 2016 4:25:18 PM org.jets3t.service.impl.rest.httpclient.RestS3Service performRequest
SEVERE: Request Failed.
org.jets3t.service.S3ServiceException: S3 Error Message. GET '/releases%2Fs3repo%2Fstormpath%2Fmaven-metadata.xml' on Host '' @ 'Tue, 29 Mar 2016 23:25:18 GMT' -- ResponseCode: 404, ResponseStatus: Not Found, XML Error Message: <?xml version="1.0" encoding="UTF-8"?><Error><Code>NoSuchKey</Code><Message>The specified key does not exist.</Message><Key>releases/s3repo/stormpath/maven-metadata.xml</Key><RequestId>51C0...</RequestId></Error>
at org.jets3t.service.impl.rest.httpclient.RestS3Service.performRequest(RestS3Service.java:441)
at org.jets3t.service.impl.rest.httpclient.RestS3Service.performRestGet(RestS3Service.java:876)
at org.jets3t.service.impl.rest.httpclient.RestS3Service.getObjectImpl(RestS3Service.java:1712)
at org.jets3t.service.impl.rest.httpclient.RestS3Service.getObjectImpl(RestS3Service.java:1655)
at org.jets3t.service.S3Service.getObject(S3Service.java:2215)
at org.jets3t.service.S3Service.getObject(S3Service.java:1424)
at org.springframework.aws.maven.SimpleStorageServiceWagon.getResource(SimpleStorageServiceWagon.java:93)
at org.springframework.aws.maven.AbstractWagon.get(AbstractWagon.java:184)
at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$GetTask.run(WagonRepositoryConnector.java:601)
at org.sonatype.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:60)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Has anyone else experience a similar issue when pushing to a s3 repo? It seems like there is some sort of additional setup I need to do to the s3 repo..