224-1 / grand-central

Eclipse Public License 2.0
1 stars 1 forks source link

Migrate trello page from clojure to clojurescript #35

Closed azureus89 closed 5 years ago

azureus89 commented 5 years ago

@kattakavya there is a clojure namespace for trello ui. @ParikshithMohan has written it as clojure hiccup, You need to migrate it to clojurescript so it can work with reagent like html5-synth. Ask if any questions about the task. Ask parikshith for any documentation needs.

Credits: 20

azureus89 commented 5 years ago

I might pull this without documentation in order to progress other tasks, but for task completion it needs documentation. This task is high priority and urgent.

kattakavya commented 5 years ago

@ParikshithMohan can you provide documentation please

kattakavya commented 5 years ago

@azureus89 I'm not getting a complete picture on migration from clojure to clojurescript ,I have tried doing it,getting an error as page not found,please can you provide documentation.

azureus89 commented 5 years ago

Tell me what you are trying to do, and what your understanding of a clojurescript project is - how does it work

ParikshithMohan commented 5 years ago

@azureus89 @kattakavya please hold migration have to finalise changes to div structure and css

azureus89 commented 5 years ago

3 hrs max

kattakavya commented 5 years ago

@azureus89 For migration I have create a file in cljs folder with cljs extension. Basically clojure script act as a compiler for Clojure and supported by the regent(react.js), so we are using regent library and it is used for building complex UI's by using hiccup and for web applications.

azureus89 commented 5 years ago

@kattakavya clojurescript files compile to javascript files in the out folder ... you need to a) have a blank html page with js pointing to the js output file. make sure css used is the same as the ones in parikshiths clj file b) create a route in handler/core so you can see your new page c) make the functions used in the clj file work one by one in the clojurescript file, and tackle any errors as and when they come

kattakavya commented 5 years ago

@azureus89 I have created a route in core and for the output file i have changed the destination and i have tried to follow the clojurescript document i.e by running lein trampoline cljsbuild repl-rhino followed by lein cljsbuild once, use to converts cljs from js. I'm using this command to get the cljs-out folder in resources.

azureus89 commented 5 years ago

not required, project is already configured for figwheel-main @VikramShawFL please make sure documentation is clear for this project, perhaps you need to edit the main project readme itself. Explain clearly what goes where, and how to start/test/develop clj and cljs in xtnt-micro.

azureus89 commented 5 years ago

@kattakavya please work with vikram to ensure the documentation is good enough that anyone can understand how to do this

kattakavya commented 5 years ago

