Sign in Join

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

Mailing lists / lazarus / 2024-08

Why doesn't my project compile anymore?

5 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

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

Arí Ricardo Ody

I extracted a 7zip backup of the directory where a Lazarus project was, opened it in the IDE and pressed ctrl-F9. See below what appeared in the IDE message window. (Lazarus IDE v3.4)

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Compilar projeto, Alvo:
D:\testes_pascal\transmissao_visual\gerastringvisual.exe: C?digo sa?da 1, Erros: 2
Error: No known file format detected for file 'gerastringvisual.res' gerastringvisual.lpr(24,1)Error: Error while compiling resources -> Compile with -vd for more details. Check for duplicates
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------

I confess that occurrences like these leave me completely at a loss as to what to do.

Note that I only extracted the contents of the 7zip file and compiled it. I have done this many, many times in my life. There is nothing that leads me to believe that saving a backup in a 7zip file and then extracting it will lead to corruption of the saved and extracted data.

Could someone please help me resolve this?

Greetings from S?o Paulo - Brazil

Ar? Ricardo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20240803/eaed73f0/attachment.htm>

Reply by email

Michael Van Canneyt
to Arí Ricardo Ody
Ar? Ricardo Ody wrote 15 lines
I extracted a 7zip backup of the directory where a Lazarus project was, opened it in the IDE and pressed ctrl-F9. See below what appeared in the IDE message window. (Lazarus IDE v3.4) --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Compilar projeto, Alvo: D:\testes_pascal\transmissao_visual\gerastringvisual.exe: C?digo sa?da 1, Erros: 2 Error: No known file format detected for file 'gerastringvisual.res' gerastringvisual.lpr(24,1)Error: Error while compiling resources -> Compile with -vd for more details. Check for duplicates --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- I confess that occurrences like these leave me completely at a loss as to what to do.

The error means the gerastringvisual.res file is corrupted.

Did you do as suggested, compile with -vd ?

You could try copying the file again.

Michael.

Reply by email

Arí Ricardo Ody
to Michael Van Canneyt

Hello Michael! How are you

The error means the gerastringvisual.res file is corrupted.

Yes, I understood this part. But thank you.

Did you do as suggested, compile with -vd ?

Even with the help of chatGPT I couldn't figure out where I could put the -vd option. The clauses where chatGPT tells me to click differ from those that appear in my Lazarus IDE.

You could try copying the file again.

I did everything. I deleted the gerastringvisual.res file, extracted the entire project from the 7zip file and recompiled it, and finally extracted only the girastringvisual.res file from the 7zip file. Nothing worked. I also deleted the project directory and recreated it. I deleted it again and created it with a different name. Nothing worked.

I don't know what to do anymore. I feel like I've lost my entire project. It seems like it will never compile again.

What happened between the last time the project compiled and now was that I simply turned off the computer, turned it on, included a few lines in one of the project's methods, and told Lazarus to compile.

Greetings from S?o Paulo - Brazil

Ar? Ricardo

On Sun, Aug 4, 2024 at 5:24?AM Michael Van Canneyt via lazarus <

Show quoted text 37 lines
wrote: On Sat, 3 Aug 2024, Ar? Ricardo Ody via lazarus wrote: > I extracted a 7zip backup of the directory where a Lazarus project was, > opened it in the IDE and pressed ctrl-F9. See below what appeared in the > IDE message window. (Lazarus IDE v3.4) > > --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- > Compilar projeto, Alvo: > D:\testes_pascal\transmissao_visual\gerastringvisual.exe: C?digo sa?da 1, > Erros: 2 > Error: No known file format detected for file 'gerastringvisual.res' > gerastringvisual.lpr(24,1)Error: Error while compiling resources -> Compile > with -vd for more details. Check for duplicates > --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- > > I confess that occurrences like these leave me completely at a loss as to > what to do. The error means the gerastringvisual.res file is corrupted. Did you do as suggested, compile with -vd ? You could try copying the file again. 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/20240804/eb29b196/attachment.htm>

Reply by email

Salvatore Coppola
to Arí Ricardo Ody

Have you tried to recreate the resource via windres.exe As alternative comment {$R *.res} in project source Saluti

?Ottieni BlueMail per Android ?

Il giorno 4 Ago 2024, 17:05, alle ore 17:05, "Ar? Ricardo Ody via lazarus" ha scritto:

Show quoted text 94 lines
Hello Michael! How are you > The error means the gerastringvisual.res file is corrupted. Yes, I understood this part. But thank you. >Did you do as suggested, compile with -vd ? Even with the help of chatGPT I couldn't figure out where I could put the -vd option. The clauses where chatGPT tells me to click differ from those that appear in my Lazarus IDE. > You could try copying the file again. I did everything. I deleted the gerastringvisual.res file, extracted the entire project from the 7zip file and recompiled it, and finally extracted only the girastringvisual.res file from the 7zip file. Nothing worked. I also deleted the project directory and recreated it. I deleted it again and created it with a different name. Nothing worked. I don't know what to do anymore. I feel like I've lost my entire project. It seems like it will never compile again. What happened between the last time the project compiled and now was that I simply turned off the computer, turned it on, included a few lines in one of the project's methods, and told Lazarus to compile. Greetings from S?o Paulo - Brazil Ar? Ricardo On Sun, Aug 4, 2024 at 5:24?AM Michael Van Canneyt via lazarus < > wrote: > > > On Sat, 3 Aug 2024, Ar? Ricardo Ody via lazarus wrote: > > > I extracted a 7zip backup of the directory where a Lazarus project was, > > opened it in the IDE and pressed ctrl-F9. See below what appeared in the > > IDE message window. (Lazarus IDE v3.4) > > > > > --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- > > Compilar projeto, Alvo: > > D:\testes_pascal\transmissao_visual\gerastringvisual.exe: C?digo sa?da 1, > > Erros: 2 > > Error: No known file format detected for file 'gerastringvisual.res' > > gerastringvisual.lpr(24,1)Error: Error while compiling resources -> > Compile > > with -vd for more details. Check for duplicates > > > --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- > > > > I confess that occurrences like these leave me completely at a loss as to > > what to do. > > The error means the gerastringvisual.res file is corrupted. > > Did you do as suggested, compile with -vd ? > > You could try copying the file again. > > Michael.-- > _______________________________________________ > lazarus mailing list > > https://lists.lazarus-ide.org/listinfo/lazarus > ------------------------------------------------------------------------ -- _______________________________________________ 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/20240804/5f6bce00/attachment.htm>

Reply by email

Arne Hanssen
to Arí Ricardo Ody: Hello Michael! How are you Yes, I understood this part. But thank you. Even with the help…

Den 04.08.2024 17:05, skreiv Ar? Ricardo Ody via lazarus:

Show quoted text 9 lines
Hello Michael! How are you [...] >Did you do as suggested, compile with -vd ? Even with the help of chatGPT I couldn't figure out where I could put the -vd option. The clauses where chatGPT tells me to click differ from those that appear in my Lazarus IDE.

Project -> Project Options, then under Compiler Options: Verbosity, mark 'Show debug info (-vd)'?

[...]

Best regards Arne Hanssen

Reply by email