java-json-performance-benchmarks icon indicating copy to clipboard operation
java-json-performance-benchmarks copied to clipboard

DSL compilation error

Open karussell opened this issue 9 years ago • 4 comments

I've tried mvn clean install and got the following error. Does this really mean I need mono installed for a Java project :) ?

[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] Mono is required to run DSL compiler. Mono not detected or specified.
[ERROR] DSL compilation error
  Unable to setup DSL-JSON processing environment. Specify dsljson.loglevel=DEBUG for more information.

karussell avatar Nov 22 '16 12:11 karussell

Sigh. Yes, unfortunately there was a contribution that I merged to support java-dsl backend. And for whatever reason it requires this dependency.

Alternatively I think you may be able to locally just delete sub-tree that requires this. I am not 100% sure what to do with this as I am not really happy about such dependency; ideally it'd come via Maven (I don't object to non-java deps per se, as long as they integrate well).

So... that's the backstory. You can also download Mono support packages if you prefer, it's a one-time task at least.

cowtowncoder avatar Nov 22 '16 19:11 cowtowncoder

To disable DSL compilation you can comment out annotation processor for CompiledJsonProcessor.

To avoid Mono dependency we can put generated code into the source... and recompile it on demand.

zapov avatar Dec 01 '16 13:12 zapov

@zapov I think pre-generation would make sense here. I don't as much mind other build steps (as long as they are stable), but mono dependency is bit limiting for anyone who might just want to casually check things out.

cowtowncoder avatar Dec 02 '16 19:12 cowtowncoder

I've created https://github.com/cowtowncoder/java-json-performance-benchmarks/pull/7 so people can just run the project themselves. If they want to change the model, they will have to fiddle with the setup somewhat :(

zapov avatar Dec 03 '16 07:12 zapov