Hi. How do I get `//metadebug` -annotated classes ...
# arrow-meta
r
Hi. How do I get 
//metadebug
 -annotated classes to be displayed on compilation? is there some compiler switch or something? I cloned the arrow-meta-examples project but nothing gets printed into compiler output even though 
//metadebug
  is clearly there
I'm referring to this: https://github.com/arrow-kt/arrow-meta/blob/master/compiler-plugin/src/main/kotlin/arrow/meta/quotes/Quote.kt#L181 unless println is redefined to mean sth else i guess it should produce AST-ish output
r
that prints no output instead it adds comments to the generated sources
there is no debug logger yet in meta
currently debugging is done ad hoc with println
or an actual debugger
you can see it in action in some of the test files meta generates in its tests and it prints after each test where the generated sources are
r
you mean normal println as one would expect? because i added
println(f.name)
to the
helloWorld
example and i still get nothing... it's pretty much vanilla example w/o any changes, not sure what i'm doing wrong
i guess they do mess w/ stdout since i can get what i need by
Copy code
messageCollector!!.report(CompilerMessageSeverity.WARNING, it)
s
you can run compilation in the same process as gradle with
-Dkotlin.compiler.execution.strategy="in-process"
, then println should output some things :)
👍 1