Sign in Join

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

Mailing lists / lazarus / 2010-09

IDE doesn't ask whether to open program as new project or as regular file

7 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

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

Sven Barth

Hi!

Is it normal that the IDE (0.9.29, rev 26569, Linux, GTK 2) doesn't ask anymore whether I want to open a Pascal program as a regular file or I want to create a new project for it?

I had quickly created a small test app for an issue report in an external editor and wanted to test it inside Lazarus (because I found a problem with CodeTools). But when I opened (File->Open) the program file the IDE didn't ask what I want to use it for, but simply opened it as a regular file (I already had another program open).

Regards,
Sven

Reply by email

Mattias Gaertner
to Sven Barth
Show quoted text 11 lines
Hi! Is it normal that the IDE (0.9.29, rev 26569, Linux, GTK 2) doesn't ask anymore whether I want to open a Pascal program as a regular file or I want to create a new project for it? I had quickly created a small test app for an issue report in an external editor and wanted to test it inside Lazarus (because I found a problem with CodeTools). But when I opened (File->Open) the program file the IDE didn't ask what I want to use it for, but simply opened it as a regular file (I already had another program open).

Yes for a lpr file.

When opening a lpi file via File->Open the IDE always asks.

Mattias

Reply by email

Sven Barth
to Mattias Gaertner
Mattias Gaertner wrote 18 lines
On Sun, 05 Sep 2010 11:41:24 +0200 Sven Barth wrote: > Hi! > > Is it normal that the IDE (0.9.29, rev 26569, Linux, GTK 2) doesn't ask > anymore whether I want to open a Pascal program as a regular file or I > want to create a new project for it? > > I had quickly created a small test app for an issue report in an > external editor and wanted to test it inside Lazarus (because I found a > problem with CodeTools). But when I opened (File->Open) the program file > the IDE didn't ask what I want to use it for, but simply opened it as a > regular file (I already had another program open). Yes for a lpr file. When opening a lpi file via File->Open the IDE always asks.

Is this a changed behavior? I remember that it wasn't always like this... (or do I have problems with my memory? :) ).

Nevertheless: could an option be added to ask on lpr files as well (again?) ? I'll also create an issue report for it if you want. (So that this isn't forgotten) :)

Regards,
Sven

Reply by email

Mattias Gärtner
to Sven Barth

Zitat von Sven Barth :

Show quoted text 22 lines
Am 10.09.2010 17:35, schrieb Mattias Gaertner: > On Sun, 05 Sep 2010 11:41:24 +0200 > Sven Barth wrote: > >> Hi! >> >> Is it normal that the IDE (0.9.29, rev 26569, Linux, GTK 2) doesn't ask >> anymore whether I want to open a Pascal program as a regular file or I >> want to create a new project for it? >> >> I had quickly created a small test app for an issue report in an >> external editor and wanted to test it inside Lazarus (because I found a >> problem with CodeTools). But when I opened (File->Open) the program file >> the IDE didn't ask what I want to use it for, but simply opened it as a >> regular file (I already had another program open). > > Yes for a lpr file. > > When opening a lpi file via File->Open the IDE always asks. Is this a changed behavior? I remember that it wasn't always like this... (or do I have problems with my memory? :) ).

AFAIR it was always so.

Nevertheless: could an option be added to ask on lpr files as well (again?) ? I'll also create an issue report for it if you want. (So that this isn't forgotten) :)

What's the problem with opening the lpi file, or using "open project"?

Mattias

Reply by email

Sven Barth
to Mattias Gärtner
Mattias G?rtner wrote 28 lines
Zitat von Sven Barth : > Am 10.09.2010 17:35, schrieb Mattias Gaertner: >> On Sun, 05 Sep 2010 11:41:24 +0200 >> Sven Barth wrote: >> >>> Hi! >>> >>> Is it normal that the IDE (0.9.29, rev 26569, Linux, GTK 2) doesn't ask >>> anymore whether I want to open a Pascal program as a regular file or I >>> want to create a new project for it? >>> >>> I had quickly created a small test app for an issue report in an >>> external editor and wanted to test it inside Lazarus (because I found a >>> problem with CodeTools). But when I opened (File->Open) the program >>> file >>> the IDE didn't ask what I want to use it for, but simply opened it as a >>> regular file (I already had another program open). >> >> Yes for a lpr file. >> >> When opening a lpi file via File->Open the IDE always asks. > > Is this a changed behavior? I remember that it wasn't always like > this... (or do I have problems with my memory? :) ). AFAIR it was always so.

