Serial.println() + void setup() + Teensy 3.6

I’m trying to process this code with platformio in Atom on a Teensy 3.6:

#include <Arduino.h>

void setup() {
  // put your setup code here, to run once:
  Serial.begin(9600);
  Serial.println("Hallo");
}
void loop() {}

But the Serial Monitor dont output anything like : Hallo.

The only thing it does:
PS C:\Users\aLI\Documents\PlatformIO\Projects\180113-121516-teensy36> pio device monitor --port COM8
— Miniterm on COM8 9600,8,N,1 —
— Quit: Ctrl+C | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H —

ok I find a solution :slight_smile:
You have to put a while loop after Serial:

void setup() {
  // put your setup code here, to run once:

  Serial.begin(9600);

   while (!Serial) {
    ; // wait for serial port to connect. Needed for native USB.
  }

  Serial.println("Hallo");

}

void loop() {}

Something I noticed as well is using minicom also works (without the while loop). It appears to be a bug in the platformio serial monitor waiting for the connect