Skip to content

C++: Tasks not detected by debugger #1616

Closed

Description

@ahshabbir

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

Activity

  1. frol commented on May 9, 2020

    @frol

    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 🤔

  2. nhooyr commented on May 18, 2020

    @nhooyr
    Contributor

    @ahshabbir Can you try the latest release?

  3. ahshabbir commented on May 18, 2020

    @ahshabbir
    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.

  4. nhooyr commented on May 18, 2020

    @nhooyr
    Contributor

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

  5. ahshabbir commented on May 20, 2020

    @ahshabbir
    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.

  6. nhooyr commented on May 21, 2020

    @nhooyr
    Contributor

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

  7. ahshabbir commented on May 26, 2020

    @ahshabbir
    Author

    The issue persists with 3.3.1

  8. added
    bugSomething isn't working
    and removed
    waiting-for-infoWaiting for more information from submitter
    on Sep 8, 2020
  9. added this to the Backlog milestone on Apr 29, 2021
  10. jsjoeio commented on Jun 22, 2021

    @jsjoeio
    Contributor

    Follow the repro steps here: #3643

  11. XLJ-CN commented on Jun 23, 2021

    @XLJ-CN

    Follow the repro steps here: #3643

    Will this problem be solved in the next version?

  12. jsjoeio commented on Jun 23, 2021

    @jsjoeio
    Contributor

    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?

  13. XLJ-CN commented on Jun 24, 2021

    @XLJ-CN

    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!

  14. modified the milestones: Backlog, On Deck on Jun 24, 2021
  15. stale commented on Dec 21, 2021

    @stale

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions