-
Notifications
You must be signed in to change notification settings - Fork 29.4k
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 #3826
Comments
@egamma > Does the problem matcher work and return the errors properly. You can test this by opening View > Show Errors and Warnings. View > Errors and Warnings brings up the input window at the top of the Code window and on the line below that it says @isidorn Is the March release available yet? According to https://code.visualstudio.com/docs?dv=linux64 February is the latest. I'll be happy to try out the latest if you tell me how to get it. By the way, the February download file I have is named VSCode-linux-x64-stable.zip. Shouldn't there be a version number in the name so one can tell the releases apart? |
@JanKok I got the months confused in my previous comment. I updated the comment now, so in february it should work, but the watch task bug will be fixed in march release |
What should work? F8 doesn't step through the gcc errors. Should I use a different problem matcher? |
Sorry for not being clear, the following should work: if a task returns an error code VSCode will not launch the program. |
That's not what I'm seeing, as I reported in item #1 above. If I edit an error into my C program and hit the start button in Code, make runs and returns error code 2. The Code goes on and tries to run the program. |
Does the task finish - if yes, then it would be great if you could create a new issue and if you could include a minimal repository for which you can reproduce this so we investigate. |
The make task finishes with a return code = 2. If Code is testing for return code == 1 (the usual Unix error return code) then that might explain why Code isn't stopping on the error. Other than that, I don't think I'm doing anything at all special. I'll open a new issue for this tonight if you haven't already resolved it by then. :-) |
|
With VSCode v0.10.10 items 1 & 2 are OK now, but I'm still having problem with 3. Thanks. |
Thanks for trying it with the latest VSCode |
@JanKok to get the problem in VSCode you need to define a problem matcher. The one you have configured is the one for the tsc compiler which will for sure not capture C problems. See the documentation here http://code.visualstudio.com/docs/editor/tasks#_defining-a-problem-matcher on how to configure a problem matcher for gcc. This could be used as a starting point. |
Thanks @dbaeumer The code at defining-a-problem-matcher works as a starting point - and an ending point, i.e. it works fine without modifications! :-) Instead of creating a separate Ctrl-Shift-M menu of errors, could you make it so the user can just click on the error messages in the output window? That would feel more similar to how it's done in both Emacs and Visual Studio. |
We plan to improve our error list experience in the future. |
From @JanKok on March 8, 2016 8:36
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 andin tasks.json and now make runs each time I click start, which is pretty good. But,
undefined=thread-group-added,id="i1"
). I'd like the output window to remain visible if there are make errors.Copied from original issue: microsoft/vscode-docs#215
The text was updated successfully, but these errors were encountered: