Sysprogs forums › Forums › VisualGDB › Why can't add directory to Intellisense Directories?
- This topic has 5 replies, 2 voices, and was last updated 5 years, 8 months ago by support.
-
AuthorPosts
-
February 26, 2019 at 11:46 #23993z16166Participant
VS2017 + VisualGDB 5.4r3.
Why can’t add directory to Intellisense Directories?
All the Intellisense directories of VisualGDB are auto-detected, so I can’t add or remove them.
Even I add “/usr/include/c++” to the list of remote cache directories, it doesn’t appear in the list of Intellisense Directories.
February 26, 2019 at 20:38 #23997supportKeymasterNot sure what you meant. Please try attaching a screenshot of the problem, showing what you are trying to achieve and what you actually observe and we will help you get it to work.
February 27, 2019 at 08:26 #24007z16166ParticipantI’m using VS2017 + VisualGDB 5.4r3 to build a CMake project.
The project uses a customized Clang/LLVM to build it. The customized Clang/LLVM is installed to ~/opt/wasm, and it uses libstdc++ headers in /usr/include.
The intellisense complains “could not find signal.h and other 62 files”. Even standard c/c++ header files like “algorithm”, “atomic” etc. are not found.
In the VisualGDB settings of this project, navigate to “Intellisense Directories” dialog, I add “/usr/include/c++/5.4.0” through “Edit Remote Cache”, but “/usr/include/c++/5.4.0” doesn’t appear in the “Intellisense Directories” ListView.
How can I let the Intellisense find libstdc++ header files?
Thanks.
Attachments:
You must be logged in to view attached files.February 28, 2019 at 02:58 #24022supportKeymasterThanks for the clarification. We have published a detailed tutorial showing how VisualGDB computes the IntelliSense directories for Advanced CMake projects and how to diagnose various issues related to them: https://visualgdb.com/tutorials/IntelliSense/.
If it doesn’t help, please share your observations (contents of the cache files and the flags reported in Clang IntelliSense Diagnostics Console) and we will help you get it to work.
March 2, 2019 at 04:24 #24049z16166ParticipantI have read the tutorial. But there are 8 files not found yet. It keeps displaying “Searching packages for array”, event if after I click “Synchronize all directories” many times.
It shows that “array” is included from “extensions.hpp”, but there is no “extensions.hpp” in Projects window of Intellisense diagnostics console, only “extension.hpp” found.
Attachments:
You must be logged in to view attached files.March 2, 2019 at 07:54 #24053supportKeymasterThe extensions.hpp file is likely included from a different file.
Please try this build: VisualGDB-5.4.103.2946.msi
Please check if the error is shown when opening one of the .cpp files, not the .hpp file, then switch the Clang IntelliSense Diagnostics Console to Projects view and click the “Save” button:
It will dump the IntelliSense state of all projects to an XML file. Please attach it here (or send it via our support form) and we will help you get this to work.
Attachments:
You must be logged in to view attached files. -
AuthorPosts
- You must be logged in to reply to this topic.