View unanswered posts | View active topics



Reply to topic  [ 156 posts ]  Go to page Previous  1 ... 7, 8, 9, 10, 11
[FD3][FD4]OpenTheDoc 3.0 & TocGen 1.0 
Author Message
Member

Joined: Fri Nov 30, 2007 3:01 pm
Posts: 68
Location: Guangdong, China
Reply with quote
heilong wrote:
Clean install of FD5.0.1, after installing OpenTheDoc plug-in first run of FlashDevelop generates this exception:
************** Exception Text **************
System.InvalidOperationException: SplitterDistance must be between Panel1MinSize and Width - Panel2MinSize.
at System.Windows.Forms.SplitContainer.set_SplitterDistance(Int32 value)
at OpenTheDoc.PluginUI.RestoreState()
at OpenTheDoc.PluginUI.PluginUI_Load(Object sender, EventArgs e)
at System.Windows.Forms.UserControl.OnLoad(EventArgs e)
at System.Windows.Forms.UserControl.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

And the panel on the left is really narrow. After resizing it and quitting FlashDevelop, subsequent runs don't generate the exception anymore.

It seems OpenTheDoc still work on FD5 except it throw an exception in the first run.
Since I don't use FD and VS now, this bug won't be fixed, sorry.
If some day it doesn't work correctly, I will try to fix it.

If you are interested in fixing this bug, you can add a `try catch` block in `RestoreState()` or provide some default values:
https://github.com/jimmyye/asrelevant/b ... I.cs#L1147
Code:
private void RestoreState()
{
    this.mainSplitContainer.SplitterDistance = this.Settings.MainSplitContainerSplitterDistance;
    this.viewSplitContainer.SplitterDistance = this.Settings.ViewSplitContainerSplitterDistance;
    this.SelectedCategory = this.Settings.SelectedCategory;
}


Sun Aug 02, 2015 5:47 pm
Profile
Member

Joined: Fri Jul 23, 2010 10:26 am
Posts: 146
Reply with quote
I'd love to, but I don't develop in C# and wouldn't know how to compile the fixed version...


Sun Aug 02, 2015 6:35 pm
Profile
Member

Joined: Fri Jul 23, 2010 10:26 am
Posts: 146
Reply with quote
Adobe didn't update the single-file ZIP version of the AS3 API Reference since (AIR 16.0, Flash 16.0), so I wrote a few script that download the latest online docs, and strip most of the crud that slows down loading of the doc files.
My latest result, AS3 API Reference for AIR 21.0, Flash 21.0, opens and render much faster than before, and can be obtained here in the dist directory:
https://github.com/gene-pavlovsky/as3-api-reference


Sun Apr 10, 2016 3:33 am
Profile
Member

Joined: Thu Feb 09, 2006 10:58 am
Posts: 1095
Location: Israel
Reply with quote
Hi, thanks!

_________________
MovieClipCommander


Sun Apr 10, 2016 3:04 pm
Profile
Member

Joined: Fri Jul 23, 2010 10:26 am
Posts: 146
Reply with quote
My pleasure :)
I think help is quite important part of an IDE. Maybe info about this plug-in and where to get the help files should be added to FD wiki or even help menu.
Since I already got a little bit knowledge about C#, I would be willing to fix up this plug-in to be fully compatible with FD5 (e.g. not generate an exception on first launch after the plugin is installed). Any pointers?


Thu Apr 14, 2016 7:47 pm
Profile
Member

Joined: Thu Feb 09, 2006 10:58 am
Posts: 1095
Location: Israel
Reply with quote
This would be awesome. I used to use this plugin all the time, until all the exceptions.

_________________
MovieClipCommander


Sun Apr 17, 2016 8:58 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 156 posts ]  Go to page Previous  1 ... 7, 8, 9, 10, 11

Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.