ms-iot / ros_msft_mrtk

This repository contains ROS2 bindings for the Mixed Reality Toolkit - allowing you to create VR and AR applications which reflect sensor data from a Robot or provide command and control
MIT License
65 stars 10 forks source link

File paths too long #33

Open peted70 opened 2 years ago

peted70 commented 2 years ago

Describe the bug Whilst setting up a project using the README instructions I noticed that I had a path name too long error in the console window. This was for the world locking tools package. Aside from that console message which was tempting to ignore I ended up with no MRTK shader in the project and hence no materials on the ui elements. I suspect every time some tooling enumerates that folder it quietly fails and skips some other operations (in this case copying the MRTK shader from it's package).

To Reproduce Steps to reproduce the behavior:

  1. Follow the instructions in the README
  2. Create your project in a reasonable-length path location (I used something like c:\users\myname\repos\localprojects\myproject)
  3. Look out for console errors and missing materials, etc.

Expected behavior no errors/missing materials I remade the project at c:\ROS and it works as expected

Screenshots If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

Additional context Add any other context about the problem here.

ooeygui commented 2 years ago

Thank you for the link. To unblock you, can you run reg add HKLM\SYSTEM\CurrentControlSet\Control\FileSystem /v LongPathsEnabled /t REG_DWORD /d 1 /f'

peted70 commented 2 years ago

I had that set up already so I suspect some of the tooling in Unity might be using an API that doesn't touch somehow.

peted70 commented 2 years ago

I'm unblocked as I re-created my project in c:\ROS - which is short enough.