[Lazarus] Code tools anomaly

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[Lazarus] Code tools anomaly

Free Pascal - Lazarus mailing list

Hi,

On Linux, GTK 2, using fpc trunk, lazarus trunk:

Open unit packages/fcl-net/src/ssockets.pp

Code tools do not work.

Reason can be detected as follows:

Ctrl-Click sockets unit in interface uses clause.

Lazarus opens the sockets unit in rtl-extra/src/amiga (!?)

All code completion is nroken in the ssockets unit, because lazarus chokes on
functions in the amiga unit like:

function bsd_socket(Domain: LongInt location 'd0'; Type_: LongInt location 'd1'; Protocol: LongInt location 'd2'): LongInt; syscall SocketBase 30;

1/ Seems like the heuristics for opening units needs a tweak.

2/ Probably the amiga OS devs would be happy to see support for location 'x' as well since it would enable code completion.

Michael.


--
_______________________________________________
Lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus