You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I stumbled upon an issues with the MR Feature Tool package of WLT when the build path is longer than about 50 chars.
I created a new Unity Project with Unity 2019.4.24f1 and run the MR Feature Tool (1.0.2103.3-Beta) and installed some features. My package.json now contains these new items and the related package have been copied.
Combining this with what Unity tells me (Packages/com.microsoft.mixedreality.worldlockingtools/Packages/Microsoft.MixedReality.Unity.FrozenWorld.Engine.1.1.0/lib/unity/Windows-UWP-ARM64/FrozenWorldPlugin.dll)
I end up with the actual file system path:
The Unity project path alone (Library\PackageCache\com.microsoft.mixedreality.worldlockingtools@834acdcbd53e-1618586077562/Packages/Microsoft.MixedReality.Unity.FrozenWorld.Engine.1.1.0/lib/unity/Windows-UWP-ARM64/FrozenWorldPlugin.dll) is 205 characters long! It consumes almost 80% of the allowed path length! This means, users have about 20 - 30 chars to organize their projects when you consider the user's home directory static.
The text was updated successfully, but these errors were encountered:
I have been hit by the same issue. While the issue is ultimately the path length limit, we (WLT) are taking steps to mitigate the issue by using less of the 260 characters, leaving more for user folder structure. We are also working with Unity to see if some of the Unity imposed path length can be eliminated or reduced.
In the short term, the workaround is, as you have found, to install into a folder with a short path length.
Note that about 90 characters of that path are the result of installing using Unity's package management rather than from .unitypackage files. So another workaround would be to install from the Releases .unitypackages instead of MRFeatureTool.
Thank you, @fast-slow-still, for sharing some workarounds. I relocated my workspace for now. Conceptually, there is absolutely nothing wrong with the WLT package structure. And I agree, this issue is caused by multiple factors. I wouldn't consider this an issue of WLT in particular but something that might haunt MR developers more frequently in the future when the MR Feature Tool is becoming more popular in the MR(TK) ecosystem. Closing this since it's not an actual bug report but just some remarks that might save future visitors of this issue tracker some debugging time.
I stumbled upon an issues with the MR Feature Tool package of WLT when the build path is longer than about 50 chars.
I created a new Unity Project with Unity 2019.4.24f1 and run the MR Feature Tool (1.0.2103.3-Beta) and installed some features. My package.json now contains these new items and the related package have been copied.
When I try to build the project, I get the following error:
I have the feeling that the building path has somethings to do with this. While building succeeded at:
C:\Users\alneuman\workspace\WLTTest
It did not not work with:
C:\Users\alneuman\workspace\Unity\SandboxProjects\WLTTest
I checked where Unity keeps the uncompressed packages and the path for WLTCore is:
C:\Users\alneuman\workspace\Unity\SandboxProjects\WLTTest\Library\PackageCache\com.microsoft.mixedreality.worldlockingtools@834acdcbd53e-1618586077562
Combining this with what Unity tells me (
Packages/com.microsoft.mixedreality.worldlockingtools/Packages/Microsoft.MixedReality.Unity.FrozenWorld.Engine.1.1.0/lib/unity/Windows-UWP-ARM64/FrozenWorldPlugin.dll
)I end up with the actual file system path:
C:\Users\alneuman\workspace\Unity\SandboxProjects\WLTTest\Library\PackageCache\com.microsoft.mixedreality.worldlockingtools@834acdcbd53e-1618586077562/Packages/Microsoft.MixedReality.Unity.FrozenWorld.Engine.1.1.0/lib/unity/Windows-UWP-ARM64/FrozenWorldPlugin.dll
(264 chars)in contrast to the shorter path
C:\Users\alneuman\workspace\WLTTest\Library\PackageCache\com.microsoft.mixedreality.worldlockingtools@834acdcbd53e-1618586077562/Packages/Microsoft.MixedReality.Unity.FrozenWorld.Engine.1.1.0/lib/unity/Windows-UWP-ARM64/FrozenWorldPlugin.dll
(241 chars)The Unity project path alone (
Library\PackageCache\com.microsoft.mixedreality.worldlockingtools@834acdcbd53e-1618586077562/Packages/Microsoft.MixedReality.Unity.FrozenWorld.Engine.1.1.0/lib/unity/Windows-UWP-ARM64/FrozenWorldPlugin.dll
) is 205 characters long! It consumes almost 80% of the allowed path length! This means, users have about 20 - 30 chars to organize their projects when you consider the user's home directory static.The text was updated successfully, but these errors were encountered: