Recent

Author Topic: Does not suggest function parameters  (Read 585 times)

BubikolRamios

  • Sr. Member
  • ****
  • Posts: 347
Does not suggest function parameters
« on: January 21, 2025, 04:59:40 pm »
in my unit:

Code: Pascal  [Select][+][-]
  1. function getTwoPointDistance(P1,P2:Tpoint):Float;
  2. function getTwoLineSegmentsIntersectionPoint(P0,P1,P2,P3:Tpoint;Out intersectionP : Tpoint):Boolean;
  3.  

in the unit that uses upper unit
type first function name+ctrl+space and parameters are suggested.
same thing for second function and parameters are not suggested.

?
lazarus 3.2-fpc-3.2.2-win32/win64

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 10799
  • Debugger - SynEdit - and more
    • wiki
Re: Does not suggest function parameters
« Reply #1 on: January 21, 2025, 05:01:23 pm »
Is there anything (error msg) shown in the "messages window" (where also compiler msgs would be shown)?

BubikolRamios

  • Sr. Member
  • ****
  • Posts: 347
Re: Does not suggest function parameters
« Reply #2 on: January 21, 2025, 05:14:43 pm »
No.

Note, parameter box pops up, contains function name but no parameters under it (empty space).

Lazarus 3.2 (rev lazarus_3_2) FPC 3.2.2 i386-win32-win32/win64
lazarus 3.2-fpc-3.2.2-win32/win64

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 10799
  • Debugger - SynEdit - and more
    • wiki
Re: Does not suggest function parameters
« Reply #3 on: January 21, 2025, 05:27:10 pm »
Indeed, I can reproduce it.

It depends on the width of the drop down => see the resizer edge on the completion drop down? Make it wider (does just have to fit the beginning of the arguments, not all of them). And then when you select the line, it will preview the args correctly.

Same in 4.0RC2

Not yet sure why...

Please report it as a bug (so it wont be forgotten). You can refer to this forum post.
Thanks.

WooBean

  • Sr. Member
  • ****
  • Posts: 280
Re: Does not suggest function parameters
« Reply #4 on: January 21, 2025, 05:40:56 pm »
Hi!

To make things more funny I can share what I can see at trunk (4.99+ private additions not related rather).



« Last Edit: January 21, 2025, 05:49:25 pm by WooBean »
Platforms: Win7/64, Linux Mint Ulyssa/64

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 10799
  • Debugger - SynEdit - and more
    • wiki
Re: Does not suggest function parameters
« Reply #5 on: January 26, 2025, 12:43:54 am »
The original issue should be fixed in 4.0.

@BubikolRamios: Just good look I remembered the issue at all. Issues reported on the forum are very often forgotten and not fixed.
In future please report them on the bug tracker. Thanks.

 

TinyPortal © 2005-2018