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

2016-01-17 Thread Sven Barth
Hello together! Working with 1.6RC2 I noticed a - for me - very serious problem and wonder whether I've missed some option. 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. This is wonderful

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

2016-01-17 Thread Bart
On 1/17/16, Sven Barth wrote: > Is there some option I have missed to change this behavior? Because not > only meeses this up the compiler project, but CodeTools don't like it as > well as the files I add this way are usually program files, thus they > shouldn't be in the uses section anyway. Od

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

2016-01-17 Thread Sven Barth
Am 17.01.2016 18:22 schrieb "Bart" : > > On 1/17/16, Sven Barth wrote: > > > Is there some option I have missed to change this behavior? Because not > > only meeses this up the compiler project, but CodeTools don't like it as > > well as the files I add this way are usually program files, thus the

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

2016-01-17 Thread ListMember
On 2016-01-17 16:30, Sven Barth wrote: 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. But, isn't this how Delphi has been doing it all these years. 1) When you create a new unit, it automatically ge

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

2016-01-17 Thread Juha Manninen
On Sun, Jan 17, 2016 at 4:30 PM, Sven Barth 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

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

2016-01-17 Thread Mattias Gaertner
On Sun, 17 Jan 2016 23:34:58 +0200 Juha Manninen wrote: >[...] > 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. That would be a regress

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

2016-01-17 Thread Bart
On 1/17/16, Juha Manninen wrote: > You cannot open a non-existing file, meaning that you cannot use the > File -> Open dialog for it. Yes tou can! Lazarus 1.7 r51253 FPC 3.0.0 i386-win32-win32/win64 Bart -- ___ Lazarus mailing list Lazarus@lists.laza

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

2016-01-17 Thread Sven Barth
Am 17.01.2016 22:35 schrieb "Juha Manninen" : > > On Sun, Jan 17, 2016 at 4:30 PM, Sven Barth 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 n

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

2016-01-17 Thread Sven Barth
Am 17.01.2016 20:36 schrieb "ListMember" : > > On 2016-01-17 16:30, Sven Barth wrote: >> >> 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. > > > But, isn't this how Delphi has been doing it all these year

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

2016-01-18 Thread Juha Manninen
On Mon, Jan 18, 2016 at 9:05 AM, Sven Barth wrote: > 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. Ok, you and Mattias are right. The OpenDialog in TMainIDE.mnuOpenClicked has

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

2016-01-18 Thread Mattias Gaertner
On Mon, 18 Jan 2016 13:11:08 +0200 Juha Manninen wrote: >[...] > Anyway the file open dialogs in GTK2 and QT don't respect the omitted > ofFileMustExist flag. They behave like it was set. That is another bug > clearly. It works here on GTK2/Ubuntu. I can choose a non existing file. Mattias --

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

2016-01-18 Thread Juha Manninen
On Mon, Jan 18, 2016 at 1:32 PM, Mattias Gaertner wrote: > It works here on GTK2/Ubuntu. I can choose a non existing file. I guess you mean you can type a name of a non existing file. You cannot choose it because by definition it does not exist. I have Xubuntu 15.10 with XFCE now. Can it make a

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

2016-01-18 Thread Sven Barth
Am 18.01.2016 12:11 schrieb "Juha Manninen" : > Can you find what revision caused the original problem you described? I'll try to. Regards, Sven -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman

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

2016-01-18 Thread Mattias Gaertner
On Mon, 18 Jan 2016 14:58:35 +0200 Juha Manninen wrote: > On Mon, Jan 18, 2016 at 1:32 PM, Mattias Gaertner > wrote: > > It works here on GTK2/Ubuntu. I can choose a non existing file. > > I guess you mean you can type a name of a non existing file. > You cannot choose it because by definition

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

2016-01-18 Thread Sven Barth
Am 18.01.2016 12:11 schrieb "Juha Manninen" : > Can you find what revision caused the original problem you described? Seems like it was more PEBKAC than anything else. The thing is I normally use this when I work with the compiler and there I add my tests to a directory parallel to the project dir