Bug 4106 - Cannot start macdoc
Summary: Cannot start macdoc
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Documentation ()
Version: 2.8.8.1
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Jérémie Laval
URL:
Depends on:
Blocks:
 
Reported: 2012-03-27 06:50 UTC by Ruben Vermeersch
Modified: 2012-03-29 11:59 UTC (History)
1 user (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Ruben Vermeersch 2012-03-27 06:50:11 UTC
Macdoc does not start anymore after installing updates. Obviously this is not Linux so there's no .xsession-errors, so how do I debug this?


MonoDevelop 2.8.8.3
Installation UUID: 46adcb2c-0fef-4128-a852-9a6bc9a39109
Runtime:
	Mono 2.10.9 (tarball Tue Mar 20 15:31:37 EDT 2012)
	GTK 2.24.10
	GTK# (2.12.0.0)
Apple Developer Tools:
	 Xcode 4.3.2 (1177)
	 Build 4E2002
Mono for Android: 4.0.6.52253989 (Evaluation)
Monotouch: 5.2.9 (Evaluation)
Build information:
	Release ID: 20808003
	Git revision: 36818e1e605f22c201263e0f428514d2b4c89a6b
	Build date: 2012-03-22 23:24:30+0000
	Xamarin addins: 88e59201d0f9261e8289f218a166e4a0882c60a9
Operating System:
	Mac OS X 10.7.3
	Darwin tsukuba.local 11.3.0 Darwin Kernel Version 11.3.0: Thu Jan 12 18:47:41 PST 2012; root:xnu-1699.24.23~1/RELEASE_X86_64 x86_64
Comment 1 Mikayla Hutchinson [MSFT] 2012-03-28 18:32:45 UTC
Could you please check whether there is any message printed into the logs in ~/Library/Logs/MonoDevelop-2.8? There also may be messages printed into Console.app.
Comment 2 Ruben Vermeersch 2012-03-29 02:49:29 UTC
Looks like there's no output in the logs. How do I start the app from the command-line?

Only thing I can get out of it is this:

tsukuba:~ $ open -a MonoDoc
LSOpenURLsWithRole() failed for the application /Applications/MonoDevelop.app/Contents/MacOS/MonoDoc.app with error -10810.

Though that might be due to me doing it (cluelessly) wrong.
Comment 3 Jérémie Laval 2012-03-29 05:25:09 UTC
Weird, there should be something in the log.

You can start the application manually with
$ ./MonoDoc.app/Contents/MacOS/macdoc
Comment 4 Ruben Vermeersch 2012-03-29 11:38:06 UTC
tsukuba:MacOS $ ./MonoDoc.app/Contents/MacOS/macdoc
./MonoDoc.app/Contents/MacOS/macdoc: line 20: HOME: command not found
The assembly mscorlib.dll was not found or could not be loaded.
It should have been installed in the `/Library/Frameworks/Mono.framework/Versions/2.10.8/lib/mono/4.0/mscorlib.dll' directory.
tsukuba:MacOS $ ls /Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/4.0/mscorlib.dll
/Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/4.0/mscorlib.dll*
Comment 5 Jérémie Laval 2012-03-29 11:53:23 UTC
Hey,

So this issue has been fixed, it was due to a packaging problem in MonoMac addin where mono binary would be hard copied instead of linked. A fixed version will be available in the next MonoDevelop.

In the meantime to workaround, delete the macdoc file in MonoDoc.app and replace it with a symlink to /Library/Frameworks/Mono.framework/Versions/Current/bin/mono while keeping the macdoc name. Same process for the internal wizard utility in MonoDoc.app/Contents/MacOS/AppleDocWizard.app/AppleDocWizard
Comment 6 Ruben Vermeersch 2012-03-29 11:59:57 UTC
Works like charm, thanks!