[Lazarus] Find declaration bug?

patspiper patspiper at gmail.com
Sat Sep 29 23:36:48 CEST 2012


On 29/09/12 23:09, Mark Morgan Lloyd wrote:
> patspiper wrote:
>> Hi,
>>
>> I am not sure if this is the intended behaviour, and hence my post.
>>
>> Under Ubuntu 11.04:
>>
>> Create a new project, set its Target OS (Code Generation) to win32 
>> and set LCLWidgetType to Win32 in IDE Macro Values. Add unit seri and 
>> try autocomplete. Code Tools will not suggest anything as expected 
>> since the FPC serial unit is unix only. Complete it manually to 
>> serial. Hovering the mouse over 'Serial' will show the hint:
>> unit
>>  Serial
>> /home/me/Programs/fpc/fpsrc/exported/2.6.1/rtl/unix/serial.pp(5,6)
>>
>> Right clicking / Find Declaration will open the serial unit, when it 
>> is not available for Win32. Right click/Open File at Cursor opens it 
>> too as expected. Should Find Declaration open it in the first place?
>
> I submitted a patch which added Windows support about a year ago. 
> Hasn't been applied.
>
The issue here is not the serial unit, but rather the Find Declaration 
behaviour.

Regarding your windows serial unit patch, you should check on the FPC 
list especially that a windows equivalent is logically needed. Moreover, 
IIRC, there was somebody else who submitted such a unit.

Stephano




More information about the Lazarus mailing list