Sign in Join

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

Mailing lists / lazarus / 2024-07

Problems opening a newly created project

13 messages · 6 people · –

Reply by email Subscribe to this list Your subscription

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

Arí Ricardo Ody

Hey guys!

I created a new project, included the components I would need, wrote the pascal code, tested it and saved it in a directory. Just now I opened Lazarus IDE v2.2.0+dfsg1-Subuntu1 on my Linux Mint and tried to open the project with Project|Open Project selecting the .lpi file that has the name of the project. Nothing happened. The name of the directory appears at the top of the Lazarus Ide page but nothing opened. I tried to check, I went to File|Close All and this option is disabled (I assume it's because it didn't open anything in my project).

Then I went to File|Open, selected the .lpi file of my project and answered Open project with the appropriate button. Again nothing happened and the File|Close All option is inhibited again.

I went to another directory that contains another project that opens normally and I verified that the list of files in this other directory contains the same files by checking the extension of each file.

Is there any other way for me to get Lazarus to open my project? Did I lose the project?

I appreciate any help.

Greetings from S?o Paulo - Brazil

Ari Ricardo

P.S: Is there any way for me to attach an image to the emails on this list? So with the intention of supporting any problem I am reporting? Every time I try to post a supporting image my email is blocked. This is not a complaint. I'm just wanting to check if there's any way. -------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20240714/d62b382a/attachment.htm>

Reply by email

John Landmesser
to Arí Ricardo Ody
Ar? Ricardo Ody wrote 33 lines
Hey guys! I created a new project, included the components I would need, wrote the pascal code, tested it and saved it in a directory. Just now I opened Lazarus IDE v2.2.0+dfsg1-Subuntu1 on my Linux Mint and tried to open the project with Project|Open Project selecting the .lpi file that has the name of the project. Nothing happened. The name of the directory appears at the top of the Lazarus Ide page but nothing opened. I tried to check, I went to File|Close All and this option is disabled (I assume it's because it didn't open anything in my project). Then I went to File|Open, selected the .lpi file of my project and answered Open project with the appropriate button. Again nothing happened and the File|Close All option is inhibited again. I went to another directory that contains another project that opens normally and I verified that the list of files in this other directory contains the same files by checking the extension of each file. Is there any other way for me to get Lazarus to open my project? Did I lose the project? I appreciate any help. Greetings from S?o Paulo - Brazil Ari Ricardo P.S: Is there any way for me to attach an image to the emails on this list? So with the intention of supporting any problem I am reporting? Every time I try to post a supporting image my email is blocked. This is not a complaint. I'm just wanting to check if there's any way.

Reboot and then:

Perhaps try in terminal

lazarus ?? /path/to/your/project.lpi?? [ ENTER ]

See also lib directory in your project folder

Good luck

John

Reply by email

