Hi folks, there is any way to get the logging from the Script definition when running in a IntelliJ plugin? I'm using ScriptDefinitionsProvider.
p
pgreze
04/25/2021, 10:41 AM
Do you mean the script stdout/stderr? When using the run button, it will display both of them in a new window.
Are you running from command line directly?
s
SrSouza
04/25/2021, 11:45 AM
No, I mean, when IntelliJ is resolving the Script. For example, if me ScriptCompileConfiguration fails with a Exception, I do not get the full exception because it is show on a error top bar in IntelliJ
SrSouza
04/25/2021, 11:47 AM
Everytime we edit the fail, the IntelliJ executes the script configuration again
SrSouza
04/25/2021, 11:47 AM
on
beforeCompiling
p
pgreze
04/25/2021, 12:42 PM
Ah. Usually you can see errors on the right (red indicators), but if IntelliJ is not helpful enough, why not try to use the command like:
Copy code
kotlinc -script myscript.kts
You’ll be sure to see all compilation or runtime errors. Install kotlin is as easy as: