Another stupid question from me:

I did just set up an environment for compiling Lazarus from SVN on
windows and I got it all working without problmes but there is one
little thing I noticed:

I initially installed the 2.4.0 binary installer of the compiler and
made sure that the path to the i386-win32 folder is set correctly so I
can call the bundled make.exe directly from the command line.

I then checked out the Lazarus sources from the svn and "make bigide"
built everything without any problems, I ended up with a Lazarus that
would start and compile the empty default Application, although it
complained about missing fpc sources during startup.

After a cup of coffee while downloading the fpc sources zip i tried to
invoke the autocomplete (ctrl+space), still with fpc sources directory
not set and it complained about unit classes not found. This problem
went away after pointing Lazarus to the correct FPC sources directory,
now everything works.

But this has now left a question mark in my head: is it not possible to
distribute units without source code without completely breaking the
autocomplete (on any identifier) in the whole unit that uses this closed
source unit? I haven't explicitly tried to replicate this with a unit of
my own yet but this is what I conclude must be happening: The classes
unit is there, otherwise it could not compile the project, only its
source is missing, and this will completely break *any* attempt to
autocomplete *anything*, even locally declared identifiers. Is this only
the case with rtl units because they are somehow 'special'(?) or does
this happen with any unit for which there is no source?

Bernd

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to