hello all, I’ve got a ( minor issue here) but I w...
# kapt
c
hello all, I’ve got a ( minor issue here) but I wanted to understand what I might be doing wrong. I’ve created a module which generates a couple of classes on compile time; but when I want to print any messages they are all printed on the same line - I’ve already tried out a couple of variations with \n. I’m using:
_messager_.printMessage(Diagnostic.Kind.NOTE, "test 1\n")
_messager_.printMessage(Diagnostic.Kind.NOTE, "test 2")
any idea what I’m doing wrong?
b
I remember having the same issue. Try
\r\n
instead of just
\n
. For some reason
printMessage
doesn’t seem to expand
\n
into the platform specific line separator.
c
thanks @Burkhard it works! :D