Hitting an issue with the length of path to one of...
# help-with-umbraco
m
... have I done something monumentally stupid? The Path is 261 characters long, which is close... path is c:\Users\marc\.nuget\packages\umbraco.cms.staticassets\14.0.0--preview001\staticwebassets\umbraco\backoffice\packages\core\property-editors\uis\collection-view\config\bulk-action-permissions\property-editor-ui-collection-view-bulk-action-ermissions.element.d.ts I'm thinking, not a problem if it 'comes out of preview', and my workaround is to change my name and windows login to be 'mar' But also super possible I have done something wrong, as I had it running on first install, and then tried to follow the dashboard tutorial, (installed Typescript and Lit Element) and then this appeared as soon as I managed to output my welcome dashboard to App_Plugins...
j
Hi Marc, this happens on Windows because of an arbitrary constraint in the OS of the length of file system paths. Normally installing tools such as Git for Windows fixes this automatically in the system registry. Microsoft has written an article about it here: https://learn.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation?tabs=powershell#enable-long-paths-in-windows-10-version-1607-and-later
TLDR; you can put this into a Powershell:
Copy code
New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" `
-Name "LongPathsEnabled" -Value 1 -PropertyType DWORD -Force
m
Thanks @Jacob Overgaard ! I will give it a tweak! I have done so on other machines in the past, but somehow not this one!
But main thing, is that this is as expected
j
Yep! We have some pretty long paths in the new Backoffice, I'll give you that, but we can't control where people clone their repositories to so you can end up in this scenario pretty much whenever including older versions of Umbraco. The limit is 260 chars by default 😅
m
don't forget you can use
subst
to map
c:\users\marc.nuget
to say
n:
also even with the
longpathsenabled
I have a memory that file.IO / system.IO still limits internally somewhere.. or maybe that is consigned to framework projects and netcore ntfs support has been added bringing with it long paths... talking about file systems.. has anyone tried dev drive? https://learn.microsoft.com/en-us/windows/dev-drive/?s=09
m
yes, I was considering changing my name to 'mar' as a solution - it's all fine now (well at least I'm onto the next issue - which is a different thing)
3 Views