-
Notifications
You must be signed in to change notification settings - Fork 474
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
Is there any way to parse the output of a build to enable "jump to error" #2
Comments
This is definitely a feature I want to add. It will take a bit of work, as reliably parsing the error output from the different compilers can be difficult. Some compilers (such as Clang) offer machine-parsable output options, so that will be a good place to start. |
I've got it on Windows using a Visual Studio CMake generator. The tips is to define a custom task in tasks.json that runs
As you can see, when the task is executed, the output is analyzed and you can navigate to the warnings and errors For clang or gcc you can define your own problemMatcher based on regexp, you can find an exemple with gcc here Hope this can help you... |
Thanks for the info! That'll definitely help. I'll play around with it and see what I can make work. |
I've been working on a kind-of solution on the I wish that it were possible to use a vscode command in place of the "command" on a task, rather than the name of an external program. The Parsing the output of GCC and Clang seems to work pretty well, although I don't have quick access to a Windows machine where I can test the MSVC output parser (but it should work). Any MSVC users available to give it a try? |
I just try it, |
This should be fixed as of 0.3.0. Thanks for the help! |
Is parsing the output hard-coded into the sources? What if I need to parse an unknown (even non-C) compiler output? When I compile via |
At the moment, there is not, unfortunately. |
I'm quite new to cmake tools, so excuse me for a dumb question: why to invent your own build system (with custom problem parsers etc.) but not just integrate with vscode build tasks? |
Early on I tried to do |
Does jump working for now? I remember it used to work. But not now for me. |
One of the most useful features of editor-build integration is to enable immediate access to files with errors or warnings from the build output.
This extension doesn't seem to provide this - can it be added?
The text was updated successfully, but these errors were encountered: