Skip to content

C++: Tasks not detected by debugger #1616

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

Closed
ahshabbir opened this issue May 9, 2020 · 12 comments
Closed

C++: Tasks not detected by debugger #1616

ahshabbir opened this issue May 9, 2020 · 12 comments
Labels
bug Something isn't working
Milestone

Comments

@ahshabbir
Copy link

When running the debugger for an active C++ file, the debugger throws an error saying that it cannot find the build task associated with the debug configuration. This is strange because the same launch.json and tasks.json work properly in a native copy of vscode, although the native copy is at a slightly higher commit (ff... vs fd...). I searched through the vscode issues directory and I couldn't find anything pertaining to 'c++ debug', so I figured the issue was in code server. Below are the links to the pastebins of the tasks/launch.json, exthost log, and stdout. Please let me know if you need anything else.

tasks/launch
https://pastebin.com/5nZ36twb
stdout
https://pastebin.com/aVE1aDPJ
exthost.log
https://pastebin.com/dvaT5FnN

@frol
Copy link

frol commented May 9, 2020

I am experiencing the same issue, though it sometimes work fine, but on another try it fails, so it is unstable.

UPD: If I give the browser tab a minute to settle down, it seems to manage to find tasks fine 🤔

@nhooyr
Copy link
Contributor

nhooyr commented May 18, 2020

@ahshabbir Can you try the latest release?

@nhooyr nhooyr added the waiting-for-info Waiting for more information from submitter label May 18, 2020
@ahshabbir
Copy link
Author

I've tried the latest release, the editor seems to hand after you press the play button. Looking at my task manager I noticed that 'cpptools', an executable that is apart of the C++ extension for vs code, was the hanging process. Because this executable is in the extensions folder, I'm starting to think that this is now an issue with the C++ plugin. I'll look through the logs later and see if I find anything new.

@nhooyr
Copy link
Contributor

nhooyr commented May 18, 2020

@ahshabbir Try local VS Code to see if it works.

@ahshabbir
Copy link
Author

Local VS Code still works, although I'm on a lower version (1.45 vs 1.46 on code-server). The problem now is that the editor hangs when you initiate the debug session.

@nhooyr
Copy link
Contributor

nhooyr commented May 21, 2020

@ahshabbir Try upgrading to the latest release, it downgrades to 1.45.1.

@ahshabbir
Copy link
Author

The issue persists with 3.3.1

@code-asher code-asher added bug Something isn't working and removed waiting-for-info Waiting for more information from submitter labels Sep 8, 2020
@jsjoeio jsjoeio added this to the Backlog milestone Apr 29, 2021
@jsjoeio
Copy link
Contributor

jsjoeio commented Jun 22, 2021

Follow the repro steps here: #3643

@XLJ-CN
Copy link

XLJ-CN commented Jun 23, 2021

Follow the repro steps here: #3643

Will this problem be solved in the next version?

@jsjoeio
Copy link
Contributor

jsjoeio commented Jun 23, 2021

Will this problem be solved in the next version?

No, this is in the Backlog. All things in the 3.11 milestone will be in the next version. You can read about our workflow here.

If this is priority for you, I can move it to On Deck and we can take a look in the next version cycle?

@XLJ-CN
Copy link

XLJ-CN commented Jun 24, 2021

Will this problem be solved in the next version?

No, this is in the Backlog. All things in the 3.11 milestone will be in the next version. You can read about our workflow here.

If this is priority for you, I can move it to On Deck and we can take a look in the next version cycle?

Yes! This function is very important to me,thank you!

@stale
Copy link

stale bot commented Dec 21, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no activity occurs in the next 5 days.

@stale stale bot added the stale label Dec 21, 2021
@stale stale bot closed this as completed Dec 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants