Skip to content
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

Mac and Linux don't report broken installs to users #89

Closed
baconpaul opened this issue Dec 16, 2018 · 7 comments
Closed

Mac and Linux don't report broken installs to users #89

baconpaul opened this issue Dec 16, 2018 · 7 comments

Comments

@baconpaul
Copy link
Collaborator

As discussed with @esaruoho and @kzantow both getting it to work without the ~/Library/App Support, the error message for an incomplete install is suppressed on mac and linux.

The code that needs fixing is in SurgeStorage.cpp

   string snapshotmenupath = datapath + "configuration.xml";

   if (!snapshotloader.LoadFile(snapshotmenupath.c_str())) // load snapshots (& config-stuff)
   {
#if !MAC && !__linux__
      MessageBox(::GetActiveWindow(), "Surge is not properly installed. Please reinstall.",
                 "Configuration not found", MB_OK | MB_ICONERROR);
#endif
   }
@jarkkojs
Copy link
Collaborator

With zero experience on VSTGUI is CTextEdit something that can be used for this, or not? Where is the manual for VSTGUI anyway? Just poking its sources randomly.

@baconpaul
Copy link
Collaborator Author

Yeah but since this is in a #if MAC anyway I can pop a system alert.

I'll commit this shortly.

screen shot 2018-12-16 at 10 03 49 am

but I really have a lot of stuff backing up. Any idea when #69 might get merged so I can do the PRs for the other changes I have?

@baconpaul
Copy link
Collaborator Author

baconpaul@e5737f0

there's the diff which does that. It's in my zoomable-ui branch which I will send as a PR when #69 is built.

@esaruoho if you end up building a packaged version, perhaps pull head of zoomable-ui so you can get that feedback check?

I'll leave this open until merged. And someone should do the linux equivalent.

@esaruoho
Copy link
Collaborator

esaruoho commented Dec 16, 2018

but I really have a lot of stuff backing up. Any idea when #69 might get merged so I can do the PRs for the other changes I have?

I wish I knew, only @kurasu really knows.

I would love for #68 #69 and #70 to get merged in asap, that's for sure.

ok, just saw that you linked the commit in your post. i'll see if i can't map it to #68 :)

@jarkkojs
Copy link
Collaborator

Should the error messages be same across plaforms? Just for plain interest, what is the problem with CTextEdit?

@baconpaul
Copy link
Collaborator Author

Should the error messages be same across plaforms?

Maybe, but the remediations are different, and anyway @kzantow has a fix to get these from resource so it should "never happen"

Just for plain interest, what is the problem with CTextEdit?

If you google "how to show a modal system alert cocoa stackoverflow" it doesn't give you CTextEdit code to copy and paste. :) Happy for someone to change it but it seems like a pretty infrequent code path.

@baconpaul
Copy link
Collaborator Author

This is now meged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants