Recent

Author Topic: IDE Docking Status  (Read 14248 times)

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4459
  • I like bugs.
Re: IDE Docking Status
« Reply #15 on: January 02, 2016, 01:43:21 pm »
Is anyone also experiencing the right click issue in Linux? Just a right click anywhere in the designer causes an exception (it could only be on mine..?). I might file a report for that.
Nope, works fine here.

I don't get exceptions but I can reproduce these issues with GTK2 on Xubuntu 15.10 :
 http://bugs.freepascal.org/view.php?id=29044
 http://bugs.freepascal.org/view.php?id=29295

Does it really work for others?
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

balazsszekely

  • Guest
Re: IDE Docking Status
« Reply #16 on: January 02, 2016, 01:54:26 pm »
Quote
@Juha
I don't get exceptions but I can reproduce these issues with GTK2 on Xubuntu 15.10 :
Yes, those issues are present, but @lazyfiend was talking about an exception, which neither of us can reproduce.

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4459
  • I like bugs.
Re: IDE Docking Status
« Reply #17 on: January 02, 2016, 03:22:58 pm »
Yes, those issues are present, but @lazyfiend was talking about an exception, which neither of us can reproduce.

Oops, I get an exception when lazarus.lpi project and IDEOptionsDlg unit are open. It clearly depends on the form layout somehow.
lazyfiend, would you like to report it with clear steps to reproduce and a debugger backtrace?
Others please test with all debug flags enabled, including "-gt". My backtrace hints that non-existent object is freed.

Code: Pascal  [Select][+][-]
  1. Program received signal SIGSEGV, Segmentation fault.
  2. 0x0000000000430ddd in SYSTEM$_$TOBJECT_$__$$_FREE ()
  3. (gdb) bt
  4. #0  0x0000000000430ddd in SYSTEM$_$TOBJECT_$__$$_FREE ()
  5. #1  0x00007fffffffca50 in ?? ()
  6. #2  0x0000000000a709ce in DOCREATEJITCOMPONENT (this=0x7fffedbe72c0, NEWCOMPONENTNAME=..., NEWCLASSNAME=..., NEWUNITNAME=..., ANCESTORCLASS=0x171d5f8, VISIBLE=true,
  7.     DISABLEAUTOSIZE=true) at ../designer/jitforms.pp:1088
  8. #3  0x0000000000a6f81e in ADDJITCOMPONENTFROMSTREAM (this=0x7fffedbe72c0, BINSTREAM=0x7fffe7ed2540, UNITRESOURCEFILEFORMAT=0x1980778, ANCESTORCLASS=0x171d5f8,
  9.     NEWUNITNAME=..., INTERACTIVE=true, VISIBLE=true, DISABLEAUTOSIZE=true, CONTEXTOBJ=0x7fffe7b9a250) at ../designer/jitforms.pp:929
  10. #4  0x0000000000a9e67b in CREATERAWCOMPONENTFROMSTREAM (this=0x7fffedda9ca0, BINSTREAM=0x7fffe7ed2540, UNITRESOURCEFILEFORMAT=0x1980778, ANCESTORTYPE=0x171d5f8,
  11.     NEWUNITNAME=..., INTERACTIVE=true, VISIBLE=true, DISABLEAUTOSIZE=true, CONTEXTOBJ=0x7fffe7b9a250) at customformeditor.pp:1496
  12. #5  0x0000000000d70420 in LOADLFM (this=0x7fffe7f01bc0, ANUNITINFO=0x7fffe7b9a250, LFMBUF=0x7fffe7d91be0, OPENFLAGS=..., CLOSEFLAGS=...) at sourcefilemanager.pas:5965
  13. #6  0x0000000000d6f3df in LOADLFM (this=0x7fffe7f01bc0, ANUNITINFO=0x7fffe7b9a250, OPENFLAGS=..., CLOSEFLAGS=...) at sourcefilemanager.pas:5766
  14. #7  0x0000000000d5475d in OPENRESOURCE (this=0x7fffee5888c0) at sourcefilemanager.pas:866
  15. #8  0x0000000000d56d65 in OPENEDITORFILE (this=0x7fffee5888c0, APAGEINDEX=-1, AWINDOWINDEX=0, AEDITORINFO=0x7fffe7a62f00, AFLAGS=...) at sourcefilemanager.pas:1355
  16. #9  0x0000000000d52b46 in OPENEDITORFILE (AFILENAME=0x7fffe7a630d8 "/home/juha/SW/lazarus_gitsvn/ide/ideoptionsdlg.pas", PAGEINDEX=-1, WINDOWINDEX=0,
  17.     AEDITORINFO=0x7fffe7a62f00, FLAGS=..., USEWINDOWID=true) at sourcefilemanager.pas:395
  18. #10 0x0000000000d62b13 in INITOPENEDPROJECTFILE (this=0x7fffe7f01bc0, AFILENAME=0x7fffe7ca61d8 "/home/juha/SW/lazarus_gitsvn/ide/lazarus.lpi", FLAGS=...)
  19.     at sourcefilemanager.pas:3645
  20. #11 0x00000000004c15a4 in DOOPENPROJECTFILE (this=0x7fffefb92090, AFILENAME=0x7fffe7ca61d8 "/home/juha/SW/lazarus_gitsvn/ide/lazarus.lpi", FLAGS=...) at main.pp:6202
  21. #12 0x00000000004a9954 in SETUPSTARTPROJECT (this=0x7fffefb92090) at main.pp:2270
  22. #13 0x00000000004a5aaf in STARTIDE (this=0x7fffefb92090) at main.pp:1584
  23. #14 0x000000000041ea2f in main () at lazarus.pp:133
  24.  
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

balazsszekely

  • Guest
Re: IDE Docking Status
« Reply #18 on: January 02, 2016, 03:53:19 pm »
Quote
Oops, I get an exception when lazarus.lpi project and IDEOptionsDlg unit are open. It clearly depends on the form layout somehow.
Yes, I can confirm this issue. It's present even under windows.

lazyfiend

  • New Member
  • *
  • Posts: 15
Re: IDE Docking Status
« Reply #19 on: January 04, 2016, 02:32:57 am »
@GetMem That happens after setting up docking and can be solved after restarting lazarus (for me).
I do agree that a plugin where the author spends more time and effort is better.

The right click issue does not happen for me right now. I am still using the patch i created though, since it fits my style more. I am going to wait till Sparta grows.

In my opinion though, it is more important for the docking solution to grow. I like it if the plugins help each other. Is Anchor Docking (or the other one, i think easy docking?) development for the IDE active?

balazsszekely

  • Guest
Re: IDE Docking Status
« Reply #20 on: January 04, 2016, 06:22:19 am »
@lazyfiend
Quote
I do agree that a plugin where the author spends more time and effort is better.
To create a docking system that works on every platform it's a non-trivial task, that's for sure.

Quote
The right click issue does not happen for me right now. I am still using the patch i created though, since it fits my style more.
Ok. Maybe you can share with us what exactly did you change in that patch.

Quote
In my opinion though, it is more important for the docking solution to grow. I like it if the plugins help each other. Is Anchor Docking (or the other one, i think easy docking?) development for the IDE active?
AFAIK sparta is the only docking solution actively developed. Please take a look at: http://bugs.freepascal.org/view_all_bug_page.php . There is a lot of activity around sparta lately.

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4459
  • I like bugs.
Re: IDE Docking Status
« Reply #21 on: January 04, 2016, 12:08:53 pm »
Quote
In my opinion though, it is more important for the docking solution to grow. I like it if the plugins help each other. Is Anchor Docking (or the other one, i think easy docking?) development for the IDE active?
AFAIK sparta is the only docking solution actively developed. Please take a look at: http://bugs.freepascal.org/view_all_bug_page.php . There is a lot of activity around sparta lately.

