https://kotlinlang.org logo
#kapt
Title
# kapt
c

cafonsomota

03/30/2020, 11:14 AM
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

Burkhard

03/30/2020, 4:18 PM
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

cafonsomota

04/01/2020, 4:23 PM
thanks @Burkhard it works! :D
2 Views