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