Fork me on GitHub
#clojurescript
<
2019-10-03
>
Ramon Rios12:10:55

I had a project in clojurescript with re-frame and bidi

Ramon Rios12:10:25

I'm trying to make it work. but when i load the project, it goes diretcly to de default page instead of home page

Ramon Rios12:10:31

I downloaded some examples on github but as i see i have the same thing as it and it's not working as expected. Someone has some experience with routing stuff on cljs?

paul93122416:10:24

Hi Ramon, what routing library do you use? It is possible you don't have a handler for the route you want to use.

paul93122416:10:27

Hello guys, is it possible to get my clojure files back from a .jar file? I guess not, but worths a question, I didn't back up properly and I am wondering 😄

mccraigmccraig16:10:57

jar tvf <filename> will list what's in your jar - it's quite likely your .clj files are in there. jar xf <filename> will extract them for you

paul93122416:10:15

well, I found it only in the compiled version, .jar and .js

paul93122416:10:41

the libraries which I used have a lot of clj though 😄

mccraigmccraig16:10:17

ah well, it depends on how you built...

paul93122416:10:45

I remember I used :simple, because of the external js files, like google maps

paul93122416:10:58

no problem, I already started writing again 3 years of work, I just had a feeling that I have to make a last try for retrieving it 😄

mccraigmccraig16:10:39

eek - 3 years 😿

paul93122417:10:33

shit happens, also, always backup! :DDD

danielneal06:10:35

Paging @bronsa

danielneal06:10:48

Tools decompiler night help you get the clj, but the cljs though

folcon14:10:58

@U1YTC9FU5 Did you use source-maps by any chance? If so your cljs could be just sitting inside your resources?

alexmiller16:10:05

in clojure, you can use to read source files as resources in the jar file

papachan17:10:59

i have a weird behaviour using shadow-cljs. Each time i include my own macros i have this: FileNotFoundException: Could not locate simple/macros__init.class, simple/macros.clj or simple/macros.cljc on classpath.

thheller18:10:14

that means the macro ns could not be found on the classpath. eg. with :source-paths ["src/main"] the file would need to be at src/main/simple/macros.clj

papachan18:10:56

i tried with another project setup and cannot refer any macros from my macros.cljs file 😞

thheller18:10:18

just to be clear here: macros are defined in Clojure. You cannot write them in .cljs files.

papachan18:10:33

well i found this:

papachan18:10:19

i suppose its related with my uncapability to compile my macros to js

thheller18:10:53

not sure what you are trying to do. are you talking about self-hosted?

thheller18:10:16

macros run at compile time and compilation happens on the JVM (not at runtime in JS)

papachan18:10:48

yeah exactly i was trying to call a macros from runtime js

papachan18:10:45

@U05224H0W i am finally in order to compile macros for js runtime

vnctaing18:10:55

Is there tools for monitoring/logging a clojurescript app in production, with features for like recreating the last state where the user was ?