esl / erlang-osx-installer

Erlang Installer & Auto-Updater for macOS
https://www.erlang-solutions.com/resources/download.html
Apache License 2.0
5 stars 5 forks source link

Permission denied - crash #98

Closed sebacancinos closed 7 years ago

sebacancinos commented 7 years ago

Application Specific Information: fatal error: 'try!' expression unexpectedly raised an error: Error Domain=NSCocoaErrorDomain Code=513 "You don’t have permission to save the file “Erlang” in the folder “Applications”." UserInfo=0x7fd11aecf760 {NSFilePath=/Users/****/Applications/Erlang, NSUnderlyingError=0x7fd11ae8b9f0 "The operation couldn’t be completed. Permission denied"}: file /Library/Caches/com.apple.xbs/Sources/swiftlang/swiftlang-703.0.18.1/src/swift/stdlib/public/core/ErrorType.swift, line 54

sebacancinos commented 7 years ago

"When I double click on the installer, it asks me if I want to remove old versions. Regardless of it I say yes or no, the window closes and it stops."

elbrujohalcon commented 7 years ago

This is related to #26

elbrujohalcon commented 7 years ago

So, this problem appears since the change implemented for #84 and #85. I don't think /Users/***/Applications/Erlang is the proper path for this. In any case, if Application Support is invalid because it has a space in its name, I would say we should try to fix this bug by finding a proper folder that fulfills all the requirements:

I would start with /Users/*****/.erlang-installer/releases/ (in kerl-style) and keep changing folders until we find the right one if needed.

elbrujohalcon commented 7 years ago

In the odd scenario where no other folder outside of Application Support is good enough, I vote to go back to Application Support and let the tools that can't cope with spaces deal with it!