Synchronized path includes not found

Sysprogs forums Forums VisualGDB Synchronized path includes not found

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #20328
    aronrubin
    Participant

    VisualGDB Version: 5.3r8  VS Version: 15.5.7 (2017)  VisualGDB Mode: Remote Linux CMake

    The effect is that includes cannot be found not added to the project properties. However clicking on the #include line and “Open File (Ctrl-Shift-G)” successfully opens the file. When clicking “Add to Project Properties…” the Clang IntelliSense Diagnostics Console reports:

    [+0:00:19.678] Value cannot be null.
    [+0:00:19.678] Parameter name: path1
    [+0:00:19.678] Stack trace:
    [+0:00:19.678] at System.IO.Path.Combine(String path1, String path2)
    [+0:00:19.678] at hz1.d(ck1 a)
    [+0:00:19.678] at w5.k1()
    [+0:00:19.678] at w5.a1_2(IEnumerable`1 b, Object& a)
    [+0:00:19.678] at v1.h(IEnumerable`1 c, my1 a, Boolean b)
    [+0:00:19.678] at yf1.a.AddIncludeDirectories(IEnumerable`1 a, Boolean c, Boolean b)
    [+0:00:19.678] at cr.a()

    Also I cannot find it now but I have seen paths like:
    /home/pi/git/MyProjectvgdb-ssh://pi@raspi.local/usr/local/include/filetoinclude.h
    Where /home/pi/git/MyProject is the project root and filetoinclude.h was the name of a needed include

    Thank you,
    Aron

    #20329
    support
    Keymaster

    Hi,

    This looks like a problem that was recently fixed in our development branch. Please try this build: http://sysprogs.com/files/tmp/VisualGDB-5.4.1.2081.msi

     

    #20331
    aronrubin
    Participant

    Other issues are definitely fixing in 5.4.1 but not this one. Also I found one of those messages in Clang Intellisense Diagnostics Console:

    [+0:24:19.239] Cannot update arguments for C:\Users\arubin\git\Redacted\vgdb-ssh://pi@raspit.local/home/pi/git/Redacted/src/Redacted.cpp: file not in project

    Thank you for the hard work on the other issues.

    #20332
    aronrubin
    Participant

    To be clearer; the original error in the Clang IntelliSense Diagnostics Console has gone away but the symptom of the inability to index the include files persists.

    #20344
    support
    Keymaster

    Hi,

    This could happen if VisualGDB could not locate the CMake target that corresponds to the currently edited source file. We should be able to investigate this further if you could share a repro project.

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.