-
Notifications
You must be signed in to change notification settings - Fork 464
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build task isn't colored in terminal #2783
Comments
It seems that the way we are doing tasks removes the colors. Right now, if we were to send the commands directly to the terminal, we could get colors, but we also wouldn't be able to tell when the build completed or whether it succeeds or not. We'll need to talk to the VS Code team to see if they can give us more information from the Terminal object. |
On my ArmClang, Windows 10 and VSCode Cmake Tools it looks to be working (I have it configured to useBuildTask) But when I add Obviously these are only Clang colours. Ninja messages are still monochromatic. |
I'm talking with the VS Code team about this issue: microsoft/vscode#145234. If we can move the implementation to run directly in the terminal, I think it will work the way you expect. |
for those waiting for salvation: vscode extensions-> |
Brief Issue Summary
I'm trying to get color output in terminal. Suggested workaround here #478 (comment) isn't working as expected.
Compiler errors are only colored with
set(CMAKE_CXX_FLAGS -fdiagnostics-color=always)
is in CMakeList.txt,but "Building CXX Object" messages are still in white.
Switching task to shell command shows desired colored output ("Building CXX Object" messages are in green color):
CMake Tools Diagnostics
CMake: Log Diagnostics
Debug Log
No response
Additional Information
Screenshots
Workaroud with
set(CMAKE_CXX_FLAGS -fdiagnostics-color=always)
:Task as shell command without
fdiagnostics-color
flag:The text was updated successfully, but these errors were encountered: