← All release notes

July 13, 2023 · VS Code Extension, Developer Tools, Robocorp

Updates on Robocorp Code and robocorp-log

Updates on Robocorp Code

  • The logging from robocorp.tasks/robocorp.log is now integrated directly into VSCode (ROBO TASKS OUTPUT view).
  • Note: Requires robocorp.tasks 2.1.2, robocorp.log 2.3.0 and Robocorp Code 1.7.0.
  • Elements which have a location can now be clicked to open the related file directly inside of VSCode.
  • The terminal view can now also show entries logged from robocorp.log debug|warn|info|critical and not just stdout/stderr.

Other noteworthy changes in Robocorp Code:

  • Fixed issues in Run Task / Debug Task code lenses (launching robocorp.tasks):

  • Robot environment properly used when robot is available.

  • The input work item is properly selected when available.

  • If multiple entry points in the same file were available the selected one will be run.

  • If a robot.yaml has preRunScripts they'll be run prior to launching.

Noteworthy changes in robocorp.log:

  • Added robocorp.log.debug (so, there's one more level available to log messages).

  • It's possible to filter log levels by using setup_log(log_level='debug|info|warn|critical') (so that log levels filtered out won't even be added to the log.html).

  • It's possible to also redirect to sys.stdout or sys.stderr the messages added with log.debug, log.info, log.warn and log.critical by using setup_log(output_log_level='debug|info|warn|critical') along with setup_log(output_stream={'debug': 'stderr'}) (note that the current default is just redirecting critical calls to stderr).