Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] FileNotFoundException - path may be too long? (265 characters) #90

Closed
CodeSmile-0000011110110111 opened this issue Oct 3, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@CodeSmile-0000011110110111
Copy link

CodeSmile-0000011110110111 commented Oct 3, 2022

I get a FileNotFoundException when trying to create a clone, after which Unity keeps showing the "Hold on" progress dialog forever, even though the editor itself remains responsive. The cloned folder remains empty.

The file in question is at this path, it is 265 chars in total:

C:\Users\Eedee F\UnityProjects\_Netcode\CodeSmile for Netcode 2020.3\Library\PackageCache\[email protected]\Unity.Collections.LowLevel.ILSupport\source~\Unity.Collections.LowLevel.ILSupport.CodeGen\Unity.Collections.LowLevel.ILSupport.CodeGen.asmdef.meta

Relevant part of stacktrace:

FileNotFoundException: Could not find file 'C:\Users\Eedee F\UnityProjects\_Netcode\CodeSmile for Netcode 2020.3\Library\PackageCache\[email protected]\Unity.Collections.LowLevel.ILSupport\source~\Unity.Collections.LowLevel.ILSupport.CodeGen\Unity.Collections.LowLevel.ILSupport.CodeGen.asmdef.meta'.
System.IO.__Error.WinIOError (System.Int32 errorCode, System.String maybeFullPath) (at <695d1cc93cca45069c528c15c9fdd749>:0)
System.IO.FileInfo.get_Length () (at <695d1cc93cca45069c528c15c9fdd749>:0)
(wrapper remoting-invoke-with-check) System.IO.FileInfo.get_Length()
ParrelSync.ClonesManager+<>c.<GetDirectorySize>b__28_0 (System.IO.FileInfo file) (at Library/PackageCache/com.veriorpies.parrelsync@f454248221/Editor/ClonesManager.cs:599)

Enviroment (please complete the following information):

  • Unity Editor Version: 2020.3.40 (Collections 1.2.4)
  • ParrelSync Version: 1.5.0
  • OS Version: Win 10

Note:
This may be related to the other FileNotFound exception issue but I decided to make a new one because I couldn't tell for sure whether it is the same issue. See: #86

@CodeSmile-0000011110110111 CodeSmile-0000011110110111 added the bug Something isn't working label Oct 3, 2022
@CodeSmile-0000011110110111
Copy link
Author

I shortened the project folder to 'CSN20.3' - now I can successfully clone.

Did a little digging, here's some info on how you might potentially enable long paths support:
https://stackoverflow.com/questions/5188527/how-to-deal-with-files-with-a-name-longer-than-259-characters

Hopefully that is possible without too much work. ;)

@314pies
Copy link
Contributor

314pies commented Mar 19, 2023

Yes, this is a known issue for windows.
(Please refer to the F&Q and Trouble shooting page)

@314pies 314pies closed this as completed Mar 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants