Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2010-07

Possible bug

10 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Leonardo M. Ramé

Hi, I can't log-in to Mantis to report this. Please, if anyone can access create a report for this.

The bug is this:

When you press CTRL+SPACE after typing an object name in the editor, it shows its methods and properties (autocompletion, code insight, you_name_it), that's ok, but, when the user selects a property or method, the cursor disappears from the editor, instead of letting the user continue writing as it should.

This bug is here since at least two weeks.

Tested on Revision 26392 - Linux x86_64 - GTK2.

Leonardo M. Ram? Griensu S.A. - Medical IT C?rdoba Tel.: 0351-4247979

Reply by email

Mattias Gaertner
to Leonardo M. Ramé
Show quoted text 14 lines
Hi, I can't log-in to Mantis to report this. Please, if anyone can access create a report for this. The bug is this: When you press CTRL+SPACE after typing an object name in the editor, it shows its methods and properties (autocompletion, code insight, you_name_it), that's ok, but, when the user selects a property or method, the cursor disappears from the editor, instead of letting the user continue writing as it should. This bug is here since at least two weeks. Tested on Revision 26392 - Linux x86_64 - GTK2.

What gtk version do you use?
Can you try to find the svn revision that broke it?

Mattias

Reply by email

Leonardo M. Ramé
to Mattias Gaertner

El vie, 02-07-2010 a las 00:25 +0200, Mattias Gaertner escribi?:

Show quoted text 8 lines
On Thu, 01 Jul 2010 17:09:29 -0300 "Leonardo M." Ram? wrote: What gtk version do you use? Can you try to find the svn revision that broke it? Mattias

My libgtk2.0-0 is 2.20.1-0ubuntu2. Is that what do you need?.

About trying to find which revision broke it, it's a difficult task, I think it could be easier to try to find and fix the bug, I don't have any problem in doing this.

Could someone point me to the sources that implement this feature?. I don't even know how do you call it, is it AutoCompletion?.

Leonardo M. Ram? Griensu S.A. - Medical IT C?rdoba Tel.: 0351-4247979

Reply by email

Mattias Gaertner
to Leonardo M. Ramé
Show quoted text 11 lines
El vie, 02-07-2010 a las 00:25 +0200, Mattias Gaertner escribi?: > On Thu, 01 Jul 2010 17:09:29 -0300 > "Leonardo M." Ram? wrote: > > What gtk version do you use? > Can you try to find the svn revision that broke it? > > > Mattias My libgtk2.0-0 is 2.20.1-0ubuntu2. Is that what do you need?.

Yes, thanks.

About trying to find which revision broke it, it's a difficult task,

No, it's a pretty simple a binary search. But it may take some time on slow computers/internet connections.

Show quoted text 6 lines
I think it could be easier to try to find and fix the bug, I don't have any problem in doing this. Could someone point me to the sources that implement this feature?. I don't even know how do you call it, is it AutoCompletion?.

Caret visibility state depends on focus, settings and timer, so it depends on code in synedit, LCL and gtk interface. Debugging something that depends on timer and focus is quite hard. That's why I suggest to try the binary search.

Mattias

Reply by email

zeljko
to Leonardo M. Ramé: El vie, 02-07-2010 a las 00:25 +0200, Mattias Gaertner escribi?: My libgtk2.0-0 is…
Leonardo M. Ram? wrote 15 lines
El vie, 02-07-2010 a las 00:25 +0200, Mattias Gaertner escribi?: > On Thu, 01 Jul 2010 17:09:29 -0300 > "Leonardo M." Ram? wrote: > > What gtk version do you use? > Can you try to find the svn revision that broke it? > > > Mattias My libgtk2.0-0 is 2.20.1-0ubuntu2. Is that what do you need?. About trying to find which revision broke it, it's a difficult task, I think it could be easier to try to find and fix the bug, I don't have any problem in doing this.

I don't think that's lazarus regression, but problem which raised with gtk2-2.20 (under Fedora 13 caret even doesn't blink).Some structures have been changed in gtk2 so that problem will become worst with every new gtk2 version if we don't do something in our gtk2 translated code. I cannot reproduce your problem with gtk2-2.12 / 2.18.

zeljko

Reply by email

Leonardo M. Ramé
to zeljko

El vie, 02-07-2010 a las 09:38 +0200, zeljko escribi?:

Show quoted text 24 lines
On Friday 02 July 2010 03:11, Leonardo M. Ram? wrote: > El vie, 02-07-2010 a las 00:25 +0200, Mattias Gaertner escribi?: > > On Thu, 01 Jul 2010 17:09:29 -0300 > > "Leonardo M." Ram? wrote: > > > > What gtk version do you use? > > Can you try to find the svn revision that broke it? > > > > > > Mattias > > My libgtk2.0-0 is 2.20.1-0ubuntu2. Is that what do you need?. > > About trying to find which revision broke it, it's a difficult task, I > think it could be easier to try to find and fix the bug, I don't have > any problem in doing this. I don't think that's lazarus regression, but problem which raised with gtk2-2.20 (under Fedora 13 caret even doesn't blink).Some structures have been changed in gtk2 so that problem will become worst with every new gtk2 version if we don't do something in our gtk2 translated code. I cannot reproduce your problem with gtk2-2.12 / 2.18. zeljko

I think it's a regression, or something with the x86_64 version, because I tested in Lazarus 0.9.28-8 i386 - SVN Rev. 22277 - FPC 2.4.0 and it doesn't have the same issue.

Leonardo M. Ram? Griensu S.A. - Medical IT C?rdoba Tel.: 0351-4247979

Reply by email

Reimar Grabowski
to Leonardo M. Ramé: Hi, I can't log-in to Mantis to report this. Please, if anyone can access create a report…
This bug is here since at least two weeks. Tested on Revision 26392 - Linux x86_64 - GTK2.

I cannot reproduce this bug.

Lucid 64-Bit
same gtk2 version
FPC 2.5.1 rev 15303
Lazarus rev 26392 and rev 26430

R.

A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail?

Reply by email

Leonardo M. Ramé

El s?b, 03-07-2010 a las 10:19 +0200, zeljko escribi?:

Show quoted text 35 lines
On Friday 02 July 2010 20:27, Leonardo M. Ram? wrote: > El vie, 02-07-2010 a las 09:38 +0200, zeljko escribi?: > > On Friday 02 July 2010 03:11, Leonardo M. Ram? wrote: > > > El vie, 02-07-2010 a las 00:25 +0200, Mattias Gaertner escribi?: > > > > On Thu, 01 Jul 2010 17:09:29 -0300 > > > > "Leonardo M." Ram? wrote: > > > > > > > > What gtk version do you use? > > > > Can you try to find the svn revision that broke it? > > > > > > > > > > > > Mattias > > > > > > My libgtk2.0-0 is 2.20.1-0ubuntu2. Is that what do you need?. > > > > > > About trying to find which revision broke it, it's a difficult task, I > > > think it could be easier to try to find and fix the bug, I don't have > > > any problem in doing this. > > > > I don't think that's lazarus regression, but problem which raised with > > gtk2-2.20 (under Fedora 13 caret even doesn't blink).Some structures have > > been changed in gtk2 so that problem will become worst with every new > > gtk2 version if we don't do something in our gtk2 translated code. > > I cannot reproduce your problem with gtk2-2.12 / 2.18. > > > > zeljko > > I think it's a regression, or something with the x86_64 version, because > I tested in Lazarus 0.9.28-8 i386 - SVN Rev. 22277 - FPC 2.4.0 and it > doesn't have the same issue. No, it's not regression.I've fixed caret behaviour last night - it's problem (bug) with gtk2 theme under gnome.Caret blinks ok now. zeljko

Thanks zelko. Now I don't know if this was caused by your change, but I can't compile packages, I'm getting this error:?

/usr/local/share/lazarus/components/codetools/laz2_xmlread.pas(1,1) Fatal: Can't find unit LazarusPackageIntf used by codetools

Leonardo M. Ram? Griensu S.A. - Medical IT C?rdoba Tel.: 0351-4247979

Reply by email

Leonardo M. Ramé
to Leonardo M. Ramé

I found what Package is causing this problem. If I remove "AnchorDockingDsgn 0.5" the editor works correclty, so, this is what's causing the wrong behavior.

Leonardo M. Ram? Griensu S.A. - Medical IT C?rdoba Tel.: 0351-4247979

Reply by email

Mattias Gaertner
to Leonardo M. Ramé
I found what Package is causing this problem. If I remove "AnchorDockingDsgn 0.5" the editor works correclty, so, this is what's causing the wrong behavior.

Ah.
In this case:
The caret is vanishing correctly, because the focus is gone. The real bug is that the focus is not returned to the source editor under gtk2. It works under qt.
It's on my todo list.

Mattias

Reply by email