Open heralight opened 9 years ago
You are missing a dependency on the cn1-data-utils project: https://github.com/shannah/cn1-data-utils
This project is set up as a cn1lib. What I do in my toolchain is add the build/classes directory of the cn1-data-utils project to the library path of the cn1-mirah-json-macros project.
Thanks for writing up these instructions.
Hi!!
I try to compile your project, after some research, I add some details on your readme. I can compile your demo, but I failed on your library compilation by ending with:
[mirahc] Setting macro classpath t o/opt/tmp/cn1-mirah-json-macros/lib/mirah/macros/MirahMacroUtils.jar [mirahc] ERROR: Cannot find class ca.weblite.cn1.mirah.json.macros.ca.weblite.mirah.utils.ArrayUtility [mirahc] ERROR: Cannot find class ca.weblite.cn1.mirah.json.macros.ca.weblite.mirah.utils.DataMapperBuilder [mirahc] ERROR: Cannot find class ca.weblite.cn1.mirah.json.macros.ca.weblite.mirah.utils.BeanBuilder [mirahc] ERROR: Cannot find class ca.weblite.cn1.mirah.json.macros.ca.weblite.mirah.utils.MappableBuilder [mirahc] ERROR: Cannot find class ca.weblite.cn1.mirah.json.macros.ca.weblite.mirah.utils.ElemAssignFinder [mirahc] /opt/tmp/cn1-mirah-json-macros/build/mirah_tmp/macros/src/ca/weblite/cn1/mirah/json/macros/ObjectExtensions.mirah:33: [mirahc] [mirahc] ERROR: Internal compiler error: org.mirah.tool.CompilationFailure null [mirahc] macro def self.mappable(klass:ClassDefinition) [mirahc] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
BUILD FAILED /opt/tmp/cn1-mirah-json-macros/nbproject/mirah-build-cn1.xml:152: org.mirah.jvm.compiler.ReportedException: org.mirah.tool.CompilationFailure at org.mirah.jvm.mirrors.SafeTyper.infer(safe_typer.mirah:46) at org.mirah.tool.MirahCompiler.infer(mirah_compiler.mirah:161) at org.mirah.tool.MirahTool.compile(mirah_tool.mirah:107) at ca.weblite.asm.WLMirahCompiler.compile(WLMirahCompiler.java:295) at ca.weblite.mirah.ant.MirahcTask.execute(MirahcTask.java:158) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292) at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.Target.execute(Target.java:435) at org.apache.tools.ant.Target.performTasks(Target.java:456)