I'm looking into making some small changes to the ...
# compiler
m
I'm looking into making some small changes to the Kotlin compiler locally, but cloning fails due to paths being too long. What should I do?
d
Which os do you use? Did you try to clone into some root dir (or close to root), like in
C:\\Kotlin
or
/home/user/Kotlin
?
v
If it is on Windows, you can also set the
core.longpaths
Git option to
true
to make it able to handle longer paths. But before using it, google for its drawbacks first and decide whether you want to use it.
👍 1
a
assuming you're using Windows 10+, there's an option to remove the path size limit https://learn.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation?tabs=registry#enable-long-paths-in-windows-10-version-1607-and-later > The registry key
Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem\LongPathsEnabled
(Type: REG_DWORD) must exist and be set to 1
👍 1