aBothe / Mono-D

D Add-In for MonoDevelop
http://wiki.dlang.org/Mono-D
Other
113 stars 26 forks source link

Broken with Xamarin 5.3 build 423 #524

Closed etcimon closed 10 years ago

etcimon commented 10 years ago

Since I updated to the latest Xamarin Studio alpha, the projects don't open anymore and when downgrading to older versions of Mono-D, the parser doesn't work at all...

aBothe commented 10 years ago

First off, try reinstalling Mono-D. Are D settings available in the global settings dialog? Just to make sure it loaded mono-d properly. I updated XS today as well and everything went fine.

etcimon commented 10 years ago

Yes, I tried restoring previous versions (in LocalInstall/Addins) compiled previous and master versions from git commits in Visual Studio 2013 as well, no luck. I re-downloaded and re-installed Xamarin as well from http://monodevelop.com/download following the Alpha updates again. I'll try a complete reinstall (without local folders) now. I just can't find last week's Xamarin installer, that would surely solve it for me

etcimon commented 10 years ago

I tried a complete re-installation, same issue. I could use a previous version Xamarin installer right now =)

etcimon commented 10 years ago

To be more specific, when I open a mono-d project all the menus go gray and the controls are disabled.

aBothe commented 10 years ago

Are there D options in the global options?

etcimon commented 10 years ago

Yep

aBothe commented 10 years ago

So it's actually loaded which is generally both a nice and a bad sign. :D I'll reboot - time for heading on irc?

etcimon commented 10 years ago

I have this in my logs:

ERROR [2014-08-14 13:34:31Z]: Gtk-Critical: gtk_box_pack: assertion 'GTK_IS_WIDGET (child)' failed Stack trace: at Gtk.Box.gtk_box_pack_start(IntPtr raw, IntPtr child, Boolean expand, Boolean fill, UInt32 padding) at Gtk.Box.PackStart(Widget child, Boolean expand, Boolean fill, UInt32 padding) at MonoDevelop.Components.Docking.DockItemToolbar.Add(Widget widget, Boolean fill, Int32 padding, Int32 index) at MonoDevelop.Components.Docking.DockItemToolbar.Add(Widget widget, Boolean fill, Int32 padding) at MonoDevelop.Components.Docking.DockItemToolbar.Add(Widget widget, Boolean fill) at MonoDevelop.Components.Docking.DockItemToolbar.Add(Widget widget) at MonoDevelop.Ide.Gui.Pads.TaskListPad.OnContentSwitched(Object obj, EventArgs e) at MonoDevelop.Ide.Gui.Pads.TaskListPad.MonoDevelop.Ide.Gui.IPadContent.Initialize(IPadWindow window) at MonoDevelop.Ide.Codons.PadCodon.InitializePadContent(IPadWindow window) at MonoDevelop.Ide.Gui.DefaultWorkbench.CreatePadContent(Boolean force, PadCodon padCodon, PadWindow window, DockItem item) at MonoDevelop.Ide.Gui.DefaultWorkbench.<>cDisplayClassb.b7(Object param0, EventArgs param1) at MonoDevelop.Components.Docking.DockItem.SetupContent(Object ob, EventArgs args) at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) at System.Reflection.RuntimeMethodInfo.UnsafeInvoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at System.Delegate.DynamicInvokeImpl(Object[] args) at GLib.Signal.ClosureInvokedCB(Object o, ClosureInvokedArgs args) at GLib.SignalClosure.Invoke(ClosureInvokedArgs args) at GLib.SignalClosure.MarshalCallback(IntPtr raw_closure, IntPtr return_val, UInt32 n_param_vals, IntPtr param_values, IntPtr invocation_hint, IntPtr marshal_data) at Gtk.Widget.gtk_widget_show(IntPtr raw) at Gtk.Widget.Show() at MonoDevelop.Components.Docking.DockGroup.AddRemoveWidgets() at MonoDevelop.Components.Docking.DockGroup.AddRemoveWidgets() at MonoDevelop.Components.Docking.DockContainer.RelayoutWidgets() at MonoDevelop.Components.Docking.DockContainer.LoadLayout(DockLayout dl) at MonoDevelop.Components.Docking.DockFrame.LoadLayout(String layoutName) at MonoDevelop.Components.Docking.DockFrame.set_CurrentLayout(String value) at MonoDevelop.Ide.Gui.DefaultWorkbench.set_CurrentLayout(String value) at MonoDevelop.Ide.Gui.Workbench.Show(String workbenchMemento) at MonoDevelop.Ide.IdeApp.Initialize(IProgressMonitor monitor) at MonoDevelop.Ide.IdeStartup.Run(MonoDevelopOptions options) at MonoDevelop.Ide.IdeStartup.Main(String[] args, IdeCustomizer customizer) at Xamarin.Startup.MainClass.Main(String[] args)

aBothe commented 10 years ago

Alright, I'm getting the update now as well. Let's see.

etcimon commented 10 years ago

Oh I hope you saved the earlier version :/

etcimon commented 10 years ago

I disabled the TaskListPad, that's apparently not the issue even though that particular error goes away from the logs

aBothe commented 10 years ago

okay, found out the issue.. Hopefully the reparse cycle isn't broken, as I experienced recently.

etcimon commented 10 years ago

Where do you put your breakpoints? I can't seem to find a good way to debug this, I'm not sure what the entry point is

aBothe commented 10 years ago

Okay, it is broken. Let's see whether I can workaround this.

aBothe commented 10 years ago

I just opened a project, waited a bit, broke execution.

etcimon commented 10 years ago

I get an issue about not finding the monodoc.xml

etcimon commented 10 years ago

Once I have the sources/ folder and monodoc.xml file in the same folder as the mono-d dll, the exceptions left are about mscorlib.XmlSerializers and Xwt.Gtk.Windows dependencies, and a NullReferenceException in the LazyProjectLoader.AddOrUpdateFiles call. Are the dependencies something you can just ignore?

aBothe commented 10 years ago

It primarily was this line https://github.com/aBothe/Mono-D/commit/0f725ea14369d8fd249b700e6818104ceade3449#diff-f107b70c52214b18feef2dd0e7c21cc0L211

etcimon commented 10 years ago

Oh, I broke a junction when trying to reinstall. It's good now, thanks for fixing quickly =)