VisualGDB still using CMake server mode?

Sysprogs forums Forums VisualGDB VisualGDB still using CMake server mode?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #36241
    curtis.hendrix
    Participant

    Environment: Visual Studio 2019 with VisualGDB 6.0R6 (Build 5262).

    I’m trying to import an existing CMake project (similar to this guide https://visualgdb.com/tutorials/arm/cmake/import/), and I’m running into this error.

    CMake Error: CMake server mode has been removed in favor of the file-api.

    No reply via CMake server API. Restarting CMake in file mode...

    System.Exception: CMake server exited with code 1
    at xp2.b(Object b, EventArgs a)

    The project is configured to use CMake located within C:\Users\<username>\AppData\Local\VisualGDB\CMake.  Running

    C:\Users\<username>\AppData\Local\VisualGDB\CMake\bin\cmake.exe --version

    outputs “cmake version 3.20.3-dirty”

    CMake did generate the Ninja build files and manually invoking Ninja successfully built the firmware. With my (very limited) knowledge of how CMake and IDEs integrate, this looks like a potential issue with VisualGDB?

    #36245
    support
    Keymaster

    Hi,

    Unless the API is forced to the deprecated server mode (via Tools->Options->VisualGDB->CMake->API for querying CMake state), VisualGDB will automatically detect the API for each project.

    It looks like it does attempt it here:

    Restarting CMake in file mode...

    Normally, the log should show what is happening next (VisualGDB trying to launch it in the file mode and possibly hitting some other error). If there isn’t anything obvious, please try the steps below:

    1. Make sure it works with new project created from scratch on the same machine using the same CMake/toolchain.
    2. Make a copy of the configuration log (it will contain similar lines for trying the server mode).
    3. Get a log for the broken project and try comparing it against the working one. It should easily point out what is different.

    If nothing helps, feel free to attach both logs here, and we can recheck.

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