File path too long on new laptop

This forum is for all Flare issues not related to any of the other categories.

File path too long on new laptop

Postby rjplano on Wed Mar 24, 2021 9:42 am

My company recently issued me a new laptop with Windows 10 Enterprise 10.0.19041 Build 19041. Since then I have had problems building a few of my Flare projects, getting "Build failed: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters."

The exact same projects built fine on my old laptop. I'm pretty sure the error is accurate because we do have some long path names in the project, but the error doesn't tell me which particular file is causing the problem.

Besides the Windows version, the other difference between old and new laptops is that we are now linking all content to OneDrive, so the path to the Output folder, for example, looks like this: C:\Users\planor\OneDrive - Early Warning Services\Desktop\Flare Projects\CS FCRA\Output\planor\FCRA Help Center and Policies and Procedures\, with the OneDrive part of the path adding over 30 characters to the path length.

I copied the entire project to C:/temp and was able to build successfully, but that would only be a temporary fix as nothing gets backed up that way.

Our IT department went into the registry and enabled Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem\LongPathsEnabled but that did not solve the problem.

Has anyone seen similar behavior?

Thanks.
rjplano
Propeller Head
 
Posts: 35
Joined: Tue May 05, 2020 10:08 am

Re: File path too long on new laptop

Postby anilsharma165122 on Tue Mar 30, 2021 8:32 am

I had the same problem, when I saved my project files on desktop. However, we use Perforce as source control, so the issue was temporary as main location to keep files was C:\P4.
For you, I would suggest to ask your IT team to include your C:\temp folder in One-drive.
anilsharma165122
Jr. Propeller Head
 
Posts: 1
Joined: Thu Mar 25, 2021 7:50 am

Re: File path too long on new laptop

Postby SteveS on Tue Mar 30, 2021 2:05 pm

Have you thought about mapping the drive and folder structure to create a shorter filepath?

https://www.computerworld.com/article/2 ... ndows.html
Image
Steve
Life's too short for bad coffee, bad chocolate, and bad red wine.
SteveS
Senior Propellus Maximus
 
Posts: 2027
Joined: Tue Mar 07, 2006 5:06 pm
Location: Adelaide, far side of the world ( 34°56'0.78\"S 138°46'44.28\"E).

Re: File path too long on new laptop

Postby rjplano on Wed Mar 31, 2021 9:50 am

We've put the Flare projects on the local C: disk, bypassing OneDrive, and that's been working so we'll rely on git as the backup process.

Thanks for the suggestions.
rjplano
Propeller Head
 
Posts: 35
Joined: Tue May 05, 2020 10:08 am


Return to Flare's General Discussion

Who is online

Users browsing this forum: Google [Bot] and 17 guests