Extras icon indicating copy to clipboard operation
Extras copied to clipboard

STS fails to install with ExtractToDirectory exception

Open xarubal opened this issue 7 years ago • 6 comments

STS fails to install in my system with exception:

Installing 'sts' (3.9.4) [64bit] spring-tool-suite-3.9.4.RELEASE-e4.7.3a-win32-x86_64.zip (390,4 MB) [=========================================] 100% Checking hash of spring-tool-suite-3.9.4.RELEASE-e4.7.3a-win32-x86_64.zip... ok. Extracting... Unzip failed: Excepción al llamar a "ExtractToDirectory" con los argumentos "2": "No se puede encontrar una parte de la ruta de acceso 'C:\Users\xoseantonio.rubal\scoop\apps\sts\3.9.4_tmp\sts-bundle\sts-3.9.4.RELEASE\features\org.eclipse.jst.jsf.apache.trinidad.tagsupport.feature_2.6.1.v201802231403\META-INF\maven\org.eclipse.webtools.jsf\org.eclipse.jst.jsf.apache.trinidad.tagsupport.feature'."

xarubal avatar Apr 16 '18 07:04 xarubal

The path is more the 255 characters long. Which windows version are you using? If it's Windows 10 Version 1607 then could you check if the registry key LongPathsEnabled in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem is set to 1? Set it 1 and try again (maybe restart the system). If this isn't helping, then we have to look for another solution.

For later reference: https://msdn.microsoft.com/en-us/library/aa365247.aspx

r15ch13 avatar Apr 16 '18 10:04 r15ch13

My windows installation is Windows 10 Pro for Workstations, 1709, 10.0.16299.371. Thanks, your solution works.

xarubal avatar Apr 16 '18 10:04 xarubal

Add to notes?

rasa avatar Apr 16 '18 13:04 rasa

@rasa a check inside scoop-checkup.ps1 might be a good idea.

r15ch13 avatar Apr 16 '18 14:04 r15ch13

Android Studio has the same issue. Enabling LongPathsEnabled resolved the issue

devhawk avatar Apr 16 '18 23:04 devhawk

Any suggestions if I'm stuck on Windows 7 at work? I have WMF 5.1 and .Net Framework 4.7.2 but it seems the LongPathsEnabled is limited to Windows 10.

DeezCashews avatar Jul 24 '19 17:07 DeezCashews