franneck94 / Vscode-C-Cpp-Runner

🚀 Compile, run and debug single or multiple C/C++ files with ease. 🚀
MIT License
53 stars 14 forks source link

[ENH] Show compiler warnings in warnings tab #79

Closed fronders closed 2 years ago

fronders commented 2 years ago

Hi! Is there a way to parse compiler output and show it in problems list? Also the task output doesn't show if the build was successfull or not

franneck94 commented 2 years ago

Since the vscode update in july the errors does not show up anymore. I have to check how to display them again and how to see the compiler output

franneck94 commented 2 years ago

"Also the task output doesn't show if the build was successfull or not"

This only applied if the task is "re-run" in an prev. opened task tab. So currently you havbe to close the task tab after one compilation step. Then a new task tab will be opened and you should see the compiler command and output again,

fronders commented 2 years ago

No it doesn't. Even if the task is run first time, I don't see anything like Build successful, errors: 0, warnings: 0 or Build failed, errors: 1, warnings: 3. This forces to read through all the compiler log and see if there was error or not - very inconvenient

Here's a screenshot of first build after selecting the folder: image

And even if it did solve the problem - closing the build task window every time is a PITA solution tbh, can't you just output a text message log as the last line?

franneck94 commented 2 years ago

Ah okay i thought u meant something else. Yes, there is currently no list of how many warnings. However, if there is an error in build the returned result from the task will be non zero.

fronders commented 2 years ago

Yes, but how would I see the returned result of the build task if I start the build using the bottom toolbar button? :)

franneck94 commented 2 years ago

image

franneck94 commented 2 years ago

Warnings are again displayed in the "problems" tab