Closed ColinKerr closed 4 months ago
Please provide the actual path name returned on your machine by KnownLocations.nativeAssetsDir
. I assume it is not actually "banana".
Here is an approximate path ... the problem is the way\\?\
is handled
\\?\D:\src\app\common\temp\node_modules\.pnpm\@bentley+imodeljs-native@4.2.5\node_modules\@bentley\imodeljs-native\imodeljs-win32-x64\Assets\ECSchemas\Standard
Right - thanks. Do you consider that an "us" problem (i.e., we need to somehow escape that valid path before passing it to GlobSync), or a GlobSync problem (i.e., it's not properly handling valid paths)?
Stripping off the \\?\
won't suffice; without it, the path length is limited to MAX_PATH.
Further investigation is needed to determine if there is something we can do or if there is a bug in glob. If there is a bug in glob we will have to report it and put a temporary work around in place until it is fixed
Describe the bug This method returns a path prefixed with \?\ like
\\?\C:\banana\
. This seems to interfere withglob.GlobSync
used to match candidate schema filesTo Reproduce Run this test on windows:
Expected behavior The Units schema should be loaded correctly