I just did a quick test with 0.9.29 on Windows. I created a simple program in a text editor (file extension: .pas) and opened it with "File->Open" in Lazarus. It asked whether I want to create a new project. So afaik it wasn't always so :P

I don't know the revision, but the source files from Lazarus are from 30th August (and I've updated before I compiled that version), but they are no longer under subversion control, so I can't check.

Show quoted text 6 lines
> Nevertheless: could an option be added to ask on lpr files as well > (again?) ? I'll also create an issue report for it if you want. (So > that this isn't forgotten) :) What's the problem with opening the lpi file, or using "open project"?

That's the point: no lpi file. The situation I'm talking of is a externally created virgin Pascal program.

The only possible solution would be "Project->New project from file" (or similar, I use the German version), but I'm rather used to "File->Open" being an allround solution.

Regards,
Sven

Reply by email

Mattias Gärtner
to Sven Barth

Zitat von Sven Barth :

Show quoted text 8 lines
[...] > AFAIR it was always so. > I just did a quick test with 0.9.29 on Windows. I created a simple program in a text editor (file extension: .pas) and opened it with "File->Open" in Lazarus. It asked whether I want to create a new project. So afaik it wasn't always so :P

Try a second time with the same project.
It asks only for new units. If you answered to open it as regular file it will be opened as regular file the next time without asking.

Show quoted text 15 lines
I don't know the revision, but the source files from Lazarus are from 30th August (and I've updated before I compiled that version), but they are no longer under subversion control, so I can't check. > >> Nevertheless: could an option be added to ask on lpr files as well >> (again?) ? I'll also create an issue report for it if you want. (So >> that this isn't forgotten) :) > > What's the problem with opening the lpi file, or using "open project"? That's the point: no lpi file. The situation I'm talking of is a externally created virgin Pascal program. The only possible solution would be "Project->New project from file"

Yes.

(or similar, I use the German version), but I'm rather used to "File->Open" being an allround solution.

We all are used to File/Open. That's why it so important that is does not ask the same question again and again.
You want to create a project, which is imho not really the task of "File/Open", but of the project menu.

Mattias

Reply by email

Sven Barth
to Mattias Gärtner
Mattias G?rtner wrote 16 lines
Zitat von Sven Barth : > [...] >> AFAIR it was always so. >> > > I just did a quick test with 0.9.29 on Windows. I created a simple > program in a text editor (file extension: .pas) and opened it with > "File->Open" in Lazarus. It asked whether I want to create a new > project. So afaik it wasn't always so :P Try a second time with the same project. It asks only for new units. If you answered to open it as regular file it will be opened as regular file the next time without asking.

I know that one. Sometimes it's a nice feature that the IDE only asks once and sometimes it's just annoying. -.- And mostly it works in exactly that way that I don't need it :P

Show quoted text 25 lines
> I don't know the revision, but the source files from Lazarus are from > 30th August (and I've updated before I compiled that version), but > they are no longer under subversion control, so I can't check. > >> >>> Nevertheless: could an option be added to ask on lpr files as well >>> (again?) ? I'll also create an issue report for it if you want. (So >>> that this isn't forgotten) :) >> >> What's the problem with opening the lpi file, or using "open project"? > > That's the point: no lpi file. The situation I'm talking of is a > externally created virgin Pascal program. > > The only possible solution would be "Project->New project from file" Yes. > (or similar, I use the German version), but I'm rather used to > "File->Open" being an allround solution. We all are used to File/Open. That's why it so important that is does not ask the same question again and again. You want to create a project, which is imho not really the task of "File/Open", but of the project menu.

Well... maybe I should start playing around with the keyboard shortcut settings of Lazarus... :)

Thank you for your response.

Regards,
Sven

Reply by email