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

Build support #215

Closed
JanKok opened this issue Mar 8, 2016 · 2 comments
Closed

Build support #215

JanKok opened this issue Mar 8, 2016 · 2 comments

Comments

@JanKok
Copy link

JanKok commented Mar 8, 2016

I'm trying to do C code development using gcc and make and using WebFreak001's gdb debugger extension. I added "preLaunchTask": "make" to launch.json and

{
    "version": "0.1.0",
    "command": "make",
    "isShellCommand": false,
    // Show the output window only if unrecognized errors occur.
    "showOutput": "always", //"silent",

    // use the standard tsc problem matcher to find compile problems
    // in the output.
    "problemMatcher": "$tsc"
}

in tasks.json and now make runs each time I click start, which is pretty good. But,

  1. If there are compile errors (resulting in make returning an error value), Code doesn't stop. It tries to run the program anyway.
  2. The make output window appears momentarily but is replaced with the debug console (which BTW displays the cryptic message undefined=thread-group-added,id="i1"). I'd like the output window to remain visible if there are make errors.
  3. F8, Ctrl-Shift-M etc., don't work to let me visit the errors in my source code. What does it take to make that work?
@egamma
Copy link
Member

egamma commented Mar 8, 2016

  1. If there are compile errors (resulting in make returning an error value), Code doesn't stop. It tries to run the program anyway.

Does the problem matcher work and return the errors properly. You can test this by opening View > Show Errors and Warnings.

@isidorn @dbaeumer any other ideas?

@egamma
Copy link
Member

egamma commented Mar 8, 2016

This issue was moved to microsoft/vscode#3826

@egamma egamma closed this as completed Mar 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants