Skip to content

Mac version doesn't find my external Hard disk #2347

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

Closed
rbcsky5 opened this issue Mar 6, 2018 · 10 comments
Closed

Mac version doesn't find my external Hard disk #2347

rbcsky5 opened this issue Mar 6, 2018 · 10 comments
Labels
GUI Issues affecting the interactive GUI macOS Issues specific for macOS Mono Issues specific for Mono ★★☆

Comments

@rbcsky5
Copy link

rbcsky5 commented Mar 6, 2018

Background

CKAN Version:
1.24.0

(Link removed, get https://github.com/KSP-CKAN/CKAN/releases/latest) (Using this version since the original .DMG version didn't work)

KSP Version:
1.3.1

Operating System:
10.13.3 (17D102)

Have you made any manual changes to your GameData folder (i.e., not via CKAN)?

Problem

What steps did you take in CKAN?
Open the app and tried to select my KSP path

What did you expect to happen?
Let me select my external harddisk

What happened instead?
It can't be found

Screenshots:

screenshot
(The HDD named as "mac stuffs" is my external disk. Those red bars are just names of my other unrelated folders on my desktop.)

screenshot2

screenshot3

@HebaruSan HebaruSan added macOS Issues specific for macOS Support Issues that are support requests labels Mar 6, 2018
@linuxgurugamer
Copy link
Contributor

I can confirm both problems, first, that the CKAN.dmg version doesn't work, and second, that extra drives aren't shown.

@Maxzhao1999
Copy link

The CKAN.dmg sends me to the CKAN wiki page

@rbcsky5
Copy link
Author

rbcsky5 commented Mar 8, 2018

@Maxzhao1999 You will need mono 5 and this file (Link removed, get https://github.com/KSP-CKAN/CKAN/releases/latest) to work

@HebaruSan
Copy link
Member

@rbcsky5, thanks, it's a big help to our investigations when we can firmly rule out user error. :)
My gut says this is a Mono bug (that file dialog is a standard one, not CKAN-owned), but I'll check whether there are extra flags we can pass to control the popup.

In the meantime, running ckan consoleui in a Terminal might work for you. You would have to type the full path to your KSP folder yourself (I think it would start with /Volumes ?), but it shouldn't be limited like the GUI apparently is.

@HebaruSan
Copy link
Member

Found someone else suffering from this, with no solution:

I experimented with OpenFileDialog.CustomPlaces, but it seems to do nothing, even on Linux (where My Computer does contain all the drives). The rest of OpenFileDialog's properties don't seem to relate to controlling which drives show up.

@rbcsky5
Copy link
Author

rbcsky5 commented Mar 9, 2018

LOL if it is a bug of mono, would you mind to open an issue there for us/me please? Since I have no idea what to do if they ask about codes.

@HebaruSan HebaruSan added the Mono Issues specific for Mono label Mar 10, 2018
@HebaruSan
Copy link
Member

Confirmed, Mono's FileDialog hard-codes a Linux-specific path /proc/mounts in its mounted device search, and it completely ignores any exceptions that may cause. This path doesn't exist on MacOSX from what I can tell, hence Mono not being able to find mounted devices on MacOSX:

https://github.com/mono/mono/blob/e456f910530906612291e0db09ac81d04e4b87ca/mcs/class/System.Windows.Forms/System.Windows.Forms/FileDialog.cs#L4736-L4740

I did a quick search for "FileDialog" in Mono's issues list and nothing came up, so this may not have been reported formally yet. I'm guessing they'd rather have a pull request for a fix, though, and I don't have a Mac with which to do the development. The only person I know doing any CKAN-related development on a Mac recently is @phardy, but I don't know whether he'd be interested in this kind of problem.

Sorry, something went wrong.

@HebaruSan
Copy link
Member

This is a duplicate of #1276, though the appearance of the window apparently has changed since then.
I'm going to close that one and keep this one, though, since this one has useful investigation info in it.

Sorry, something went wrong.

@HebaruSan HebaruSan added GUI Issues affecting the interactive GUI ★★☆ and removed Support Issues that are support requests labels Mar 13, 2018
@KSP-CKAN KSP-CKAN deleted a comment from rbcsky5 Mar 13, 2018
@KSP-CKAN KSP-CKAN deleted a comment from rbcsky5 Mar 13, 2018
@rbcsky5
Copy link
Author

rbcsky5 commented Mar 26, 2018

@HebaruSan According to this post: mono/mono#7791

it was fixed by this may be unstable file

https://download.mono-project.com/archive/nightly/macos-10-universal/MonoFramework-MDK-master@e610e443cd6-dirty-5.13.0.559.macos10.xamarin.universal.pkg

May be you guys wanna add this to to ckan page :)

@HebaruSan
Copy link
Member

Cool! Nice job getting this addressed, @rbcsky5!

I don't think we necessarily want to recommend nightly builds in general, in case they have other bugs that would cause problems for people, but it's good to have an option for folks who need to use external drives, and we can update the wiki once there's a new release of Mono with this fix.

No need to keep this issue open anymore; CKAN isn't going to do development on it, and Mono already did.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GUI Issues affecting the interactive GUI macOS Issues specific for macOS Mono Issues specific for Mono ★★☆
Projects
None yet
Development

No branches or pull requests

4 participants