GithubHelp home page GithubHelp logo

Comments (4)

sean-mcmanus avatar sean-mcmanus commented on September 26, 2024

@LoveDaisy C/C++: Log Diagnostics is only in the command palette when a C/C++ file is active.

Our extension is the C/C++ extension and not the clangd extension -- which do you intend to use? The C_Cpp settings are for the C/C++ extension. You should set the compilerPath setting and avoid setting system includes explicitly, since in your case you only provided 1 of them. You could also set the configurationProvider or compileCommands properties. Maybe look at https://code.visualstudio.com/docs/cpp/cmake-linux .

from vscode-cpptools.

LoveDaisy avatar LoveDaisy commented on September 26, 2024

Sorry for my confusion. I'm using both C/C++ extension and clangd extension. How to tell whether this problem is caused by clangd or c/c++?

I've tried: 1. to provide only compiler path; 2. to provide both compiler path and system include paths. But both have nothing to do with the problem.

I also tried to set compileCommands to the "compile_commands.json" file, but also nothing helps.

And additional information. I tried exactly the same settings on another machine (ssh to another host, whose OS is also ubuntu), the same extensions and the same configurations, and everything works smoothly.

from vscode-cpptools.

sean-mcmanus avatar sean-mcmanus commented on September 26, 2024

@LoveDaisy You could disable one. Or instead of disabling the C/C++ extension you can set C_Cpp.intelliSenseEngine to "disabled".

If you have the CMake Tools extension installed then our extension maybe trying to use that to configure. You can use the C/C++: Log Diagnostics command after opening a C/C++ file to see how the file is getting configured for IntelliSense.

from vscode-cpptools.

LoveDaisy avatar LoveDaisy commented on September 26, 2024

Thanks for you advices @sean-mcmanus !

I think there may be something wrong at the specific machine. Now the instance is closed and there's no problem with new instances. Your advices are valuable in case I come into the same problem next time. Thanks for your time!

from vscode-cpptools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.