-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Install SVN Using MacPorts #31
Comments
If we end up using brew, we should also install some other common tools (i.e. telnet). We can make a "Homebrew Module" for Moonshine SDK Installer. We should discuss this with @JustinProminic later. |
Overall, this makes things complicated for us, and maybe for the users, too. I just noticed the problem against SVN in Moonshine where the calculated SVN path is invalid: I really do not want to go into brew complexities if it is possible at all. I'd rather want to look for SDK with Subversion command-line support, the kind we're using on Windows. In a fact, we should also start looking for Git command-line alternative on macOS; We can't really depend on Apple on a longer term. The above Apple changes also seem to affect my updates on Moonshine-IDE/Moonshine-IDE#533. |
Here are the official install and uninstaller commands on macOS: https://github.com/homebrew/install#uninstall-homebrew. Upon running the standard uninstaller command (as suggested), it suggested on following folder deletion post uninstaller command run:
While I'm uncertain about deleting any of the above folders, I deleted only /usr/local/Homebrew/ - this may require sudo on Terminal. I received the system user's password prompt if I try using the official installer command for Homebrew, though. We need to discuss how we want to handle this part. |
I tried to change SVN Binary in Moonshine to the Homebrew install (/usr/local/bin/svn), but I got this error on the console: : svn: error: Failed to locate 'svn'. |
The closely relating long discussion I found here: Moonshine-IDE/Moonshine-IDE#307 (comment). Although, the error in Moonshine-IDE/Moonshine-IDE#307 never mentioned 'failed to locate'. So this could be something different this time. I assume it's the |
Yes, I see that /usr/local/bin/svn in a symlink
However, I tried selecting
I suspect that macOS Catalina is restricting access to this directory. |
I vaguely remember we did seen that mac file-browser doesn't permit to select certain file/directory in past. I wonder if the said file also has certain type restrictions (!) |
@rat-moonshine suggested that MSDKI should expect the user to install HomeBrew for now, and we'll report an error if it is not found. If it is available, the MSDKI will run the brew commands for SVN. I think this is a good start for this case at least. If desired, we can come back later and add logic for installing HomeBrew, especially if we find there are more SDKs that require this. |
For reference, I did some testing with the AppStore build today, and I see that I can't setup Subversion with the Homebrew path. I get this error:
So, we'll need a workaround for this, or we'll need to find another way to install SVN on macOS. |
I see some interesting thoughts (beside using Two in particular:
|
I think we need to bump this to the next release, but we need to display a warning indicating that the SVN installation is unavailable currently. Something like this:
|
Stopped SVN downloads on macOS for now, in a manner of HCL Notes. However, I couldn't able test this locally due to Haxe compilation trouble (I sent a separate email on this), a Bamboo build is waiting for a test. |
I have tested it and prompt is showing once I roll over on it. It is not so obvious but for me it could stay like that. You move issue for the next release. |
I think the message looks good, and we are using the tooltip for other warning icons: That said, @JustinProminic complained about this for other Warning icons before, so we may want to revisit this if we update that logic |
We have notice for user, so I'm moving issue for next release. |
I have cleaned-up UI requirements along with other handlings. This should be now ready for tests on macOS. If we want a prior-notification/alert on 'the installation require user's permission' - then I need some texts that we can display before installation begins. |
I did some tests with the updated macOS build. @rat-moonshine reported that he did a sanity test for the Windows SlikSVN install to make sure nothing broke there.
For the "Missing MacPorts" case, the message looks like this: I would like to update the message like this:
Note the casing update for the "Ok" button. We do need to look into automating the MacPorts install for this case, but that is a separate issue. |
In addition, I would like to display a better message for the authentication prompt. Currently, it shows "osascript" only, which will be confusing for users, especially when doing an "Install All": @rat-moonshine found that we can specify a prompt using
Note that |
- Admin privilege window message updated #31
Updates:
Please, check. |
@JoelProminic earlier reported following during his tests on MSDKI and Moonshine-IDE:
It appears that changes from 06cc8c2 affected areas which I didn't thought about. I re-worked in the related areas and did a full tests using MSDKI and Moonshine:
Please, check. |
I have been confusing this issue with something else. I updated the issue title to make it more clear. I see that we previously tested the different installation cases: #31 (comment) I need to test and confirm:
|
I recently updated to macOS Catalina (10.15.7) and I got this error when trying SVN from the command line:
In Moonshine, the Subversion menu always shows "Grant Permission" when I have selected an SVN project, and the other menu items are disabled.
I originally thought this was related to Moonshine-IDE/Moonshine-IDE#748, but that fix did not clear my error above.
After some testing and investigation, I confirmed that SVN support was removed from XCode in Catalina.
This StackOverflow question offers a couple solutions. I tried installing the latest version of CommandLIneTools, but I found it was missing in this project as well.
Instead, I used
brew install svn
and set the SVN path to/usr/bin/svn
in Moonshine. This worked for a non-Sandbox build, but I haven't tried and AppStore build yet.However, this may require installing brew. I also had to make additional changes to allow brew to run on Catalina
The install output was slow and complicated, and it ended with an error for me (that did not prevent SVN from working):
We'll need to discuss the brew-based solution further.
The text was updated successfully, but these errors were encountered: