Why can't add directory to Intellisense Directories?

Sysprogs forums Forums VisualGDB Why can't add directory to Intellisense Directories?

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #23993
    z16166
    Participant

    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.

    #23997
    support
    Keymaster

    Not 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.

    #24007
    z16166
    Participant

    I’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.
    #24022
    support
    Keymaster

    Thanks 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.

    #24049
    z16166
    Participant

    I 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.
    #24053
    support
    Keymaster

    The 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.
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.