@azureus89 & @VikramShawFL I'm facing below error,I have followed the path were I'm facing the error: (Exception in thread "main" Syntax error compiling at (C:\Users\welcome\AppData\Local\Temp\form-init1915816337717417497.clj:1:110) did not found this file itself.

c:\Users\welcome\xtnt-micro>lein trampoline run -m figwheel.main -- -b dev -r lein trampoline run -m figwheel.main -- -b dev -r 2019-09-19 20:45:50.603:INFO::main: Logging initialized @9099ms to org.eclipse.jetty.util.log.StdErrLog [Figwheel] Validating figwheel-main.edn [Figwheel] figwheel-main.edn is valid (?)/ [Figwheel] Compiling build dev to "target\public\cljs-out\dev-main.js" [Figwheel] Failed to compile build dev in 0.281 seconds. [Figwheel:WARNING] Could not Analyze src\cljs\xtnt_micro\trello.cljs line:1 column:1

Don't know how to create ISeq from: clojure.lang.Keyword

1 (ns xtnt-micro.trello ^--- 2 (:require [hiccup.core :refer :all] 3 [hiccup.page :refer :all] 4 [compojure.core :refer [defroutes GET]] 5 [compojure.route :refer [resources]] 6 [ring.middleware.reload :refer [wrap-reload]]))

[Figwheel:SEVERE] java.lang.IllegalArgumentException: Don't know how to create ISeq from: clojure.lang.Keyword Exception in thread "main" Syntax error compiling at (C:\Users\welcome\AppData\Local\Temp\form-init1915816337717417497.clj:1:110). Don't know how to create ISeq from: clojure.lang.Keyword at line 1 src\cljs\xtnt_micro\trello.cljs at clojure.lang.Compiler.load(Compiler.java:7647) at clojure.lang.Compiler.loadFile(Compiler.java:7573) at clojure.main$load_script.invokeStatic(main.clj:452) at clojure.main$init_opt.invokeStatic(main.clj:454) at clojure.main$init_opt.invoke(main.clj:454) at clojure.main$initialize.invokeStatic(main.clj:485) at clojure.main$null_opt.invokeStatic(main.clj:519) at clojure.main$null_opt.invoke(main.clj:516) at clojure.main$main.invokeStatic(main.clj:598) at clojure.main$main.doInvoke(main.clj:561) at clojure.lang.RestFn.applyTo(RestFn.java:137) at clojure.lang.Var.applyTo(Var.java:705) at clojure.main.main(main.java:37) Caused by: clojure.lang.ExceptionInfo: Don't know how to create ISeq from: clojure.lang.Keyword at line 1 src\cljs\xtnt_micro\trello.cljs {:file #object[java.io.File 0x67fda9fb "src\cljs\xtnt_micro\trello.cljs"], :line 1, :column 1, :tag :cljs/analysis-error} at cljs.analyzer$error.invokeStatic(analyzer.cljc:718) at cljs.analyzer$error.invoke(analyzer.cljc:714) at cljs.analyzer$analyze_seq_STARwrap.invokeStatic(analyzer.cljc:3604) at cljs.analyzer$analyze_seq_STARwrap.invoke(analyzer.cljc:3603) at cljs.analyzer$analyze_seq.invokeStatic(analyzer.cljc:3629) at cljs.analyzer$analyze_seq.invoke(analyzer.cljc:3607) at cljs.analyzer$analyze_form.invokeStatic(analyzer.cljc:3810) at cljs.analyzer$analyze_form.invoke(analyzer.cljc:3807) at cljs.analyzer$analyzeSTAR.invokeStatic(analyzer.cljc:3860) at cljs.analyzer$analyzeSTAR.invoke(analyzer.cljc:3851) at cljs.analyzer$analyze.invokeStatic(analyzer.cljc:3880) at cljs.analyzer$analyze.invoke(analyzer.cljc:3863) at cljs.analyzer$parse_ns$fn2609$fn2613.invoke(analyzer.cljc:4042) at cljs.analyzer$parse_ns$fn2609.invoke(analyzer.cljc:4042) at cljs.analyzer$parse_ns.invokeStatic(analyzer.cljc:4007) at cljs.analyzer$parse_ns.invoke(analyzer.cljc:3986) at cljs.analyzer$parse_ns.invokeStatic(analyzer.cljc:3997) at cljs.analyzer$parse_ns.invoke(analyzer.cljc:3986) at cljs.compiler$find_source.invokeStatic(compiler.cljc:1768) at cljs.compiler$find_source.invoke(compiler.cljc:1767) at clojure.core$map$fn5851.invoke(core.clj:2755) at clojure.lang.LazySeq.sval(LazySeq.java:42) at clojure.lang.LazySeq.seq(LazySeq.java:58) at clojure.lang.RT.seq(RT.java:531) at clojure.core$seq5387.invokeStatic(core.clj:137) at clojure.core$filter$fn5878.invoke(core.clj:2809) at clojure.lang.LazySeq.sval(LazySeq.java:42) at clojure.lang.LazySeq.seq(LazySeq.java:51) at clojure.lang.RT.seq(RT.java:531) at clojure.core$seq5387.invokeStatic(core.clj:137) at clojure.core$concat$fn5478.invoke(core.clj:725) at clojure.lang.LazySeq.sval(LazySeq.java:42) at clojure.lang.LazySeq.seq(LazySeq.java:51) at clojure.lang.RT.seq(RT.java:531) at clojure.core$seq5387.invokeStatic(core.clj:137) at clojure.core.protocols$seq_reduce.invokeStatic(protocols.clj:24) at clojure.core.protocols$fn8131.invokeStatic(protocols.clj:75) at clojure.core.protocols$fn8131.invoke(protocols.clj:75) at clojure.core.protocols$fn8073$G80688086.invoke(protocols.clj:13) at clojure.core$transduce.invokeStatic(core.clj:6884) at clojure.core$into.invokeStatic(core.clj:6899) at clojure.core$into.invoke(core.clj:6887) at figwheel.core$sourcesGT_modified_map.invokeStatic(core.cljc:758) at figwheel.core$sourcesGT_modified_map.invoke(core.cljc:757) at figwheel.core$startSTAR.invokeStatic(core.cljc:787) at figwheel.core$startSTAR.invoke(core.cljc:781) at figwheel.core$startSTAR.invokeStatic(core.cljc:782) at figwheel.core$startSTAR.invoke(core.cljc:781) at figwheel.main$config_figwheel_modeQMARK$fn7712.invoke(main.cljc:993) at figwheel.main$default_compile.invokeStatic(main.cljc:1908) at figwheel.main$default_compile.invoke(main.cljc:1865) at figwheel.main$build_main_opt.invokeStatic(main.cljc:528) at figwheel.main$build_main_opt.invoke(main.cljc:523) at cljs.cli$main.invokeStatic(cli.clj:646) at cljs.cli$main.doInvoke(cli.clj:635) at clojure.lang.RestFn.applyTo(RestFn.java:139) at clojure.core$apply.invokeStatic(core.clj:667) at clojure.core$apply.invoke(core.clj:660) at cljs.main$_main.invokeStatic(main.clj:61) at cljs.main$_main.doInvoke(main.clj:52) at clojure.lang.RestFn.applyTo(RestFn.java:137) at clojure.core$apply.invokeStatic(core.clj:665) at clojure.core$apply.invoke(core.clj:660) at figwheel.main$_main$fn8240.invoke(main.cljc:2225) at clojure.core$with_redefs_fn.invokeStatic(core.clj:7514) at clojure.core$with_redefs_fn.invoke(core.clj:7498) at figwheel.main$_main.invokeStatic(main.cljc:2223) at figwheel.main$_main.doInvoke(main.cljc:2202) at clojure.lang.RestFn.invoke(RestFn.java:436) at clojure.lang.Var.invoke(Var.java:393) at user$eval140.invokeStatic(form-init1915816337717417497.clj:1) at user$eval140.invoke(form-init1915816337717417497.clj:1) at clojure.lang.Compiler.eval(Compiler.java:7176) at clojure.lang.Compiler.eval(Compiler.java:7166) at clojure.lang.Compiler.load(Compiler.java:7635) ... 12 more Caused by: java.lang.IllegalArgumentException: Don't know how to create ISeq from: clojure.lang.Keyword at clojure.lang.RT.seqFrom(RT.java:553) at clojure.lang.RT.seq(RT.java:533) at clojure.core$seq5387.invokeStatic(core.clj:137) at clojure.core$filter$fn5878.invoke(core.clj:2809) at clojure.lang.LazySeq.sval(LazySeq.java:42) at clojure.lang.LazySeq.seq(LazySeq.java:51) at clojure.lang.RT.seq(RT.java:531) at clojure.core$seq5387.invokeStatic(core.clj:137) at clojure.core$seq5387.invoke(core.clj:137) at cljs.analyzer$parse_require_spec.invokeStatic(analyzer.cljc:2577) at cljs.analyzer$parse_require_spec.invoke(analyzer.cljc:2559) at clojure.lang.AFn.applyToHelper(AFn.java:171) at clojure.lang.AFn.applyTo(AFn.java:144) at clojure.core$apply.invokeStatic(core.clj:671) at clojure.core$partial$fn5830.doInvoke(core.clj:2643) at clojure.lang.RestFn.invoke(RestFn.java:408) at clojure.core$map$fn5851.invoke(core.clj:2753) at clojure.lang.LazySeq.sval(LazySeq.java:42) at clojure.lang.LazySeq.seq(LazySeq.java:51) at clojure.lang.Cons.next(Cons.java:39) at clojure.lang.RT.boundedLength(RT.java:1788) at clojure.lang.RestFn.applyTo(RestFn.java:130) at clojure.core$apply.invokeStatic(core.clj:669) at clojure.core$apply.invoke(core.clj:660) at cljs.analyzer$fn2190$fn2200.invoke(analyzer.cljc:2837) at clojure.core.protocols$fn8144.invokeStatic(protocols.clj:168) at clojure.core.protocols$fn8144.invoke(protocols.clj:124) at clojure.core.protocols$fn8099$G8094__8108.invoke(protocols.clj:19) at clojure.core.protocols$seq_reduce.invokeStatic(protocols.clj:31) at clojure.core.protocols$fn8131.invokeStatic(protocols.clj:75) at clojure.core.protocols$fn8131.invoke(protocols.clj:75) at clojure.core.protocols$fn8073$G80688086.invoke(protocols.clj:13) at clojure.core$reduce.invokeStatic(core.clj:6828) at clojure.core$reduce.invoke(core.clj:6810) at cljs.analyzer$fn2190.invokeStatic(analyzer.cljc:2820) at cljs.analyzer$fn2190.invoke(analyzer.cljc:2772) at clojure.lang.MultiFn.invoke(MultiFn.java:252) at cljs.analyzer$analyze_seqSTAR.invokeStatic(analyzer.cljc:3600) at cljs.analyzer$analyze_seqSTAR.invoke(analyzer.cljc:3598) at cljs.analyzer$analyze_seq_STARwrap.invokeStatic(analyzer.cljc:3605) ... 84 more

VikramShawFL commented 5 years ago

@kattakavya push your code and tell me the steps you are following

VikramShawFL commented 5 years ago

@kattakavya Check the namespace properly. You have created a file name trelloUI.clj and the namespace you wrote is this image

kattakavya commented 5 years ago

@VikramShawFL that is @ParikshithMohan file, you are looking in clj, please find my file in cljs folder

VikramShawFL commented 5 years ago

@kattakavya push your code and tell me the steps you are following

@kattakavya steps??

kattakavya commented 5 years ago

@VikramShawFL while running the lein trampoline run -m figwheel.main -- -b dev -r command, I'm facing with above error.,you can find in above messages

azureus89 commented 5 years ago

@VikramShawFL please share error reporting format with kavya

azureus89 commented 5 years ago

@kattakavya we are trying to communicate errors more clearly, follow format vikram gives you for reporting errors

VikramShawFL commented 5 years ago

@kattakavya Context: Background information / what are you running, steps taken to produce the issue Issue: What is going wrong in a line or two Logs: error logs etc Highlights: Highlights from error logs Hypothesis: What do you think is going wrong Test: What will you do to test your hypothesis Conclusion: Is the hypothesis right / wrong ... if wrong, what did you learn, and move the next hypothesis using the same format

when you reach a correct hypothesis that the test has verified, then lets figure out the solution

kattakavya commented 5 years ago

Error Context I'm trying to migrate the clj to cljs Issue I have run the command ein trampoline run -m figwheel.main -- -b dev -r command Logs (Exception in thread "main" Syntax error compiling at (C:\Users\welcome\AppData\Local\Temp\form-init1915816337717417497.clj:1:110) did not found this file itself.

c:\Users\welcome\xtnt-micro>lein trampoline run -m figwheel.main -- -b dev -r lein trampoline run -m figwheel.main -- -b dev -r 2019-09-19 20:45:50.603:INFO::main: Logging initialized @9099ms to org.eclipse.jetty.util.log.StdErrLog [Figwheel] Validating figwheel-main.edn [Figwheel] figwheel-main.edn is valid (?)/ [Figwheel] Compiling build dev to "target\public\cljs-out\dev-main.js" [Figwheel] Failed to compile build dev in 0.281 seconds. [Figwheel:WARNING] Could not Analyze src\cljs\xtnt_micro\trello.cljs line:1 column:1

Don't know how to create ISeq from: clojure.lang.Keyword

1 (ns xtnt-micro.trello ^--- 2 (:require [hiccup.core :refer :all] 3 [hiccup.page :refer :all] 4 [compojure.core :refer [defroutes GET]] 5 [compojure.route :refer [resources]] 6 [ring.middleware.reload :refer [wrap-reload]]))

[Figwheel:SEVERE] java.lang.IllegalArgumentException: Don't know how to create ISeq from: clojure.lang.Keyword Exception in thread "main" Syntax error compiling at (C:\Users\welcome\AppData\Local\Temp\form-init1915816337717417497.clj:1:110). Don't know how to create ISeq from: clojure.lang.Keyword at line 1 src\cljs\xtnt_micro\trello.cljs at clojure.lang.Compiler.load(Compiler.java:7647) at clojure.lang.Compiler.loadFile(Compiler.java:7573) at clojure.main$load_script.invokeStatic(main.clj:452) at clojure.main$init_opt.invokeStatic(main.clj:454) at clojure.main$init_opt.invoke(main.clj:454) at clojure.main$initialize.invokeStatic(main.clj:485) at clojure.main$null_opt.invokeStatic(main.clj:519) at clojure.main$null_opt.invoke(main.clj:516) at clojure.main$main.invokeStatic(main.clj:598) at clojure.main$main.doInvoke(main.clj:561) at clojure.lang.RestFn.applyTo(RestFn.java:137) at clojure.lang.Var.applyTo(Var.java:705) at clojure.main.main(main.java:37) Caused by: clojure.lang.ExceptionInfo: Don't know how to create ISeq from: clojure.lang.Keyword at line 1 src\cljs\xtnt_micro\trello.cljs {:file #object[java.io.File 0x67fda9fb "src\cljs\xtnt_micro\trello.cljs"], :line 1, :column 1, :tag :cljs/analysis-error} at cljs.analyzer$error.invokeStatic(analyzer.cljc:718) at cljs.analyzer$error.invoke(analyzer.cljc:714) at cljs.analyzer$analyze_seq_STARwrap.invokeStatic(analyzer.cljc:3604) at cljs.analyzer$analyze_seq_STARwrap.invoke(analyzer.cljc:3603) at cljs.analyzer$analyze_seq.invokeStatic(analyzer.cljc:3629) at cljs.analyzer$analyze_seq.invoke(analyzer.cljc:3607) at cljs.analyzer$analyze_form.invokeStatic(analyzer.cljc:3810) at cljs.analyzer$analyze_form.invoke(analyzer.cljc:3807) at cljs.analyzer$analyzeSTAR.invokeStatic(analyzer.cljc:3860) at cljs.analyzer$analyzeSTAR.invoke(analyzer.cljc:3851) at cljs.analyzer$analyze.invokeStatic(analyzer.cljc:3880) at cljs.analyzer$analyze.invoke(analyzer.cljc:3863) at cljs.analyzer$parse_ns$fn2609$fn2613.invoke(analyzer.cljc:4042) at cljs.analyzer$parse_ns$fn2609.invoke(analyzer.cljc:4042) at cljs.analyzer$parse_ns.invokeStatic(analyzer.cljc:4007) at cljs.analyzer$parse_ns.invoke(analyzer.cljc:3986) at cljs.analyzer$parse_ns.invokeStatic(analyzer.cljc:3997) at cljs.analyzer$parse_ns.invoke(analyzer.cljc:3986) at cljs.compiler$find_source.invokeStatic(compiler.cljc:1768) at cljs.compiler$find_source.invoke(compiler.cljc:1767) at clojure.core$map$fn5851.invoke(core.clj:2755) at clojure.lang.LazySeq.sval(LazySeq.java:42) at clojure.lang.LazySeq.seq(LazySeq.java:58) at clojure.lang.RT.seq(RT.java:531) at clojure.core$seq5387.invokeStatic(core.clj:137) at clojure.core$filter$fn5878.invoke(core.clj:2809) at clojure.lang.LazySeq.sval(LazySeq.java:42) at clojure.lang.LazySeq.seq(LazySeq.java:51) at clojure.lang.RT.seq(RT.java:531) at clojure.core$seq5387.invokeStatic(core.clj:137) at clojure.core$concat$fn5478.invoke(core.clj:725) at clojure.lang.LazySeq.sval(LazySeq.java:42) at clojure.lang.LazySeq.seq(LazySeq.java:51) at clojure.lang.RT.seq(RT.java:531) at clojure.core$seq5387.invokeStatic(core.clj:137) at clojure.core.protocols$seq_reduce.invokeStatic(protocols.clj:24) at clojure.core.protocols$fn8131.invokeStatic(protocols.clj:75) at clojure.core.protocols$fn8131.invoke(protocols.clj:75) at clojure.core.protocols$fn8073$G80688086.invoke(protocols.clj:13) at clojure.core$transduce.invokeStatic(core.clj:6884) at clojure.core$into.invokeStatic(core.clj:6899) at clojure.core$into.invoke(core.clj:6887) at figwheel.core$sourcesGT_modified_map.invokeStatic(core.cljc:758) at figwheel.core$sourcesGT_modified_map.invoke(core.cljc:757) at figwheel.core$startSTAR.invokeStatic(core.cljc:787) at figwheel.core$startSTAR.invoke(core.cljc:781) at figwheel.core$startSTAR.invokeStatic(core.cljc:782) at figwheel.core$startSTAR.invoke(core.cljc:781) at figwheel.main$config_figwheel_modeQMARK$fn7712.invoke(main.cljc:993) at figwheel.main$default_compile.invokeStatic(main.cljc:1908) at figwheel.main$default_compile.invoke(main.cljc:1865) at figwheel.main$build_main_opt.invokeStatic(main.cljc:528) at figwheel.main$build_main_opt.invoke(main.cljc:523) at cljs.cli$main.invokeStatic(cli.clj:646) at cljs.cli$main.doInvoke(cli.clj:635) at clojure.lang.RestFn.applyTo(RestFn.java:139) at clojure.core$apply.invokeStatic(core.clj:667) at clojure.core$apply.invoke(core.clj:660) at cljs.main$_main.invokeStatic(main.clj:61) at cljs.main$_main.doInvoke(main.clj:52) at clojure.lang.RestFn.applyTo(RestFn.java:137) at clojure.core$apply.invokeStatic(core.clj:665) at clojure.core$apply.invoke(core.clj:660) at figwheel.main$_main$fn8240.invoke(main.cljc:2225) at clojure.core$with_redefs_fn.invokeStatic(core.clj:7514) at clojure.core$with_redefs_fn.invoke(core.clj:7498) at figwheel.main$main.invokeStatic(main.cljc:2223) at figwheel.main$main.doInvoke(main.cljc:2202) at clojure.lang.RestFn.invoke(RestFn.java:436) at clojure.lang.Var.invoke(Var.java:393) at user$eval140.invokeStatic(form-init1915816337717417497.clj:1) at user$eval140.invoke(form-init1915816337717417497.clj:1) at clojure.lang.Compiler.eval(Compiler.java:7176) at clojure.lang.Compiler.eval(Compiler.java:7166) at clojure.lang.Compiler.load(Compiler.java:7635) ... 12 more Caused by: java.lang.IllegalArgumentException: Don't know how to create ISeq from: clojure.lang.Keyword at clojure.lang.RT.seqFrom(RT.java:553) at clojure.lang.RT.seq(RT.java:533) at clojure.core$seq5387.invokeStatic(core.clj:137) at clojure.core$filter$fn5878.invoke(core.clj:2809) at clojure.lang.LazySeq.sval(LazySeq.java:42) at clojure.lang.LazySeq.seq(LazySeq.java:51) at clojure.lang.RT.seq(RT.java:531) at clojure.core$seq5387.invokeStatic(core.clj:137) at clojure.core$seq5387.invoke(core.clj:137) at cljs.analyzer$parse_require_spec.invokeStatic(analyzer.cljc:2577) at cljs.analyzer$parse_require_spec.invoke(analyzer.cljc:2559) at clojure.lang.AFn.applyToHelper(AFn.java:171) at clojure.lang.AFn.applyTo(AFn.java:144) at clojure.core$apply.invokeStatic(core.clj:671) at clojure.core$partial$fn5830.doInvoke(core.clj:2643) at clojure.lang.RestFn.invoke(RestFn.java:408) at clojure.core$map$fn5851.invoke(core.clj:2753) at clojure.lang.LazySeq.sval(LazySeq.java:42) at clojure.lang.LazySeq.seq(LazySeq.java:51) at clojure.lang.Cons.next(Cons.java:39) at clojure.lang.RT.boundedLength(RT.java:1788) at clojure.lang.RestFn.applyTo(RestFn.java:130) at clojure.core$apply.invokeStatic(core.clj:669) at clojure.core$apply.invoke(core.clj:660) at cljs.analyzer$fn2190$fn2200.invoke(analyzer.cljc:2837) at clojure.core.protocols$fn8144.invokeStatic(protocols.clj:168) at clojure.core.protocols$fn8144.invoke(protocols.clj:124) at clojure.core.protocols$fn8099$G8094__8108.invoke(protocols.clj:19) at clojure.core.protocols$seq_reduce.invokeStatic(protocols.clj:31) at clojure.core.protocols$fn8131.invokeStatic(protocols.clj:75) at clojure.core.protocols$fn8131.invoke(protocols.clj:75) at clojure.core.protocols$fn8073$G80688086.invoke(protocols.clj:13) at clojure.core$reduce.invokeStatic(core.clj:6828) at clojure.core$reduce.invoke(core.clj:6810) at cljs.analyzer$fn2190.invokeStatic(analyzer.cljc:2820) at cljs.analyzer$fn2190.invoke(analyzer.cljc:2772) at clojure.lang.MultiFn.invoke(MultiFn.java:252) at cljs.analyzer$analyze_seq_STAR.invokeStatic(analyzer.cljc:3600) at cljs.analyzer$analyze_seq_STAR.invoke(analyzer.cljc:3598) at cljs.analyzer$analyze_seq_STARwrap.invokeStatic(analyzer.cljc:3605) ... 84 more

Highlights: 1.Exception in thread "main" Syntax error compiling at (C:\Users\welcome\AppData\Local\Temp\form-init1915816337717417497.clj:1:110) 2.Don't know how to create ISeq from: clojure.lang.Keyword at line 1 src\cljs\xtnt_micro\trello.cljs {:file #object[java.io.File 0x67fda9fb "src\cljs\xtnt_micro\trello.cljs"], :line 1, :column 1, :tag :cljs/analysis-error} Hypothesis:followed the path but did not found the form-init file.first I wanted to check the file and then want to analyse the java.io.file exception by checking the trello file.

Conclusions I'm not sure whether the hypothesis is right / wrong and not sure did I picked right error or not.

azureus89 commented 5 years ago

@kattakavya ignore what doesnt matter ... like the form-init file ... its a temp file ... issues seems to be in your cljs code itself, but before that, why running lein trampoline ... is it part of the process described by vikram?

azureus89 commented 5 years ago

suggest push to branch, if not already done .. but ive not used trampoline, dont know what it does, so cant provide support for trampoline, I can try to see whats wrong via the normal repl, and the process vikram has created

VikramShawFL commented 5 years ago

suggest push to branch, if not already done .. but ive not used trampoline, dont know what it does, so cant provide support for trampoline, I can try to see whats wrong via the normal repl, and the process vikram has created

These trampoline thing is used in aliasing the figwheel-main configuration in project.clj

:aliases
   {"fig" ["trampoline" "run" "-m" "figwheel.main"]
    "build-dev" ["trampoline" "run" "-m" "figwheel.main" "-b" "dev" "-r"]}

And explained that using this :aliases how we can run figwheel-main, but I have clearly stated at the end of the document on how to run the server and then figwheel-main using cider-jack-in-cljs

azureus89 commented 5 years ago

@kattakavya why using trampoline ... i dont think its required ... is vikrams execution steps now clear? let him know ...

kattakavya commented 5 years ago

@azureus89 tried with trampoline also,followed the steps cider-jack-in-cljs -->figwheel-main later dev, Error [Figwheel] Validating figwheel-main.edn [Figwheel] figwheel-main.edn is valid (ツ)/ [Figwheel] Compiling build dev to "target\public\cljs-out\dev-main.js" [Figwheel] Failed to compile build dev in 0.521 seconds. [Figwheel:WARNING] Could not Analyze src\cljs\xtnt_micro\trello.cljs line:1 column:1

Don't know how to create ISeq from: clojure.lang.Keyword

1 (ns xtnt-micro.trello ^--- 2 (:require [hiccup.core :refer :all] 3 [hiccup.page :refer :all] 4 [compojure.core :refer [defroutes GET]] 5 [compojure.route :refer [resources]] 6 [ring.middleware.reload :refer [wrap-reload]]

[Figwheel:SEVERE] java.lang.IllegalArgumentException: Don't know how to create ISeq from: clojure.lang.Keyword Execution error (IllegalArgumentException) at cljs.analyzer/parse-require-spec (analyzer.cljc:2398). Don't know how to create ISeq from: clojure.lang.Keyword

though getting error. I have a doubt like clj and cljs both are in one project is it necessary to create two different defroutes and provide port,anyhow project will run in same port right.Struck with the error.

kattakavya commented 5 years ago

@azureus89 Context: running lein run on shell to connect port with cider-jack-in-cljs. Issue: Errors facing while connecting to the port Logs: using cider: [Figwheel] Validating figwheel-main.edn [Figwheel] figwheel-main.edn is valid (ツ)/ [Figwheel] Compiling build dev to "target\public\cljs-out\dev-main.js" [Figwheel] Failed to compile build dev in 0.735 seconds. [Figwheel:WARNING] Could not Analyze src\cljs\xtnt_micro\trello.cljs line:1 column:1

Don't know how to create ISeq from: clojure.lang.Keyword

1 (ns xtnt-micro.trello ^--- 2 (:require [hiccup.core :refer :all] 3 [hiccup.page :refer :all] 4 [compojure.core :refer [defroutes GET]] 5 [compojure.route :refer [resources]] 6 [ring.middleware.reload :refer [wrap-reload]]

[Figwheel:SEVERE] java.lang.IllegalArgumentException: Don't know how to create ISeq from: clojure.lang.Keyword Execution error (IllegalArgumentException) at cljs.analyzer/parse-require-spec (analyzer.cljc:2398). Don't know how to create ISeq from: clojure.lang.Keyword

using shell: c:\Users\welcome\xtnt-micro>lein run lein run: 2019-09-23 20:17:34.091:INFO::main: Logging initialized @8221ms to org.eclipse.jetty.util.log.StdErrLog WARNING: list already refers to: #'clojure.core/list in namespace: xtnt-micro.trelloui, being replaced by: #'xtnt-micro.trelloui/list Exception in thread "main" Syntax error compiling at (xtnt_micro/handler.clj:1:1). at clojure.lang.Compiler.load(Compiler.java:7647) at clojure.lang.RT.loadResourceScript(RT.java:381) at clojure.lang.RT.loadResourceScript(RT.java:372) at clojure.lang.RT.load(RT.java:463) at clojure.lang.RT.load(RT.java:428) at clojure.core$load$fn6824.invoke(core.clj:6126) at clojure.core$load.invokeStatic(core.clj:6125) at clojure.core$load.doInvoke(core.clj:6109) at clojure.lang.RestFn.invoke(RestFn.java:408) at clojure.core$load_one.invokeStatic(core.clj:5908) at clojure.core$load_one.invoke(core.clj:5903) at clojure.core$load_lib$fn6765.invoke(core.clj:5948) at clojure.core$load_lib.invokeStatic(core.clj:5947) at clojure.core$load_lib.doInvoke(core.clj:5928) at clojure.lang.RestFn.applyTo(RestFn.java:142) at clojure.core$apply.invokeStatic(core.clj:667) at clojure.core$load_libs.invokeStatic(core.clj:5985) at clojure.core$load_libs.doInvoke(core.clj:5969) at clojure.lang.RestFn.applyTo(RestFn.java:137) at clojure.core$apply.invokeStatic(core.clj:667) at clojure.core$require.invokeStatic(core.clj:6007) at clojure.core$require.doInvoke(core.clj:6007) at clojure.lang.RestFn.invoke(RestFn.java:408) at user$eval140$fn144.invoke(form-init1749342862055643750.clj:1) at user$eval140.invokeStatic(form-init1749342862055643750.clj:1) at user$eval140.invoke(form-init1749342862055643750.clj:1) at clojure.lang.Compiler.eval(Compiler.java:7176) at clojure.lang.Compiler.eval(Compiler.java:7166) at clojure.lang.Compiler.load(Compiler.java:7635) at clojure.lang.Compiler.loadFile(Compiler.java:7573) at clojure.main$load_script.invokeStatic(main.clj:452) at clojure.main$init_opt.invokeStatic(main.clj:454) at clojure.main$init_opt.invoke(main.clj:454) at clojure.main$initialize.invokeStatic(main.clj:485) at clojure.main$null_opt.invokeStatic(main.clj:519) at clojure.main$null_opt.invoke(main.clj:516) at clojure.main$main.invokeStatic(main.clj:598) at clojure.main$main.doInvoke(main.clj:561) at clojure.lang.RestFn.applyTo(RestFn.java:137) at clojure.lang.Var.applyTo(Var.java:705) at clojure.main.main(main.java:37) Caused by: java.io.FileNotFoundException: Could not locate xtnt_micro/trelloinit.class, xtnt_micro/trello.clj or xtnt_micro/trello.cljc on classpath. Please check that namespaces with dashes use underscores in the Clojure file name. at clojure.lang.RT.load(RT.java:466) at clojure.lang.RT.load(RT.java:428) at clojure.core$load$fn6824.invoke(core.clj:6126) at clojure.core$load.invokeStatic(core.clj:6125) at clojure.core$load.doInvoke(core.clj:6109) at clojure.lang.RestFn.invoke(RestFn.java:408) at clojure.core$load_one.invokeStatic(core.clj:5908) at clojure.core$load_one.invoke(core.clj:5903) at clojure.core$load_lib$fn6765.invoke(core.clj:5948) at clojure.core$load_lib.invokeStatic(core.clj:5947) at clojure.core$load_lib.doInvoke(core.clj:5928) at clojure.lang.RestFn.applyTo(RestFn.java:142) at clojure.core$apply.invokeStatic(core.clj:667) at clojure.core$load_libs.invokeStatic(core.clj:5985) at clojure.core$load_libs.doInvoke(core.clj:5969) at clojure.lang.RestFn.applyTo(RestFn.java:137) at clojure.core$apply.invokeStatic(core.clj:667) at clojure.core$require.invokeStatic(core.clj:6007) at clojure.core$require.doInvoke(core.clj:6007) at clojure.lang.RestFn.invoke(RestFn.java:1789) at xtnt_micro.handler$eval157$loading6706auto____158.invoke(handler.clj:1) at xtnt_micro.handler$eval157.invokeStatic(handler.clj:1) at xtnt_micro.handler$eval157.invoke(handler.clj:1) at clojure.lang.Compiler.eval(Compiler.java:7176) at clojure.lang.Compiler.eval(Compiler.java:7165) at clojure.lang.Compiler.load(Compiler.java:7635) ... 40 more

Highlights: -> While running in cljs ,I'm facing the error like my cljs file which I have created could not able to analyse and facing Iseq error. -> While running in shell,I'm facing warning that : xtnt-micro.trelloui, being replaced by: #'xtnt-micro.trelloui/list.

Conclusion: tried by adding namespaces,by adding mount functions, followed the document given by vikram, need some tips to proceed further.

azureus89 commented 5 years ago

@kattakavya this error has been encountered by @sahabaishakhi also ... for future reference, @ParikshithMohan @VikramShawFL please do not use uppercase letters in clojure file names, and namespaces ... this error is being caused by uppercase in file name

@sahabaishakhi help kavya get past this issue ... all these changes should be merged into master once you are done fixing your issue

kattakavya commented 5 years ago

@sahabaishakhi I have removed core.clj and renamed trelloui also,though facing an error. Shell Error: 2019-09-24 16:44:23.261:INFO::main: Logging initialized @3629ms to org.eclipse.jetty.util.log.StdErrLog WARNING: list already refers to: #'clojure.core/list in namespace: xtnt-micro.trelloui, being replaced by: #'xtnt-micro.trelloui/list Exception in thread "main" Syntax error compiling at (xtnt_micro/handler.clj:1:1). at clojure.lang.Compiler.load(Compiler.java:7647) at clojure.lang.RT.loadResourceScript(RT.java:381) at clojure.lang.RT.loadResourceScript(RT.java:372) at clojure.lang.RT.load(RT.java:463) at clojure.lang.RT.load(RT.java:428) at clojure.core$load$fn6824.invoke(core.clj:6126) at clojure.core$load.invokeStatic(core.clj:6125) at clojure.core$load.doInvoke(core.clj:6109) at clojure.lang.RestFn.invoke(RestFn.java:408) at clojure.core$load_one.invokeStatic(core.clj:5908) at clojure.core$load_one.invoke(core.clj:5903) at clojure.core$load_lib$fn6765.invoke(core.clj:5948) at clojure.core$load_lib.invokeStatic(core.clj:5947) at clojure.core$load_lib.doInvoke(core.clj:5928) at clojure.lang.RestFn.applyTo(RestFn.java:142) at clojure.core$apply.invokeStatic(core.clj:667) at clojure.core$load_libs.invokeStatic(core.clj:5985) at clojure.core$load_libs.doInvoke(core.clj:5969) at clojure.lang.RestFn.applyTo(RestFn.java:137) at clojure.core$apply.invokeStatic(core.clj:667) at clojure.core$require.invokeStatic(core.clj:6007) at clojure.core$require.doInvoke(core.clj:6007) at clojure.lang.RestFn.invoke(RestFn.java:408) at user$eval140$fn144.invoke(form-init8478214646191360041.clj:1) at user$eval140.invokeStatic(form-init8478214646191360041.clj:1) at user$eval140.invoke(form-init8478214646191360041.clj:1) at clojure.lang.Compiler.eval(Compiler.java:7176) at clojure.lang.Compiler.eval(Compiler.java:7166) at clojure.lang.Compiler.load(Compiler.java:7635) at clojure.lang.Compiler.loadFile(Compiler.java:7573) at clojure.main$load_script.invokeStatic(main.clj:452) at clojure.main$init_opt.invokeStatic(main.clj:454) at clojure.main$init_opt.invoke(main.clj:454) at clojure.main$initialize.invokeStatic(main.clj:485) at clojure.main$null_opt.invokeStatic(main.clj:519) at clojure.main$null_opt.invoke(main.clj:516) at clojure.main$main.invokeStatic(main.clj:598) at clojure.main$main.doInvoke(main.clj:561) at clojure.lang.RestFn.applyTo(RestFn.java:137) at clojure.lang.Var.applyTo(Var.java:705) at clojure.main.main(main.java:37) Caused by: java.io.FileNotFoundException: Could not locate xtnt_micro/trelloinit.class, xtnt_micro/trello.clj or xtnt_micro/trello.cljc on classpath. Please check that namespaces with dashes use underscores in the Clojure file name. at clojure.lang.RT.load(RT.java:466) at clojure.lang.RT.load(RT.java:428) at clojure.core$load$fn6824.invoke(core.clj:6126) at clojure.core$load.invokeStatic(core.clj:6125) at clojure.core$load.doInvoke(core.clj:6109) at clojure.lang.RestFn.invoke(RestFn.java:408) at clojure.core$load_one.invokeStatic(core.clj:5908) at clojure.core$load_one.invoke(core.clj:5903) at clojure.core$load_lib$fn6765.invoke(core.clj:5948) at clojure.core$load_lib.invokeStatic(core.clj:5947) at clojure.core$load_lib.doInvoke(core.clj:5928) at clojure.lang.RestFn.applyTo(RestFn.java:142) at clojure.core$apply.invokeStatic(core.clj:667) at clojure.core$load_libs.invokeStatic(core.clj:5985) at clojure.core$load_libs.doInvoke(core.clj:5969) at clojure.lang.RestFn.applyTo(RestFn.java:137) at clojure.core$apply.invokeStatic(core.clj:667) at clojure.core$require.invokeStatic(core.clj:6007) at clojure.core$require.doInvoke(core.clj:6007) at clojure.lang.RestFn.invoke(RestFn.java:1789) at xtnt_micro.handler$eval157$loading6706auto____158.invoke(handler.clj:1) at xtnt_micro.handler$eval157.invokeStatic(handler.clj:1) at xtnt_micro.handler$eval157.invoke(handler.clj:1) at clojure.lang.Compiler.eval(Compiler.java:7176) at clojure.lang.Compiler.eval(Compiler.java:7165) at clojure.lang.Compiler.load(Compiler.java:7635) ... 40 more

Errors encounter in cider: xtnt-micro.handler> [Figwheel] Validating figwheel-main.edn [Figwheel] figwheel-main.edn is valid (ツ)/ [Figwheel] Compiling build dev to "target\public\cljs-out\dev-main.js" [Figwheel] Failed to compile build dev in 0.689 seconds. [Figwheel:WARNING] Could not Analyze src\cljs\xtnt_micro\trello.cljs line:1 column:1

Don't know how to create ISeq from: clojure.lang.Keyword

1 (ns xtnt-micro.trello ^--- 2 (:require [hiccup.core :refer :all] 3 [hiccup.page :refer :all] 4 [compojure.core :refer [defroutes GET]] 5 [compojure.route :refer [resources]] 6 [ring.middleware.reload :refer [wrap-reload]]

[Figwheel:SEVERE] java.lang.IllegalArgumentException: Don't know how to create ISeq from: clojure.lang.Keyword Execution error (IllegalArgumentException) at cljs.analyzer/parse-require-spec (analyzer.cljc:2398). Don't know how to create ISeq from: clojure.lang.Keyword

sahabaishakhi commented 5 years ago

@kattakavya this is after lein run?

sahabaishakhi commented 5 years ago

are you synced to master?

kattakavya commented 5 years ago

@sahabaishakhi yes,i have synced with master and then ran lein run,same error i was facing

kattakavya commented 5 years ago

@azureus89 I have followed the link https://github.com/binaryage/dirac/blob/master/project.clj and I have added the multiple outputs, I don't know how to switch the builds,tried with the command switch-to-build.confused with main function,should I write separate "main" for switching the builds?

azureus89 commented 5 years ago

what is the error you are getting ... you have to report an error in the error reporting format

kattakavya commented 5 years ago

Context: Trying to add multiple outputs/targets in project-cljsbuild Issue: while adding multiple targets,facing issue. Logs: Loading c:/Users/welcome/AppData/Roaming/.emacs.d/core/core-load-paths.el (source)...done Loading c:/Users/welcome/AppData/Roaming/.spacemacs...done Setting the font... (Spacemacs) Warning: Cannot find any of the specified fonts (Source Code Pro)! Font settings may not be correct. PNG warning: Interlace handling should be turned on when using png_read_image Open the quickhelp. Loading c:/Users/welcome/AppData/Roaming/.emacs.d/layers/+lang/javascript/packages.el (source)...done Loading c:/Users/welcome/AppData/Roaming/.emacs.d/layers/+lang/html/packages.el (source)...done Loading c:/Users/welcome/AppData/Roaming/.emacs.d/layers/+lang/clojure/packages.el (source)...done Loading c:/Users/welcome/AppData/Roaming/.emacs.d/layers/+completion/helm/packages.el (source)...done Loading c:/Users/welcome/AppData/Roaming/.emacs.d/layers/+lang/emacs-lisp/packages.el (source)...done Loading c:/Users/welcome/AppData/Roaming/.emacs.d/layers/+source-control/git/packages.el (source)...done Loading c:/Users/welcome/AppData/Roaming/.emacs.d/layers/+distributions/spacemacs/layers.el (source)... Loading c:/Users/welcome/AppData/Roaming/.emacs.d/layers/+distributions/spacemacs-base/packages.el (source)...done Loading c:/Users/welcome/AppData/Roaming/.emacs.d/layers/+spacemacs/spacemacs-completion/packages.el (source)...done Loading c:/Users/welcome/AppData/Roaming/.emacs.d/layers/+spacemacs/spacemacs-layouts/packages.el (source)...done Loading c:/Users/welcome/AppData/Roaming/.emacs.d/layers/+spacemacs/spacemacs-editing/packages.el (source)...done Loading c:/Users/welcome/AppData/Roaming/.emacs.d/layers/+spacemacs/spacemacs-editing-visual/packages.el (source)...done Loading c:/Users/welcome/AppData/Roaming/.emacs.d/layers/+spacemacs/spacemacs-evil/packages.el (source)...done Loading c:/Users/welcome/AppData/Roaming/.emacs.d/layers/+spacemacs/spacemacs-language/packages.el (source)...done Loading c:/Users/welcome/AppData/Roaming/.emacs.d/layers/+spacemacs/spacemacs-misc/packages.el (source)...done Loading c:/Users/welcome/AppData/Roaming/.emacs.d/layers/+spacemacs/spacemacs-ui/packages.el (source)...done Loading c:/Users/welcome/AppData/Roaming/.emacs.d/layers/+spacemacs/spacemacs-ui-visual/packages.el (source)...done Loading c:/Users/welcome/AppData/Roaming/.emacs.d/layers/+spacemacs/spacemacs-org/packages.el (source)...done Loading c:/Users/welcome/AppData/Roaming/.emacs.d/layers/+distributions/spacemacs/layers.el (source)...done Loading c:/Users/welcome/AppData/Roaming/.emacs.d/layers/+distributions/spacemacs-bootstrap/packages.el (source)...done Loading c:/Users/welcome/AppData/Roaming/.emacs.d/layers/+distributions/spacemacs-bootstrap/funcs.el (source)...done Loading c:/Users/welcome/AppData/Roaming/.emacs.d/layers/+spacemacs/spacemacs-ui-visual/funcs.el (source)...done Loading c:/Users/welcome/AppData/Roaming/.emacs.d/layers/+spacemacs/spacemacs-evil/funcs.el (source)...done Loading c:/Users/welcome/AppData/Roaming/.emacs.d/layers/+spacemacs/spacemacs-editing/funcs.el (source)...done Loading c:/Users/welcome/AppData/Roaming/.emacs.d/layers/+spacemacs/spacemacs-layouts/funcs.el (source)...done Loading c:/Users/welcome/AppData/Roaming/.emacs.d/layers/+spacemacs/spacemacs-completion/funcs.el (source)...done Loading c:/Users/welcome/AppData/Roaming/.emacs.d/layers/+distributions/spacemacs-base/funcs.el (source)...done Loading c:/Users/welcome/AppData/Roaming/.emacs.d/layers/+lang/javascript/funcs.el (source)...done Loading c:/Users/welcome/AppData/Roaming/.emacs.d/layers/+lang/html/funcs.el (source)...done Loading c:/Users/welcome/AppData/Roaming/.emacs.d/layers/+lang/clojure/funcs.el (source)...done Loading c:/Users/welcome/AppData/Roaming/.emacs.d/layers/+completion/helm/funcs.el (source)...done Loading c:/Users/welcome/AppData/Roaming/.emacs.d/layers/+lang/emacs-lisp/funcs.el (source)...done Loading c:/Users/welcome/AppData/Roaming/.emacs.d/layers/+source-control/git/funcs.el (source)...done Loading c:/Users/welcome/AppData/Roaming/.emacs.d/layers/+distributions/spacemacs-bootstrap/config.el (source)...done Loading c:/Users/welcome/AppData/Roaming/.emacs.d/layers/+spacemacs/spacemacs-ui-visual/config.el (source)...done Loading c:/Users/welcome/AppData/Roaming/.emacs.d/layers/+spacemacs/spacemacs-layouts/config.el (source)...done Loading c:/Users/welcome/AppData/Roaming/.emacs.d/layers/+spacemacs/spacemacs-completion/config.el (source)...done Loading c:/Users/welcome/AppData/Roaming/.emacs.d/layers/+distributions/spacemacs-base/config.el (source)...done Loading c:/Users/welcome/AppData/Roaming/.emacs.d/layers/+lang/javascript/config.el (source)...done Loading c:/Users/welcome/AppData/Roaming/.emacs.d/layers/+lang/html/config.el (source)...done Loading c:/Users/welcome/AppData/Roaming/.emacs.d/layers/+lang/clojure/config.el (source)...done Loading c:/Users/welcome/AppData/Roaming/.emacs.d/layers/+lang/emacs-lisp/config.el (source)...done Loading c:/Users/welcome/AppData/Roaming/.emacs.d/layers/+source-control/git/config.el (source)...done Loading c:/Users/welcome/AppData/Roaming/.emacs.d/layers/auto-layer.el (source)...done (Spacemacs) Warning: tern binary not found! Loading c:/Users/welcome/AppData/Roaming/.emacs.d/layers/+distributions/spacemacs-base/keybindings.el (source)...done Loading c:/Users/welcome/AppData/Roaming/.emacs.d/.cache/spacemacs-buffer.el (source)...done Spacemacs is ready. Loading c:/Users/welcome/AppData/Roaming/.emacs.d/.cache/recentf...done Open the quickhelp. Skipping check for new version (reason: dotfile) Auto-evilification could not remap these functions in map ‘edebug-mode-map’:

Caused by: java.lang.RuntimeException: Map literal must contain an even number of forms

at clojure.lang.Util.runtimeException (Util.java:221)

clojure.lang.LispReader$MapReader.invoke (LispReader.java:1160)
clojure.lang.LispReader.read (LispReader.java:263)
clojure.lang.LispReader.readDelimitedList (LispReader.java:1200)
clojure.lang.LispReader$MapReader.invoke (LispReader.java:1158)

clojure.lang.LispReader.read (LispReader.java:263)

clojure.lang.LispReader.readDelimitedList (LispReader.java:1200)

clojure.lang.LispReader$MapReader.invoke (LispReader.java:1158)

clojure.lang.LispReader.read (LispReader.java:263)

clojure.lang.LispReader.readDelimitedList (LispReader.java:1200)

clojure.lang.LispReader$MapReader.invoke (LispReader.java:1158)

clojure.lang.LispReader.read (LispReader.java:263)

clojure.lang.LispReader.readDelimitedList (LispReader.java:1200)

clojure.lang.LispReader$MapReader.invoke (LispReader.java:1158)

clojure.lang.LispReader.read (LispReader.java:263)

clojure.lang.LispReader.readDelimitedList (LispReader.java:1200)

clojure.lang.LispReader$ListReader.invoke (LispReader.java:1049)

clojure.lang.LispReader.read (LispReader.java:263)

clojure.lang.LispReader.read (LispReader.java:196)

clojure.lang.Compiler.load (Compiler.java:7373)

clojure.lang.Compiler.loadFile (Compiler.java:7317)

clojure.lang.RT$3.invoke (RT.java:320)

leiningen.core.project$read_raw$fn__3666.invoke (project.clj:1048)

leiningen.core.project$read_raw.invokeStatic (project.clj:1044)

leiningen.core.project$read_raw.invoke (project.clj:1040)

leiningen.core.project$read.invokeStatic (project.clj:1061)

leiningen.core.project$read.invoke (project.clj:1058)

leiningen.core.project$read.invokeStatic (project.clj:1062)

leiningen.core.project$read.invoke (project.clj:1058)

leiningen.core.main$_main$fn__4760.invoke (main.clj:444)

leiningen.core.main$_main.invokeStatic (main.clj:439)

leiningen.core.main$_main.doInvoke (main.clj:436)

clojure.lang.RestFn.invoke (RestFn.java:3204)

clojure.lang.Var.invoke (Var.java:624)

clojure.lang.AFn.applyToHelper (AFn.java:360)

clojure.lang.Var.applyTo (Var.java:700)

clojure.core$apply.invokeStatic (core.clj:646)

clojure.main$main_opt.invokeStatic (main.clj:314)

clojure.main$main_opt.invoke (main.clj:310)

clojure.main$main.invokeStatic (main.clj:421)

clojure.main$main.doInvoke (main.clj:384)

clojure.lang.RestFn.invoke (RestFn.java:3894)

clojure.lang.Var.invoke (Var.java:676)

clojure.lang.AFn.applyToHelper (AFn.java:403)

clojure.lang.Var.applyTo (Var.java:700)

clojure.main.main (main.java:37)

error in process sentinel: Could not start nREPL server: java.lang.Exception: Error loading c:\Users\welcome\xtnt-micro\project.clj

at leiningen.core.project$read_raw$fn__3666.invoke (project.clj:1050)

leiningen.core.project$read_raw.invokeStatic (project.clj:1044)

leiningen.core.project$read_raw.invoke (project.clj:1040)

leiningen.core.project$read.invokeStatic (project.clj:1061)

leiningen.core.project$read.invoke (project.clj:1058)

leiningen.core.project$read.invokeStatic (project.clj:1062)

leiningen.core.project$read.invoke (project.clj:1058)

leiningen.core.main$_main$fn__4760.invoke (main.clj:444)

leiningen.core.main$_main.invokeStatic (main.clj:439)

leiningen.core.main$_main.doInvoke (main.clj:436)

clojure.lang.RestFn.invoke (RestFn.java:3204)

clojure.lang.Var.invoke (Var.java:624)

clojure.lang.AFn.applyToHelper (AFn.java:360)

clojure.lang.Var.applyTo (Var.java:700)

clojure.core$apply.invokeStatic (core.clj:646)

clojure.main$main_opt.invokeStatic (main.clj:314)

clojure.main$main_opt.invoke (main.clj:310)

clojure.main$main.invokeStatic (main.clj:421)

clojure.main$main.doInvoke (main.clj:384)

clojure.lang.RestFn.invoke (RestFn.java:3894)

clojure.lang.Var.invoke (Var.java:676)

clojure.lang.AFn.applyToHelper (AFn.java:403)

clojure.lang.Var.applyTo (Var.java:700)

clojure.main.main (main.java:37)

Caused by: clojure.lang.Compiler$CompilerException: java.lang.RuntimeException: Map literal must contain an even number of forms, compiling:(c:\Users\welcome\xtnt-micro\project.clj:77:52)

at clojure.lang.Compiler.load (Compiler.java:7386)

clojure.lang.Compiler.loadFile (Compiler.java:7317)

clojure.lang.RT$3.invoke (RT.java:320)

leiningen.core.project$read_raw$fn__3666.invoke (project.clj:1048)

leiningen.core.project$read_raw.invokeStatic (project.clj:1044)

leiningen.core.project$read_raw.invoke (project.clj:1040)

leiningen.core.project$read.invokeStatic (project.clj:1061)

leiningen.core.project$read.invoke (project.clj:1058)

leiningen.core.project$read.invokeStatic (project.clj:1062)

leiningen.core.project$read.invoke (project.clj:1058)

leiningen.core.main$_main$fn__4760.invoke (main.clj:444)

leiningen.core.main$_main.invokeStatic (main.clj:439)

leiningen.core.main$_main.doInvoke (main.clj:436)

clojure.lang.RestFn.invoke (RestFn.java:3204)

clojure.lang.Var.invoke (Var.java:624)

clojure.lang.AFn.applyToHelper (AFn.java:360)

clojure.lang.Var.applyTo (Var.java:700)

clojure.core$apply.invokeStatic (core.clj:646)

clojure.main$main_opt.invokeStatic (main.clj:314)

clojure.main$main_opt.invoke (main.clj:310)

clojure.main$main.invokeStatic (main.clj:421)

clojure.main$main.doInvoke (main.clj:384)

clojure.lang.RestFn.invoke (RestFn.java:3894)

clojure.lang.Var.invoke (Var.java:676)

clojure.lang.AFn.applyToHelper (AFn.java:403)

clojure.lang.Var.applyTo (Var.java:700)

clojure.main.main (main.java:37)

Caused by: java.lang.RuntimeException: Map literal must contain an even number of forms at clojure.lang.Util.runtimeException (Util.java:221) clojure.lang.LispReader$MapReader.invoke (LispReader.java:1160) clojure.lang.LispReader.read (LispReader.java:263)

clojure.lang.LispReader.readDelimitedList (LispReader.java:1200)

clojure.lang.LispReader$MapReader.invoke (LispReader.java:1158)
clojure.lang.LispReader.read (LispReader.java:263)
clojure.lang.LispReader.readDelimitedList (LispReader.java:1200)
clojure.lang.LispReader$MapReader.invoke (LispReader.java:1158)

clojure.lang.LispReader.read (LispReader.java:263)

clojure.lang.LispReader.readDelimitedList (LispReader.java:1200)

clojure.lang.LispReader$MapReader.invoke (LispReader.java:1158)

clojure.lang.LispReader.read (LispReader.java:263)

clojure.lang.LispReader.readDelimitedList (LispReader.java:1200)

clojure.lang.LispReader$MapReader.invoke (LispReader.java:1158)

clojure.lang.LispReader.read (LispReader.java:263)

clojure.lang.LispReader.readDelimitedList (LispReader.java:1200)

clojure.lang.LispReader$ListReader.invoke (LispReader.java:1049)

clojure.lang.LispReader.read (LispReader.java:263)

clojure.lang.LispReader.read (LispReader.java:196)

clojure.lang.Compiler.load (Compiler.java:7373)

clojure.lang.Compiler.loadFile (Compiler.java:7317)

clojure.lang.RT$3.invoke (RT.java:320)

leiningen.core.project$read_raw$fn__3666.invoke (project.clj:1048)

leiningen.core.project$read_raw.invokeStatic (project.clj:1044)

leiningen.core.project$read_raw.invoke (project.clj:1040)

leiningen.core.project$read.invokeStatic (project.clj:1061)

leiningen.core.project$read.invoke (project.clj:1058)

leiningen.core.project$read.invokeStatic (project.clj:1062)

leiningen.core.project$read.invoke (project.clj:1058)

leiningen.core.main$_main$fn__4760.invoke (main.clj:444)

leiningen.core.main$_main.invokeStatic (main.clj:439)

leiningen.core.main$_main.doInvoke (main.clj:436)

clojure.lang.RestFn.invoke (RestFn.java:3204)

clojure.lang.Var.invoke (Var.java:624)

clojure.lang.AFn.applyToHelper (AFn.java:360)

clojure.lang.Var.applyTo (Var.java:700)

clojure.core$apply.invokeStatic (core.clj:646)

clojure.main$main_opt.invokeStatic (main.clj:314)

clojure.main$main_opt.invoke (main.clj:310)

clojure.main$main.invokeStatic (main.clj:421)

clojure.main$main.doInvoke (main.clj:384)

clojure.lang.RestFn.invoke (RestFn.java:3894)

clojure.lang.Var.invoke (Var.java:676)

clojure.lang.AFn.applyToHelper (AFn.java:403)

clojure.lang.Var.applyTo (Var.java:700) clojure.main.main (main.java:37)

Highlights: java.lang.RuntimeException: Map literal must contain an even number of forms, compiling:(c:\Users\welcome\xtnt-micro\project.clj:77:52) project code: :main xtnt-micro.handler :cljsbuild {:builds {:dev {:source-paths ["src/cljs"] :figwheel true :compiler {:main xtnt-micro.core :asset-path "cljs-out/dev" :output-to "resources/public/cljs-out/dev-main.js" :output-dir "resources/public/cljs-out/dev" :source-map-timestamp true}}}}

 :repl-options {:nrepl-middleware [cider.piggieback/wrap-cljs-repl]}
 ;; need to add the compliled assets to the :clean-targets
 :clean-targets ^{:protect false} ["target/public/cljs-out"
                                   :target-path]}

:uberjar {:prep-tasks ["compile" ["cljsbuild" "once" "min"]]
          :aot :all
          :main xtnt-micro.handler
          :cljsbuild
          {:builds
                {:xtnt-micro {:main xtnt-micro.core
                     {:source-paths ["src/cljs"]
                      :compiler
                       {:output-to "resources/public/cljs-out/dev-main.js"
                        :asset-path "cljs-out/dev"
                        :output-dir "resources/public/cljs-out/dev"
                        :main xtnt-micro.core
                        :optimizations :advanced
                        :pretty-print false }}}}
           {:xtnt-micro-cljs {:main xtnt-micro.core
                         {:source-paths ["src/cljs"]
                          :compiler
                         {:output-to "resources/public/cljs-out/trello.js"
                           :asset-path "cljs-out/dev"
                           :output-dir "resources/public/cljs-out/dev"
                           :main xtnt-micro.core
                           :optimizations :advanced
                           :pretty-print false }}}}}}})

Hypothesis: i hope it is syntax error,i should add the additional multiple outputs in some other way Conclusion: In case of multiple cljsbuild,need to add main for each target,so in this case should i add main function for the each file?In some reference have seen ,we can switch the builds in repl by using "switch-to-build" but it is not right way to choose,i guess.

kattakavya commented 5 years ago

@azureus89 this is the current issue,which is I'm struck on.

azureus89 commented 5 years ago

@kattakavya cant say i hope it is etc ... what is the hypothesis ... according to the highlight, it seems be bad syntax as you said, in edit the post and add the relevant code section to the highlight ...

kattakavya commented 5 years ago

@azureus89 I have updated the project code under the highlighted part,please find updated comment.

azureus89 commented 5 years ago

yes syntax error will show you on call tonight where the issue is

sahabaishakhi commented 5 years ago

@azureus89 we have a couple of doubts for the migration into clojurescript -> there is index.html that mentions the cljs-out path to read the js output file, which currently compiles the reagent elements in core.cljs and loads them in the app element. Post creating a new cljs file having the trello hiccup elements by using reagent, how do we have defroutes route those elements in the appropriate URL since they can access functions in clj folder only?

you need to a) have a blank html page with js pointing to the js output file. make sure css used is the same as the ones in parikshiths clj file b) create a route in handler/core so you can see your new page c) make the functions used in the clj file work one by one in the clojurescript file, and tackle any errors as and when they come

azureus89 commented 5 years ago

you need a different html file and route the trello request there, that html file should reference the js ouput file for trello

sahabaishakhi commented 5 years ago

@kattakavya can you checkout my branch and see if you can view the trellopage as well as see a message on the chrome console? @azureus89 figwheel isn't running properly in my system, and the error is the same as I mentioned on the call, which at the time were for other projects. figwheel for xtnt-micro seemed to be working fine for me, but not anymore. the message that I am getting is

error in process filter: nrepl-send-sync-request: Sync nREPL request timed out (op eval code (require 'cljs.core))
error in process filter: Sync nREPL request timed out (op eval code (require 'cljs.core)

so the cider-jack-in-cljs is an ongoing issue now. How do I view the backtrace after M-x toggle-debug? I will post an error report for that.

EDIT: figured how to view backtrace, had to trigger the error again.

sahabaishakhi commented 5 years ago

@kattakavya I am able to view the trello page, just need you to tell me if you can see the console and read the message. if yes, you can start on the hiccup function rendering using reagent one by one (see my branch for reference - I have commented out the hiccup elements and component rendering related functions). Do not edit my branch, work on yours. since I will not be able to close this issue and send a pull req without testing it. refer to the last commit I made to view the changes.

azureus89 commented 5 years ago

@sahabaishakhi looking into #28 .. based on the latest comment .. is #28 still an issue though?

sahabaishakhi commented 5 years ago

@azureus89 yes it is. it worked fine for me earlier in the micro project but now it doesn't.

kattakavya commented 5 years ago

@sahabaishakhi I can view the page in web but in console facing an error image and in core.cljs code 132.(trlo-rgnt/mount-app-element) because of this line facing an error in cider,I have commented that now my cider is running fine.

sahabaishakhi commented 5 years ago

@kattakavya delete line numbers 7-9 in trello.html

sahabaishakhi commented 5 years ago

also, create a file in cljs-out folder dev-trello.js

sahabaishakhi commented 5 years ago

@azureus89 How does one provide the necessary information in project.clj to have more than one cljs/js files for a project inside the dependencies being in cljsbuild and uberjar

:cljsbuild
         {:builds {:dev {:source-paths ["src/cljs"]
                         :figwheel true
                         :compiler
                          {:main xtnt-micro.core
                           :asset-path "cljs-out/dev"
                           :output-to "target/public/cljs-out/dev-main.js"
                           :output-dir "target/public/cljs-out/dev"
                           :source-map-timestamp true}}}}
:uberjar {:prep-tasks ["compile" ["cljsbuild" "once" "min"]]
              :aot :all
              :main xtnt-micro.handler
              :cljsbuild
               {:builds {:min
                         {:source-paths ["src/cljs"]
                          :compiler
                          {:output-to "target/public/cljs-out/dev-main.js"
                            :asset-path "cljs-out/dev"
                           :output-dir "target/public/cljs-out/dev"
                            :main xtnt-micro.core
                            :optimizations :advanced
                            :pretty-print false }}}}}

for cljs file to be compiled namely trelloui.cljs and the output js file being dev-trello.js?

kattakavya commented 5 years ago

@sahabaishakhi I have deleted the code lines from html file as you said and created the js file under cljs-out and added the same content in js file. previously there were 2 errors,after adding trello.js file goog error got resolved ,now facing with one error in console

image