Output Terminal Issues During Testing

Hi All,

I recently switched to using platformIO for an embedded project and in general it has been great. However, while testing, there is one minor thing that is a bit odd.

Working with the VSCode Platform IO extension, the output of my tests is a little funky. When errors, test results, or other information is printed in the terminal, nothing ends up being printed on a new line, instead, it seems to be offset by a set amount. Here is an example:

Oddly enough, this only happy while testing. When I compile the main library, the output in the terminal works fine.

I am working on a Mac (OS 14.6) and am using the unity testing framework. It also doesn’t seem to be a problem if I try it on friends’ Windows machines.

Can you post the project that reproduces this problem?

It happens with this repo: platformio-examples/unit-testing/calculator at develop · platformio/platformio-examples · GitHub

The issue is that linefeeds are evident in the “Test Results” tab, but not carriage returns. The “Terminal” tab, which displays similar information while running a test, works correctly (ie, has linefeeds and carriage returns).

Sounds like an issue in just the PlatformIO VSCode extension then.

Check if there’s something known at https://github.com/platformio/platformio-vscode-ide/issues and open a new issue if not.

Added as #4174:

1 Like