Arí Ricardo Ody
to John Landmesser: Reboot and then: Perhaps try in terminal lazarus ?? /path/to/your/project.lpi?? [ ENTER ]…
Show quoted text 8 lines
Reboot and then: Perhaps try in terminal lazarus /path/to/your/project.lpi [ ENTER

I tried
/usr/bin/lazarus-ide
/home/ricardo/testes_pascal/testes_sqlite/teste_update/teste_update.lpi

Lazarus open empty project again

See also lib directory in your project folder

I looked. And what do I do now?

Good luck

So far there is no news here.

John

Ar?

Show quoted text 7 lines
-- _______________________________________________ lazarus mailing list https://lists.lazarus-ide.org/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20240714/451f5fd4/attachment-0001.htm>

Reply by email

Arí Ricardo Ody
to Jean SUZINEAU: Did you try the menu Project / View Project source ? May be just the source editor window…

On Sun, Jul 14, 2024 at 11:41?AM Jean SUZINEAU via lazarus <

Show quoted text 5 lines
wrote: Did you try the menu Project / View Project source ? May be just the source editor window is closed.

I tried it and it opened the window with the source. And now what do I do?

Show quoted text 8 lines
-- _______________________________________________ lazarus mailing list https://lists.lazarus-ide.org/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20240714/27801b19/attachment.htm>

Reply by email

Juha Manninen
to Arí Ricardo Ody

On Sun, Jul 14, 2024 at 5:56?PM Ar? Ricardo Ody via lazarus <

wrote: I tried it and it opened the window with the source. And now what do I do?

Open the Project Inspector and from there open any unit files into the editor you want.

The File -> Close All menu item is completely removed in Lazarus trunk because it was confusing and misleading. Your problems are also caused by using it.
It did not close a project, it only closed source editors and package editors.

Juha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20240714/f37de488/attachment.htm>

Reply by email

Martin Frb
to Arí Ricardo Ody: Hey guys! I created a new project, included the components I would need, wrote the pascal…
Ar? Ricardo Ody wrote
Hey guys! I created a new project,

On the same computer as below? With the same version of Lazarus?

included the components I would need, wrote the pascal code, tested it and saved it in a directory. Just now I opened Lazarus IDE v2.2.0+dfsg1-Subuntu1 on my Linux Mint

If you did create the project above with a newer version, then try to enable saving with compatibility.? Not sure if it affects Lazarus 2.2, but at some point the fileformat was changed.

-----------------------------------------------------

Did you use "Close all [editor] files" from the main menu? That, does not close the project, but updates it, so no files are shown by default (because they all got closed).

-----------------------------------------------------

If neither, and nothing else helps, start lazarus from a terminal/console. Then when you open the project check if anything is printed to that terminal.

Reply by email

John Landmesser
to Arí Ricardo Ody: Hey guys! I created a new project, included the components I would need, wrote the pascal…
Ar? Ricardo Ody wrote 33 lines
Hey guys! I created a new project, included the components I would need, wrote the pascal code, tested it and saved it in a directory. Just now I opened Lazarus IDE v2.2.0+dfsg1-Subuntu1 on my Linux Mint and tried to open the project with Project|Open Project selecting the .lpi file that has the name of the project. Nothing happened. The name of the directory appears at the top of the Lazarus Ide page but nothing opened. I tried to check, I went to File|Close All and this option is disabled (I assume it's because it didn't open anything in my project). Then I went to File|Open, selected the .lpi file of my project and answered Open project with the appropriate button. Again nothing happened and the File|Close All option is inhibited again. I went to another directory that contains another project that opens normally and I verified that the list of files in this other directory contains the same files by checking the extension of each file. Is there any other way for me to get Lazarus to open my project? Did I lose the project? I appreciate any help. Greetings from S?o Paulo - Brazil Ari Ricardo P.S: Is there any way for me to attach an image to the emails on this list? So with the intention of supporting any problem I am reporting? Every time I try to post a supporting image my email is blocked. This is not a complaint. I'm just wanting to check if there's any way.

I am on lazarus trunk so i don't? know if your version of lazarus has this:

Menue Windows/Center lost windows

Perhaps that can restore your IDE ?!

Reply by email

Arí Ricardo Ody
to Martin Frb: On the same computer as below? With the same version of Lazarus? If you did create the…
On the same computer as below? With the same version of Lazarus?

Yes, nothing was changed in the IDE settings. I unzipped the project from a 7zip file, opened the project in the IDE and hit ctrl-F9

If you did create the project above with a newer version, then try to enable saving with compatibility. Not sure if it affects Lazarus 2.2, but at some point the fileformat was changed.

I'll repeat. I simply turned on the notebook, unzipped the 7zip file, opened the project in the IDE (double-clicked on the .LPI file) and pressed ctrl-F9. I didn't change anything in Lazarus. I used the same version of the IDE that I had saved the project in the last time it worked. I simply lost my project. It no longer compiles.

Did you use "Close all [editor] files" from the main menu? That, does not close the project, but updates it, so no files are shown by default (because they all got closed).

Believe me, I tried everything. Except messing with IDE settings.

On Sun, Jul 14, 2024 at 12:33?PM Martin Frb via lazarus <

Show quoted text 20 lines
wrote: On 14/07/2024 16:13, Ar? Ricardo Ody via lazarus wrote: > Hey guys! > > I created a new project, On the same computer as below? With the same version of Lazarus? > included the components I would need, wrote the pascal code, tested it > and saved it in a directory. Just now I opened Lazarus IDE > v2.2.0+dfsg1-Subuntu1 on my Linux Mint If you did create the project above with a newer version, then try to enable saving with compatibility. Not sure if it affects Lazarus 2.2, but at some point the fileformat was changed. >If neither, and nothing else helps, start lazarus from a terminal/console. Then when you open the project check if anything is printed to that terminal.

Nothing happen.

Greetings from S?o Paulo - Brazil

Show quoted text 17 lines
----------------------------------------------------- Did you use "Close all [editor] files" from the main menu? That, does not close the project, but updates it, so no files are shown by default (because they all got closed). ----------------------------------------------------- If neither, and nothing else helps, start lazarus from a terminal/console. Then when you open the project check if anything is printed to that terminal. -- _______________________________________________ lazarus mailing list https://lists.lazarus-ide.org/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20240805/3087b338/attachment.htm>

Reply by email

Arí Ricardo Ody
to John Landmesser: I am on lazarus trunk so i don't? know if your version of lazarus has this: Menue…
I am on lazarus trunk so i don't know if your version of lazarus has this: Menue Windows/Center lost windows
Perhaps that can restore your IDE ?!

Forgive me, but I don't understand what you're talking about. In fact, I would like to simply be a Lazarus user, without having to deal with advanced things that are not development needs.

As I said before, I think I've lost my project. It no longer compiles.

On Sun, Jul 14, 2024 at 1:59?PM John Landmesser via lazarus <

Show quoted text 49 lines
wrote: Am 14.07.24 um 16:13 schrieb Ar? Ricardo Ody via lazarus: > Hey guys! > > I created a new project, included the components I would need, wrote > the pascal code, tested it and saved it in a directory. Just now I > opened Lazarus IDE v2.2.0+dfsg1-Subuntu1 on my Linux Mint and tried to > open the project with Project|Open Project selecting the .lpi file > that has the name of the project. Nothing happened. The name of the > directory appears at the top of the Lazarus Ide page but nothing > opened. I tried to check, I went to File|Close All and this option is > disabled (I assume it's because it didn't open anything in my project). > > Then I went to File|Open, selected the .lpi file of my project and > answered Open project with the appropriate button. Again nothing > happened and the File|Close All option is inhibited again. > > I went to another directory that contains another project that opens > normally and I verified that the list of files in this other directory > contains the same files by checking the extension of each file. > > Is there any other way for me to get Lazarus to open my project? Did I > lose the project? > > I appreciate any help. > > Greetings from S?o Paulo - Brazil > > Ari Ricardo > > P.S: Is there any way for me to attach an image to the emails on this > list? So with the intention of supporting any problem I am reporting? > Every time I try to post a supporting image my email is blocked. > This is not a complaint. I'm just wanting to check if there's any way. > I am on lazarus trunk so i don't know if your version of lazarus has this: Menue Windows/Center lost windows Perhaps that can restore your IDE ?! -- _______________________________________________ lazarus mailing list https://lists.lazarus-ide.org/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20240805/6a14e17a/attachment.htm>

Reply by email

Michael Van Canneyt
to Arí Ricardo Ody
Ar? Ricardo Ody wrote 12 lines
> I am on lazarus trunk so i don't know if your version of lazarus has this: > Menue Windows/Center lost windows > Perhaps that can restore your IDE ?! Forgive me, but I don't understand what you're talking about. In fact, I would like to simply be a Lazarus user, without having to deal with advanced things that are not development needs. As I said before, I think I've lost my project. It no longer compiles.

No, just remove the {$R *.res} directive in the project file (the .lpr one).

Then it should compile.

Michael.

Reply by email

Arí Ricardo Ody
to Michael Van Canneyt
Mr. Michael wrote
No, just remove the {$R *.res} directive in the project file (the .lpr

one).

Then it should compile.

The project compiled successfully following this guidance from Mr. Van Canneit.

Having known Mr. Van Canneit's proficiency for many years, I did not expect any other result when following his recommendation.

However, Mr. Van Canneit, I would like to ask you to explain what caused the sudden appearance of this corrupted .res file error and what happens when I remove the directive that you determined.

I am sure that if you gave this explanation, Mr. Van Canneit, I would have a valuable addition of knowledge about the compilation environment and the IDE. Would you be patient enough to explain what happened, please?

Greetings from S?o Paulo - Brazil

Ar? Ricardo

On Tue, Aug 6, 2024 at 3:54?AM Michael Van Canneyt via lazarus <

Show quoted text 31 lines
wrote: On Mon, 5 Aug 2024, Ar? Ricardo Ody via lazarus wrote: >> I am on lazarus trunk so i don't know if your version of lazarus has this: > >> Menue Windows/Center lost windows > > >> Perhaps that can restore your IDE ?! > > Forgive me, but I don't understand what you're talking about. In fact, I > would like to simply be a Lazarus user, without having to deal with > advanced things that are not development needs. > > As I said before, I think I've lost my project. It no longer compiles. No, just remove the {$R *.res} directive in the project file (the .lpr one). Then it should compile. Michael.-- _______________________________________________ lazarus mailing list https://lists.lazarus-ide.org/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20240810/8dfd3d00/attachment.htm>

Reply by email

Michael Van Canneyt
to Arí Ricardo Ody
Ar? Ricardo Ody wrote 20 lines
Mr. Michael wrote: > No, just remove the {$R *.res} directive in the project file (the .lpr one). > Then it should compile. The project compiled successfully following this guidance from Mr. Van Canneit. Having known Mr. Van Canneit's proficiency for many years, I did not expect any other result when following his recommendation. However, Mr. Van Canneit, I would like to ask you to explain what caused the sudden appearance of this corrupted .res file error and what happens when I remove the directive that you determined. I am sure that if you gave this explanation, Mr. Van Canneit, I would have a valuable addition of knowledge about the compilation environment and the IDE. Would you be patient enough to explain what happened, please?

Sorry, but I cannot explain it without more detailed info on the error.

All I can say now is that there are at least 2 possible causes:
- The .res file was somehow damaged when transferring it. (you can test this by copying it back to the original computer: if the program compiles on the origin
- The tools on the second computer are not up-to-date and do not understand the format of the .res file.

Michael.

Reply by email