Fork me on GitHub
#luminus
<
2017-08-01
>
donyorm03:08:42

@yogthos Just tested the luminus template and found I managed to forget to commit the app.cljs.edn file in the templates (neeeded for figwheel to work properly in boot). Do you want me to just create a new PR adding the file?

donyorm03:08:39

This only affects anything when you use +boot and +cljs together, but it completely breaks the template (it only creates the env and resources folders). Sorry that I missed that, the problem with testing things in your working directory 😕

yogthos03:08:46

@donyorm yeah sure pr would be good, and I can push out a release

yogthos04:08:46

just pushed out to clojars, hopefully everything should be working 🙂

donyorm04:08:25

Great. Let me know if anything else breaks.

yogthos04:08:25

will do, and thanks for taking on this

sjol16:08:31

is there any recommended way of fixing

java.lang.ClassNotFoundException: clojure.tools.logging.impl.LoggerFactory
? This is happening on a fresh project created with lean new luminus <app name> (running [org.clojure/clojure "1.8.0"][org.clojure/tools.logging "0.4.0"] )

sjol16:08:50

I tried lean clean and am also getting the same error on different environment in my case when I push t Cloud Foundry

donyorm16:08:25

@sjol what command are you using? It's working for me

donyorm16:08:13

consider running lein upgrade just in case

sjol17:08:56

@donyorm I will try upgrading and see! I was at my wits end as the dev server works like a charm and it was only when I tried to push it to a hosting server did I see it fail and was able to reproduce the failure on my own dev station

sjol17:08:29

@donyorm thanks for the suggestion

d5p19:08:54

hmm i’ve been having an absolutely bizarre issue , my app is somewhat based on luminus , aka mount with immutant and others , it’s evolved a bit but uses pretty much same pattern , on certain hosts when i attempt to build an uberjar i get

d5p19:08:11

java.nio.file.NoSuchFileException: whitespace = #'\s+', compiling:(core.clj:280:14)
Exception in thread "main" java.nio.file.NoSuchFileException: whitespace = #'\s+', compiling:(core.clj:280:14)

d5p19:08:41

so weird , not on all hosts , can’t seem to find any differences , but asking on off chance either way anyone seen this when building an uberjar?

donyorm02:08:35

It's search for the file whitespace = #'\s+' which looks like a language other than clojure. What's the full stacktrace? Is that "core.clj" yours or a different app's?

d5p10:08:40

not my core.clj , all i can gather with a bit of further debugging is the uberjar compile on this host is actually executing some code that isn’t being executed elsewhere (i hooked a debug print around (io/input-stream)

d5p10:08:07

that grammar seems to come from an instaparse config in one of my dependencies , the strange part is yeh it’s only on this one host that something is being executed

donyorm10:08:32

do you have a stack trace you can post?

d5p10:08:34

same java version , same lein , same plugins , scratching my head!

d5p10:08:01

vacer.* is my code , hooking the compile that breaks at at vacer.file$fn__1436.invoke(file.clj:122) shows that only on this host it’s somehow trying to open a file ‘whitespace = ..’ which seems like part of an instaparse grammar

donyorm10:08:03

You using lein to build this?

donyorm10:08:45

are you using instaparse for your project, or is it a dependency of a dependency?

d5p10:08:01

dependency of a dependency

d5p10:08:13

and yeh , only an issue on a single host! compiles fine everywhere else

donyorm10:08:59

check if you have any dependency conflicts (use lein deps :tree). Does more than one library need instaparse?

d5p10:08:19

only seems to be clout using it , my best guess is it’s something going wrong with something using instaparse since that looks like part of a grammar

donyorm10:08:51

So that kinda narrows it down to something clout related.

donyorm10:08:50

but clout.core is on 128 lines long, so that's not the core file with the issue.

d5p10:08:15

yeah, i guess i’m just struggling to understand why it’s only trying to do this as part of compile process in a specific environment , nowhere else ,

donyorm10:08:55

You could consider opening an issue on clout itself, but a non-reproducable bug is hard to fix. Do you have any environment files that could change? (ex. using environ to pull in environment variables)

d5p10:08:15

i pull config from files selected at runtime , with defaults baked in a resources/config.edn

donyorm10:08:22

I'm not sure what to say. I use boot more than lein, so I'm not as familiar with its build proces. You could consider asking at #leiningen.

d5p10:08:47

ha yeh , thanks anyway ! will continue scratching my head and trying to isolate further and further

d5p19:08:22

it’s on compiling core ns and appears to be related to immutant