Skip to content
This repository has been archived by the owner on Jul 19, 2024. It is now read-only.

File paths too long #33

Open
peted70 opened this issue Mar 18, 2022 · 3 comments
Open

File paths too long #33

peted70 opened this issue Mar 18, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@peted70
Copy link

peted70 commented Mar 18, 2022

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):

  • Unity version: 2020.3.26f1

Additional context
Add any other context about the problem here.

@peted70 peted70 added the bug Something isn't working label Mar 18, 2022
@ooeygui
Copy link
Member

ooeygui commented Mar 18, 2022

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
Copy link
Author

peted70 commented Mar 18, 2022

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
Copy link
Author

peted70 commented Mar 18, 2022

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants