dedvalson

Forum Replies Created

Viewing 12 posts - 31 through 42 (of 42 total)
  • Author
    Posts
  • in reply to: Clang Intellisense problem #21219
    dedvalson
    Participant

    <p style=”text-align: left;”>I closed Visual Studio, deleted the VisualGDBCache and the CodeDB folders and reopened it and did a build. Still didn’t help.</p>
    <p style=”text-align: left;”></p>
    <p style=”text-align: left;”></p>

    in reply to: Clang Intellisense problem #21218
    dedvalson
    Participant

    It looks like the subdirectory is unrelated to the problem. I moved the include file directly to main and I still see the same problem.

    The component.mk file includes the needed directory and like I said, it builds fine, but intellisense still keeps trying to add that directory, even though it is already there.

    dedvalson
    Participant

    Hi,

    I appreciate your great support and help.

    Earlier in this chain you stated:

    Regarding HTML, we could add an option to show the contents of additional manually specified directories in Solution Explorer for ESP-IDF projects. Would that work for you?

    I just wanted to mention that I would still find that extremely helpful if you get time to do it sometime.

    Thanks,

    Don

     

     

    dedvalson
    Participant

    Hi,

    That fixed it. The first time I tried to set a breakpoint (after an extensive clean) a message appeared prompting me to enter a mapping rule. I had to enter the mapping rule and then it worked properly.

    Thanks for all your help.

    Don

     

    dedvalson
    Participant

    Hi,

    I ran the installer you sent me but it didn’t seem to make any difference.

    I collected two VisualGDB Diagnostics logs and have attached them here.

    The first is after I cleaned the project, closed the solution, copied the one .exe into VisualGDBCache so that the project would load and then loaded it.

    The second is after I did a successful build, closed the solution and then opened it again.

    Thanks,

    Don

     

     

    Attachments:
    You must be logged in to view attached files.
    dedvalson
    Participant

    Hi,

    Thanks for the quick response. I wasn’t really concerned about the GUI features I just thought they might provide insight into the problem with the breakpoints.

    I tried the Diagnose Breakpoint Problems button. The results are shown in the image attached. It appears no symbols are loaded. The translated path is correct.

    I also created the detailed GDB log as you requested, it is attached also. The problem seems to happen at line 150, though I suspect the real problem is much earlier.

    PS: The forum wouldn’t accept a .log file so I had to put it in a .zip file.

    Thanks,

    Don

     

     

     

    • This reply was modified 6 years, 6 months ago by dedvalson.
    • This reply was modified 6 years, 6 months ago by dedvalson.
    Attachments:
    You must be logged in to view attached files.
    dedvalson
    Participant

    The option for additional directories is what I was looking for, that sounds good.

    Don

    dedvalson
    Participant

    As a related question, the ESP-IDF project contains the main and components folder as you would expect, but at the same level there is a directory called “html” that includes sub directories with html pages, jpeg images and so forth to build a website with. How could I make that folder appear in the solution explorer. It would be great to use Visual Studio to edit and manage these file also.

    THanks,

    Don

    dedvalson
    Participant

    Hi,

    Copying the executable as you suggested does solve the problem.

    The library I am using is available at:

    https://github.com/Spritetm/libesphttpd

    Thanks,

    Don

    dedvalson
    Participant

    Ahh, silly me. I assumed that because the load failed I couldn’t run build. So I ran the build and it built successfully within Visual Studio. However the project still wont load in the Solution Explorer.

    After a lot of looking around, I think I have figured out what is going on, though I don’t know how to fix it.

    When the project loads in visual studio, the following command is issued:

    C:\SysGCC\esp32\bin\bash.exe --login -c "export IDF_PATH=/esp-idf/master && export BATCH_BUILD=1 && export LANG=en_US && cd /cygdrive/c/Users/Don/Documents/esphttpd-freertos && make -n -k BUILD_DIR_BASE='/cygdrive/c/Users/Don/source/repos/EmbeddedProject12/EmbeddedProject12/VisualGDBCache/EmbeddedProject12-Debug/CodeSenseDir' SDKCONFIG='/cygdrive/c/Users/Don/source/repos/EmbeddedProject12/EmbeddedProject12/VisualGDBCache/EmbeddedProject12-Debug/sdkconfig' V=0

    If I run this same command from a Windows command prompt, the following appears on stderr (not on stdout)

    make[2]: *** /cygdrive/c/Users/Don/source/repos/EmbeddedProject12/EmbeddedProject12/VisualGDBCache/EmbeddedProject12-Debug/CodeSenseDir/libesphttpd/mkespfsimage: No such file or directory.  Stop.
    make[1]: *** [/cygdrive/c/Users/Don/Documents/esphttpd-freertos/components/libesphttpd/component.mk:53: mkespfsimage/mkespfsimage] Error 2
    make: *** [/esp-idf/master/make/project.mk:467: component-libesphttpd-build] Error 2
    

    mkespfsimage is a windows executable that is built as part of the build process. The libesphttpd component creates mkespfsimage.exe which ends up located in the original esp-idf project directory under Debug/libesphttpd/mkespfsimage.exe

    The problem appears to be that during the load, make is told that BUILD_DIR_BASE is the CodeSenseDir, so the executable is not there causing the make -n -k to fail.

    So the project builds fine both from Visual studio and from esp-idf, but it can’t load because of this error.

    dedvalson
    Participant

    Do you mean build it outside of Visual Studio? I can’t build it in Visual Studio because the project won’t even load.

    dedvalson
    Participant

    I should have stated that I see this with both 5.3 and with 5.4 preview 3.

Viewing 12 posts - 31 through 42 (of 42 total)