Skip to content
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

Improve the 'compiler output capture' in case of error. #13172

Open
antoniocaruso opened this issue Jan 20, 2025 · 0 comments
Open

Improve the 'compiler output capture' in case of error. #13172

antoniocaruso opened this issue Jan 20, 2025 · 0 comments
Labels
enhancement Improvement to an existing feature help wanted Can be fixed in the public (open source) repo. Language Service tasks/build/debug An issue relating to tasks.json (e.g. build issues)

Comments

@antoniocaruso
Copy link

antoniocaruso commented Jan 20, 2025

Feature Request

Recent versions of the classic C/C++ compilers like gcc 14, or clang, provide very detailed information in case of error.
Example, run gcc 14 on a program with a simple 'printf("%d");" without an integer variable inside the parenthesis.
You get:

printerror.c: In function 'main':
printerror.c:5:18: warning: format '%d' expects a matching 'int' argument [-Wformat=]
    5 |         printf("%d");
      |                 ~^
      |                  |
      |                  int

If I try to compile and run this simple program in VS code, it capture the error (in the 'problem' pane) but it is not possibile to see the information provided by the compiler. Please, add a very simple option in the preferences that say 'provide complete output of compiler in terminal' so, we get see all this kind of suggestion.
I want to see the output above in one of the pane or just reported as it is, so, please add an option like 'include all output of the compilation'.

@sean-mcmanus sean-mcmanus added Language Service help wanted Can be fixed in the public (open source) repo. tasks/build/debug An issue relating to tasks.json (e.g. build issues) labels Jan 22, 2025
@sean-mcmanus sean-mcmanus added the enhancement Improvement to an existing feature label Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvement to an existing feature help wanted Can be fixed in the public (open source) repo. Language Service tasks/build/debug An issue relating to tasks.json (e.g. build issues)
Projects
Status: No status
Development

No branches or pull requests

2 participants