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

I can't run/Debug C program when I disable c/c++ intellisense for clangd. #9762

Closed
suyangzuo opened this issue Aug 20, 2022 · 3 comments · Fixed by #9771
Closed

I can't run/Debug C program when I disable c/c++ intellisense for clangd. #9762

suyangzuo opened this issue Aug 20, 2022 · 3 comments · Fixed by #9771
Assignees
Labels
bug fixed Check the Milestone for the release in which the fix is or will be available. Language Service tasks/build/debug An issue relating to tasks.json (e.g. build issues) verified Bug has been reproduced
Milestone

Comments

@suyangzuo
Copy link

Environment

  • OS and version: Windows11 x64
  • VS Code: 1.70
  • C/C++ extension: 1.20
  • GDB / LLDB version: 12.1

Bug Summary and Steps to Reproduce

Bug Summary:

Steps to reproduce:

  1. Install clangd for intellisense, it asked me to disable c/c++ intellisense or there will be conflict.
  2. Disable c/c++ intelli sense Engine.
  3. Click 'Run and Debug'
  4. Then a error 'Default config not found in provideDebugConfigurations()' popup on the bottom-right.

Debugger Configurations

None.
There problem is just 'cannot generate tasks.json'.

Debugger Logs

None.

Other Extensions

No response

Additional Information

Code_jTkyUHBcTD

@sean-mcmanus sean-mcmanus added this to the 1.12.2 milestone Aug 20, 2022
@sean-mcmanus
Copy link
Collaborator

Thanks for reporting this. We can look into fixing this for our next insiders release.

@sean-mcmanus sean-mcmanus added the tasks/build/debug An issue relating to tasks.json (e.g. build issues) label Aug 20, 2022
@sean-mcmanus
Copy link
Collaborator

sean-mcmanus commented Aug 22, 2022

FYI, a workaround is to generate a launch.json via some other method. You could also set C_Cpp.intelliSenseEngine to "Default" temporarily to use that mechanism to generate the launch.json. Or downgrade to 1.8.4 to create the launch.json. And we have a fix pending at #9771 .

@sean-mcmanus sean-mcmanus added the fixed Check the Milestone for the release in which the fix is or will be available. label Aug 23, 2022
@sean-mcmanus
Copy link
Collaborator

Fixed with https://github.com/microsoft/vscode-cpptools/releases/tag/v1.12.2 -- but FYI, if you don't have a launch.json, you'll need to click the Open launch.json button in the UI that pops up to generate a blank launch.json and then use the Add Configuration button in the bottom right to add a launch.json configuration. The ability to auto-generate the launch.json from the compilers we detect currently requires the intelliSenseEngine to be set to Default.

@github-actions github-actions bot locked and limited conversation to collaborators Oct 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug fixed Check the Milestone for the release in which the fix is or will be available. Language Service tasks/build/debug An issue relating to tasks.json (e.g. build issues) verified Bug has been reproduced
Projects
None yet
3 participants