This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
(re: re-frame-template) After using the template to make a new application, and replacing the .woff file, the problem is fixed for that new application. However, if I use that same .woff file and put it in the lein template, make a new project ... the problem still exists. Seems like lein is mangling the .woff file and I am not sure why. @ul @zoldar @mikethompson
@gadfly361: I can see others having problems with lein and binary files: https://groups.google.com/forum/#!topic/clojure/4O76R_GM7g8
@gadfly361: possible solution. Notice use of binary
function here. https://github.com/http-kit/lein-template/blob/master/src/leiningen/new/http_kit.clj
@gadfly361: @mikethompson: Yes, I ran into the same and employed a similar solution (I can’t recall where I found it): https://github.com/mfikes/bocko-ios-template/blob/master/src/leiningen/new/bocko_ios.clj#L14
@minimal: i'm just trying to set that up. got autobuild* running from the repl, but the output js doesn't seem to connect to localhost:3449 at all. did you just follow the README?
@minimal: ah, makes sense was trying to get https://github.com/bhauman/lein-figwheel#using-figwheel-from-the-repl working but this seems fine for now
@sander: I’ve done cljs repl from the n-repl thing for while but it’s not working out so well recently with all the cljs repl changes. I use figwheel from the repl in one project but wanted to move back to vanilla lein figwheel
If you know of something cool you have in lein repl
but are missing in base CLJS REPL support, I’m attempting to compile a list here: https://gist.github.com/mfikes/4d94ad33f1d3460d3b12
@estsauver: I’m not familiar with those. Just took a peek and they appear to be plugins that provide some cool functionality. But, do they do anything while you are in a REPL?
Oh, oh, I’m sorry, I misread your message. I thought you were asking about cool lein plugins.
@estsauver: Ahh. Cool.
Aargh!!! Can't get a browser-repl working under Windows. Stupid backslashes in windows paths. Problem looks like this:
C:\Users\Patrick\code\ing>java -cp "cljs.jar;src" clojure.main repl.clj Compiling client js ... Waiting for browser to connect ... Exception in thread "Thread-3" java.util.regex.PatternSyntaxException: Illegal/unsupported escape sequence near index 3 C:\Users\Patrick\code\ing ^
Should be easy to fix but I can't seem to find a solution. Anyone using Windows with clojurescript?
pkobrien: not sure specifically, but a couple things that may be helpful: 1) no issues here on windows w/ the brepl: works fine w/ cljs quick start as well as my own projects
pkobrien: i have seen some stuff similar to that error using regexes. specifically, input pattern, string search, replace, etc
pkobrien: pretty sure i've been able to resolve it with extra backslashes: so a regex containing \d becomes \\d
@meow: ^ugh irc @mention context switch lol. also, was supposed to be a "2)" in there somewhere...that's all i got
@jackjames: Thanks. All I'm doing is going through the cljs quick start wiki instructions. Everything worked fine except for the brepl. I'm new to all of this but I've run some sandbox projects using figwheel without any problems. I was just avoiding lein as I went through nolan's instructions.
@meow: hmm, if you're following the quick start exactly step by step, that's tough. brepl def has worked for me consistently. only think i can think of is possibly something w/ the jdk version/flavor?
@jackjames: This is the first time I've run into this problem. I've been trying out a variety of react wrappers (om, reagent, re-frame, etc) and haven't had a single problem of this type - but they all use lein and/or lein figwheel
I'm going to see if using boot makes any difference - need a reason to play with boot anyway...
@meow: boot def not necessary (nor is lein nor figwheel, though figwheel is awesome): https://www.refheap.com/102260
@meow: that had a couple weird line wraps, fixed: https://www.refheap.com/102261
still suspect something weird w/ java. same error msg here, fixed after sorting out jdk version incompatibility: https://github.com/bhauman/lein-figwheel/issues/168
@jackjames: I'll create another project just to be sure, but that
@jon: I don't specify a path anywhere so I've got nothing to change to use double backslashes - the error is somewhere other than my code, I believe.
I'm determined to get this working because of david's tweet: https://twitter.com/swannodette/status/606495960374607873
@meow: i'd focus on java. if you have open jdk, try oracle. try uninstall/reinstall jdk. make sure nothing weird is going on w/ env vars. try in a clean vm. etc. def would guess it's something diff w/ your java
@jackjames: no, I'm not using cursive - just emacs. I was more focused on the fact that he said he was using the standard browser REPL.
@meow: ah. well, cursive is an equally important component to the workflow he's describing imo
@meow: yep, def works, just did it right now as you saw in the refheap. make sure you're downloading the 3308 jar from the link in the quick start, and make sure you're doing the whole "unblock" thing w/ that file (still after 100 years on windows have no idea what that does or if it could possibly make a difference here, but i always do it anyway)
@jackjames: I created a new project and it works - so I did something different in my project that I need to track down. Thank you for sticking with me.
@jackjames: finally found the problem - the html file must be named "index.html" and not something like "hello.html" - wonder why?
I see. You have to include the html file in the URL for localhost, like this: http://localhost:9000/gardening.html
Well, the error I got wasn't very helpful for figuring all of this out. Makes sense in hindsight. I had just not seen any examples of anything other than http://localhost:9000 so I didn't really grok the implied use of index.html there.
@jackjames: thanks for all of your help - much appreciated.
one small step... https://github.com/pkobrien/ing
I can’t make the lein trampoline cljsbuild repl-rhino
command to work, it’s giving me this error : "Exception in thread "main" java.io.FileNotFoundException: Could not locate cljs/repl__init.class or cljs/repl.clj on classpath: , compiling:(cljsbuild/repl/rhino.clj:1:1)”
Someone got an idea of what it might be ? Thanks