Sign in Join

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

Mailing lists / lazarus / 2018-07

Code tools anomaly

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

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

Michael Van Canneyt

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.

Reply by email