vectorgrp / vector-vscode-vcast

A VectorCAST test adapter for VS Code
Other
8 stars 2 forks source link

Forced Immediate Output with flush=True in Server Mode Logs #214

Closed Den1552 closed 1 month ago

Den1552 commented 1 month ago

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 relevant print() statements, ensuring that the output is immediately flushed to the console, allowing the server to start correctly.

sonarcloud[bot] commented 1 month ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud