Comments (4)
@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.
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.
@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.
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)
- Update compilerPath setting logic after validation changes
- intelliSenseCacheSize != 0 causes newly added headers to not be used by IntelliSense in certain cases HOT 1
- ms-vscode.cpptools-1.21.6-linux-x64 cpptools-srv crash HOT 1
- Terminal Window Error Code Link resolver does not work anymore (Strg+Click /Ctrl+Click) to show source of error) HOT 1
- clang-tidy throws bunch of false errors from <*intrin.h>
- cpptools crashes on shutdown on Mac when C_Cpp.loggingLevel "7" is used
- 1.22.0 (unreleased) filename cache is randomly missing relationships
- C_Cpp.clang_format_style doesn't work when set to "file" HOT 1
- VSCode doesn't recognize clang or other installed GCC compilers when configuring task
- 1.22.0 (unreleased) cpptools randomly deadlocks or crashes during "Discovering files..."
- Include completion incorrectly prepends CWD to "(Multiple locations)" doc field.
- Migrate from proposed API `terminalDataWriteEvent` to new `terminalShellIntegration`
- 1.22.0 (unreleased) cpptools-srv can randomly crash during initialization HOT 1
- 1.21.6 Automatically modify the Chinese code HOT 4
- macOS lldbinit not loaded HOT 1
- Add risc-v debugging support HOT 2
- 1.22.0 (unreleased) crash calling get_memory_usage on Mac HOT 1
- Random cpptools crash when a child process is created
- default template argument of `decltype([](){})` shows intellisense error even though code compiles
- Assembly view displays error after setting program offset HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-cpptools.