System.IO.PathTooLongException

Sysprogs forums Forums VisualGDB System.IO.PathTooLongException

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #36909
    Noah
    Participant

    Hello,

    I am running into the following path length error, it looks to be something within the cmake cache of visualgdb:

    -- Generating done (1.9s)
    -- Build files have been written to: D:/git/Ahi/AhiMainApp/build/VisualGDB/Debug
    System.IO.PathTooLongException: Path too long: \..\..\../build/VisualGDB/Debug\.cmake/api/v1/reply\directory-modules.hal_nxp.mcux.mcux-sdk-ng.devices.RT.RT1064.MIMXRT1064.devices.RT.RT1064.MIMXRT1064.drivers.devices.RT.RT1050.MIMXRT1052.drivers.flexram-DEBUG-532024778a5771ea2c83.json ---> System.IO.DirectoryNotFoundException: Could not find a part of the path '\.visualgdb\VisualGDBCache\<strong>****</strong>-Debug-VisualGDB\CodeModelCache\directory-modules.hal_nxp.mcux.mcux-sdk-ng.devices.RT.RT1064.MIMXRT1064.devices.RT.RT1064.MIMXRT1064.drivers.devices.RT.RT1050.MIMXRT1052.drivers.flexram-DEBUG-532024778a5771ea2c83.json'.
    at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
    at System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite, Boolean checkHost)
    at x11.d(String a, String b)
    --- End of inner exception stack trace ---
    at x11.j(Exception b, String[] a)
    at x11.d(String a, String b)
    at x11.l(String b, String a, w c)
    at xh2.b_2(String a, String b)
    at td.u(g b, Object a)

    ========== Project Configuration Summary ==========
    <strong>*****</strong> configured in 00:13
    ========== Configuration: 1 Succeeded, 0 Failed, 0 Skipped ==========

    Note that I have obscured some details, in bold. It looks like the json file name is the full CMake module include trace, which inevitably produces a huge file name.

    This error seems to cause a ‘clean rebuild’ every time I build, presumably because the build system does not believe that the previous clean rebuild was successful, even though it is).

    I have long-file-names enabled on my computer and no errors appear in the visualgdb diagnostics console. I am also using a ReFS dev drive.

     

    Thank you for your help,

    Noah

    #36912
    Noah
    Participant

    I also found that the file that it is looking for in the CodeModelCache,

    directory-modules.hal_nxp.mcux.mcux-sdk-ng.devices.RT.RT1064.MIMXRT1064.devices.RT.RT1064.MIMXRT1064.drivers.devices.RT.RT1050.MIMXRT1052.drivers.flexram-DEBUG-532024778a5771ea2c83.json

    does not seem to exist.

    #36913
    Noah
    Participant

    The file does exist in

    <PathToBuildOutput>\VisualGDB\Debug\.cmake\api\v1\reply
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.