In some instances (e.g., when running under Docker) certain Python prints get buffered/not flushed. This causes issues during server startup (e.g., in CI), as important logs were missing, preventing correct server initialization.
To resolve this, flush=True was added to the relevant print() statements, ensuring that the output is immediately flushed to the console, allowing the server to start correctly.
Summary
In some instances (e.g., when running under Docker) certain Python prints get buffered/not flushed. This causes issues during server startup (e.g., in CI), as important logs were missing, preventing correct server initialization.
https://github.com/vectorgrp/vector-vscode-vcast/blob/ddb2fa78b31453edb93ffb767354460ce7dc6bbb/src/vcastDataServer.ts#L153
To resolve this,
flush=True
was added to the relevantprint()
statements, ensuring that the output is immediately flushed to the console, allowing the server to start correctly.