https://kotlinlang.org logo
#arrow-meta
Title
# arrow-meta
r

rt

06/21/2020, 8:28 PM
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

raulraja

06/21/2020, 8:30 PM
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

rt

06/21/2020, 8:36 PM
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

shikasd

06/22/2020, 1:14 AM
you can run compilation in the same process as gradle with
-Dkotlin.compiler.execution.strategy="in-process"
, then println should output some things :)
👍 1
2 Views