Fork me on GitHub
#clojurescript
<
2015-06-07
>
gadfly36100:06:00

(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

mikethompson00:06:23

@gadfly361: I can see others having problems with lein and binary files: https://groups.google.com/forum/#!topic/clojure/4O76R_GM7g8

mfikes00:06:34

@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

gadfly36101:06:44

Sweet, I'll look at both of these. :)

minimal13:06:45

ah, inf-clojure with figwheel repl is decent!

sander14:06:35

@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?

sander14:06:13

also, (cljs-repl) gives a null pointer exception

minimal14:06:55

i just ran lein fighwheel with inf-clojure

sander14:06:46

@minimal: ah, makes sense simple_smile was trying to get https://github.com/bhauman/lein-figwheel#using-figwheel-from-the-repl working but this seems fine for now

minimal14:06:37

@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

mfikes14:06:44

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

estsauver15:06:01

@mfikes: lein-cljfmt is cool

estsauver15:06:56

clj-sql-up is not bad at all.

mfikes15:06:05

@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?

estsauver15:06:32

Oh, oh, I’m sorry, I misread your message. I thought you were asking about cool lein plugins.

meow16:06:37

Aargh!!! Can't get a browser-repl working under Windows. Stupid backslashes in windows paths. Problem looks like this:

meow16:06:42

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 ^

meow16:06:59

Should be easy to fix but I can't seem to find a solution. Anyone using Windows with clojurescript?

meow16:06:43

I get the same error using a mingw32 shell. 😞

jackjames16:06:48

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

jackjames16:06:51

pkobrien: i have seen some stuff similar to that error using regexes. specifically, input pattern, string search, replace, etc

jackjames16:06:40

pkobrien: pretty sure i've been able to resolve it with extra backslashes: so a regex containing \d becomes \\d

jackjames17:06:27

@meow: ^ugh irc @mention context switch lol. also, was supposed to be a "2)" in there somewhere...that's all i got

meow17:06:43

@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.

meow17:06:05

I love lein figwheel but I should be able to make a raw brepl work as well.

jackjames17:06:29

@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?

jackjames17:06:00

@meow: i think it's always been oracle jdk 8 here

meow17:06:41

java version "1.8.0_45"

meow17:06:04

basically I've got the latest of everything

meow17:06:31

@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

meow17:06:11

I'm going to see if using boot makes any difference - need a reason to play with boot anyway...

jackjames17:06:20

@meow: boot def not necessary (nor is lein nor figwheel, though figwheel is awesome): https://www.refheap.com/102260

jackjames17:06:31

@meow: that had a couple weird line wraps, fixed: https://www.refheap.com/102261

jon17:06:52

pkobrien: c:\\path\\to\\thingie you try that?

jackjames17:06:19

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

jackjames17:06:48

maybe not exact same error...

meow17:06:16

@jackjames: I'll create another project just to be sure, but that

meow17:06:36

's basically what I did - follow the wiki step-by-step

meow17:06:52

@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.

jon17:06:10

oh ok my misunderstanding

meow17:06:48

@jon: or I could be wrong... 😉

meow17:06:17

I'm determined to get this working because of david's tweet: https://twitter.com/swannodette/status/606495960374607873

jackjames17:06:51

@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

jackjames18:06:42

@meow: you already have cursive installed?

meow18:06:38

@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.

jackjames18:06:27

@meow: ah. well, cursive is an equally important component to the workflow he's describing imo

meow18:06:31

I'm using Oracle java

jackjames18:06:09

@meow: and cursive + figwheel is even better (no lein/boot/anything else required)

meow18:06:57

@right, but the brepl should work. I'll try uninstall/reinstall of my jdk

jackjames18:06:00

@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)

meow18:06:07

@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. simple_smile

meow19:06:40

@jackjames: finally found the problem - the html file must be named "index.html" and not something like "hello.html" - wonder why?

meow20:06:39

I see. You have to include the html file in the URL for localhost, like this: http://localhost:9000/gardening.html

meow20:06:59

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.

meow20:06:48

@jackjames: thanks for all of your help - much appreciated.

quentin21:06:27

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 simple_smile