Hi folks, there is any way to get the logging from...
# scripting
s
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
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
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
Everytime we edit the fail, the IntelliJ executes the script configuration again
on
beforeCompiling
p
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:
Copy code
brew install kotlin