1.3.6487

More code editor improvements: code formatting and exact script line reporting for errors

Include line numbers in error messages

Whenever the scripting subsystem encounters an error, it now records the exact line of code that caused it. This information is shown both in the application logs (file) and in the event log.

Image

 

Code formatting

Writing code without any automatic formatting is tedious, and this feature helps with that. You can now either press Ctrl+Alt+Enter or use the context menu to automatically format the document. It will add missing line breaks, spaces, indentation, and more.

The current version is still fairly simple, but it's already much better than doing everything manually.

Image

 

Bugfixes / Improvements

  • [Event Log] Several UI adjustments here and there to make it look nicer
  • [Bugfix] Fixed a crash that sometimes occurred on startup ("List of elements of type ..." )