[Lazarus] Opening non existing files and (not) adding them to the project

Sven Barth pascaldragon at googlemail.com
Mon Jan 18 08:05:27 CET 2016


Am 17.01.2016 22:35 schrieb "Juha Manninen" <juha.manninen62 at gmail.com>:
>
> On Sun, Jan 17, 2016 at 4:30 PM, Sven Barth <pascaldragon at googlemail.com>
wrote:
> > Back in 1.4.x when I opened a non-existing file and I confirmed that I
want
> > to have it created the file was not added to project or the project's
mainfile.
> > [...]
> > Now with 1.6RC2 I noticed that such files are added to the uses clause
of
> > the main program file and the project inspector.
>
> You cannot open a non-existing file, meaning that you cannot use the
> File -> Open dialog for it. There is now a "FileMustExist" or similar
> flag. I remember it fixed some bug but don't remember which one.
> IMO it is logical because you can by definition only open existing
> files. If a file does not exist, you must create it instead.

Don't shock me like that, Juha.

The IDE actively asks me whether I want to create a new file if I open a
non existing one and it should definitely stay that way.

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20160118/82d24a7a/attachment-0003.html>


More information about the Lazarus mailing list