I think you mean Sparta is the only solution for dockable form designer. AnchorDocking is is also a docking solution but is meant for the whole IDE. It is actively developed, 1.6 release will have many improvements for it, too.

@lazyfiend, why do you want to create your competing solution instead of fixing bugs in the existing one?
This is a common phenomena in open source. Everybody wants to reinvent the wheel. In the end we have many half-baked solutions instead of one good.
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

balazsszekely

  • Guest
Re: IDE Docking Status
« Reply #22 on: January 04, 2016, 01:12:07 pm »
Quote
@JuhaManninen
I think you mean Sparta is the only solution for dockable form designer. AnchorDocking is is also a docking solution but is meant for the whole IDE. It is actively developed, 1.6 release will have many improvements for it, too.
Yes, you're right! I was talking about Sparta dockable form designer, but the same is true for AnchorDocking. I think we should focus on this two solution, since they are in a more advanced state of development. Creating a new competing solution or even continue an old obsolete one,  it make no sense at all.

hnb

  • Sr. Member
  • ****
  • Posts: 270
Re: IDE Docking Status
« Reply #23 on: January 05, 2016, 04:27:10 pm »
@GetMem, @Juha could you retest with current trunk/sparta branch? I think I fixed this in r51204 (sparta branch) r51206 (trunk)
Checkout NewPascal initiative and donate beer - ready to use tuned FPC compiler + Lazarus for mORMot project

best regards,
Maciej Izak

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4459
  • I like bugs.
Re: IDE Docking Status
« Reply #24 on: January 05, 2016, 05:27:05 pm »
@GetMem, @Juha could you retest with current trunk/sparta branch? I think I fixed this in r51204 (sparta branch) r51206 (trunk)

Tested with trunk and it works. Thanks!
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

balazsszekely

  • Guest
Re: IDE Docking Status
« Reply #25 on: January 05, 2016, 06:22:01 pm »
@hnb
Yes I can confirm that works!

PS: I just saw that you tweaked my flickering patch further, which is great. Now the form resize is even smoother under windows. The sparta docking system is getting better and better each day. Thank you Maciej!
« Last Edit: January 05, 2016, 07:02:08 pm by GetMem »

hnb

  • Sr. Member
  • ****
  • Posts: 270
Re: IDE Docking Status
« Reply #26 on: January 07, 2016, 09:37:08 am »
PS: I just saw that you tweaked my flickering patch further, which is great. Now the form resize is even smoother under windows. The sparta docking system is getting better and better each day. Thank you Maciej!

Thanks for the patch! ... but AFAIK that one patch was merged by Ondrej ^^.
Checkout NewPascal initiative and donate beer - ready to use tuned FPC compiler + Lazarus for mORMot project

best regards,
Maciej Izak

balazsszekely

  • Guest
Re: IDE Docking Status
« Reply #27 on: January 07, 2016, 10:10:04 am »
Quote
but AFAIK that one patch was merged by Ondrej ^^
Yes, you're right. I mixed up with something else.

lazyfiend

  • New Member
  • *
  • Posts: 15
Re: IDE Docking Status
« Reply #28 on: January 12, 2016, 02:33:02 am »
@GetMem
the patch is for my patched KZDesktop (that i have been keeping for years, i just did not share it back then since it needs something changed in anchordocking to make it work), not sparta. If i make changes to sparta though, i will definitely share it.

@JuhaManninen Definitely not interested in creating a competing one. If i have time, i would edit Sparta and add what i want in it.

The thing here is this: I have not been checking out any developments in any docking solutions (and also anything about lazarus too) for a long time (that is why i asked), and i only have my patched KZDesktop with me. I already know how it works so if i need something quickly done with it, i can do it. I only have less of a day to make it work as my hobby time is really limited (and is being eaten by python :P). Sorry if i have not made that clear.

To be honest, i really really end up loving whatever i have done there (the form editor as a dockable part). If i can contribute to anchor docking and/or sparta in the future, then that would be cool.

 

TinyPortal © 2005-2018