Sign in Join

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

Mailing lists / lazarus / 2011-12

Errors in Windows

10 messages · 4 people ·

Reply by email Subscribe to this list Your subscription

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

Felipe Monteiro de Carvalho

Hello,

I just had a very strange issue which is driving me crazy o.O I installed the IDE in this computer months ago and I came back and worked on it a bit and everything went fine. It could build projects, run them, etc.

So I did svn update and launched my standard build file (unmodified) to make bigide and get a newer IDE.

To my surprise ever since I haven't been able to get the IDE to work again =( The basic error is this one:

http://img804.imageshack.us/img804/5927/lazerror1.jpg

Cannot find fpc.cfg which is non-sense, because the file is there in the same directory as the fpc.exe is ...

If I ignore that I will get tons of errors. It cannot find the basic lpk files, but they are all there in their normal positions. My paths have no spaces and I didn't change anything, not even the start compiter.

The computer is running Windows Vista so I think it could be one of the crippy new "features" from Vista which is blocking Lazarus from being able to read the files or something, although I cannot rule out some kind of regression ... I already tried to specify the --pcp and reconfigure everything to no help. Also tried to delete the configuration directory (I use --pcp=C:\programas\lazarussvn now) ...

Any ideas what could be the problems?

thanks,

Felipe Monteiro de Carvalho

Reply by email

Martin
to Felipe Monteiro de Carvalho

When exactly did you upgrade?
there seem to have been some "rough" revisions, that got fixed in the last 1 or 2 hours

Felipe Monteiro de Carvalho wrote 33 lines
Hello, I just had a very strange issue which is driving me crazy o.O I installed the IDE in this computer months ago and I came back and worked on it a bit and everything went fine. It could build projects, run them, etc. So I did svn update and launched my standard build file (unmodified) to make bigide and get a newer IDE. To my surprise ever since I haven't been able to get the IDE to work again =( The basic error is this one: http://img804.imageshack.us/img804/5927/lazerror1.jpg Cannot find fpc.cfg which is non-sense, because the file is there in the same directory as the fpc.exe is ... If I ignore that I will get tons of errors. It cannot find the basic lpk files, but they are all there in their normal positions. My paths have no spaces and I didn't change anything, not even the start compiter. The computer is running Windows Vista so I think it could be one of the crippy new "features" from Vista which is blocking Lazarus from being able to read the files or something, although I cannot rule out some kind of regression ... I already tried to specify the --pcp and reconfigure everything to no help. Also tried to delete the configuration directory (I use --pcp=C:\programas\lazarussvn now) ... Any ideas what could be the problems? thanks,

Reply by email

Felipe Monteiro de Carvalho
to Martin
Martin wrote
When exactly did you upgrade?

The svn update was this morning, dont remember the time exactly.

there seem to have been some "rough" revisions, that got fixed in the last 1 or 2 hours

Ha, worked like magic =) Svn up and make bigide and everything working again.

And I was already cursing Vista and the anti-virus =D

Felipe Monteiro de Carvalho

Reply by email

Luiz Americo Pereira Camara
to Felipe Monteiro de Carvalho: I just had a very strange issue which is driving me crazy o.O I installed the IDE in this…
Felipe Monteiro de Carvalho wrote 31 lines
Hello, I just had a very strange issue which is driving me crazy o.O I installed the IDE in this computer months ago and I came back and worked on it a bit and everything went fine. It could build projects, run them, etc. So I did svn update and launched my standard build file (unmodified) to make bigide and get a newer IDE. To my surprise ever since I haven't been able to get the IDE to work again =( The basic error is this one: http://img804.imageshack.us/img804/5927/lazerror1.jpg Cannot find fpc.cfg which is non-sense, because the file is there in the same directory as the fpc.exe is ... If I ignore that I will get tons of errors. It cannot find the basic lpk files, but they are all there in their normal positions. My paths have no spaces and I didn't change anything, not even the start compiter. The computer is running Windows Vista so I think it could be one of the crippy new "features" from Vista which is blocking Lazarus from being able to read the files or something, although I cannot rule out some kind of regression ... I already tried to specify the --pcp and reconfigure everything to no help. Also tried to delete the configuration directory (I use --pcp=C:\programas\lazarussvn now) ... Any ideas what could be the problems?

Probably you are using fpc 2.7.1

See "Lazarus not starts on Windows" thread from October

Try to remove call of UTF8ToSys in laz2_XMLRead.ReadXMLFile fpr fpc 2.7

Luiz

Reply by email

Mattias Gaertner
to Luiz Americo Pereira Camara
Show quoted text 18 lines
On 17/12/2011 12:18, Felipe Monteiro de Carvalho wrote: > Hello, > > I just had a very strange issue which is driving me crazy o.O I > installed the IDE in this computer months ago and I came back and > worked on it a bit and everything went fine. It could build projects, > run them, etc. > > So I did svn update and launched my standard build file (unmodified) > to make bigide and get a newer IDE. > > To my surprise ever since I haven't been able to get the IDE to work > again =( The basic error is this one: > > http://img804.imageshack.us/img804/5927/lazerror1.jpg > > Cannot find fpc.cfg which is non-sense, because the file is there in > the same directory as the fpc.exe is ...

The IDE calls the compiler and checks if it finds at least one fpc.cfg.

> If I ignore that I will get tons of errors. It cannot find the basic > lpk files, but they are all there in their normal positions. My paths > have no spaces and I didn't change anything, not even the start > compiter.

See View / IDE Internals / About FPC

Show quoted text 10 lines
> The computer is running Windows Vista so I think it could be one of > the crippy new "features" from Vista which is blocking Lazarus from > being able to read the files or something, although I cannot rule out > some kind of regression ... I already tried to specify the --pcp and > reconfigure everything to no help. Also tried to delete the > configuration directory (I use --pcp=C:\programas\lazarussvn now) ... > > Any ideas what could be the problems? Probably you are using fpc 2.7.1

The screenshot shows 2.4.2.

See "Lazarus not starts on Windows" thread from October Try to remove call of UTF8ToSys in laz2_XMLRead.ReadXMLFile fpr fpc 2.7

Does that mean TFileStream now works with UTF-8 in fpc 2.7.1? I doubt that.

Mattias

Reply by email

Luiz Americo Pereira Camara
to Mattias Gaertner
Mattias Gaertner wrote 14 lines
On Sat, 17 Dec 2011 13:05:53 -0200 Luiz Americo Pereira Camara wrote: > On 17/12/2011 12:18, Felipe Monteiro de Carvalho wrote: >> Any ideas what could be the problems? > Probably you are using fpc 2.7.1 The screenshot shows 2.4.2. > See "Lazarus not starts on Windows" thread from October > > Try to remove call of UTF8ToSys in laz2_XMLRead.ReadXMLFile fpr fpc 2.7 Does that mean TFileStream now works with UTF-8 in fpc 2.7.1? I doubt that.

It seems a different bug with similar symptoms

Luiz

Reply by email

Mattias Gaertner
to Luiz Americo Pereira Camara
Show quoted text 17 lines
On 17/12/2011 13:26, Mattias Gaertner wrote: > On Sat, 17 Dec 2011 13:05:53 -0200 > Luiz Americo Pereira Camara wrote: > >> On 17/12/2011 12:18, Felipe Monteiro de Carvalho wrote: >>> Any ideas what could be the problems? >> Probably you are using fpc 2.7.1 > The screenshot shows 2.4.2. > >> See "Lazarus not starts on Windows" thread from October >> >> Try to remove call of UTF8ToSys in laz2_XMLRead.ReadXMLFile fpr fpc 2.7 > Does that mean TFileStream now works with UTF-8 in fpc 2.7.1? > I doubt that. > It seems a different bug with similar symptoms

IMO your workaround is dangerous. If removing the UTF8ToSys helps, then it means the passed filename is already in system encoding, which means somewhere a file name in the IDE is not UTF-8. The file name is probably used at various other places too.
So, your workaround does not only is insufficient, it breaks all valid UTF-8 file names too.

Mattias

Reply by email

Luiz Americo Pereira Camara
to Mattias Gaertner
Mattias Gaertner wrote 26 lines
On Sat, 17 Dec 2011 13:45:03 -0200 Luiz Americo Pereira Camara wrote: > On 17/12/2011 13:26, Mattias Gaertner wrote: >> On Sat, 17 Dec 2011 13:05:53 -0200 >> Luiz Americo Pereira Camara wrote: >> >>> On 17/12/2011 12:18, Felipe Monteiro de Carvalho wrote: >>>> Any ideas what could be the problems? >>> Probably you are using fpc 2.7.1 >> The screenshot shows 2.4.2. >> >>> See "Lazarus not starts on Windows" thread from October >>> >>> Try to remove call of UTF8ToSys in laz2_XMLRead.ReadXMLFile fpr fpc 2.7 >> Does that mean TFileStream now works with UTF-8 in fpc 2.7.1? >> I doubt that. >> > It seems a different bug with similar symptoms IMO your workaround is dangerous. If removing the UTF8ToSys helps, then it means the passed filename is already in system encoding, which means somewhere a file name in the IDE is not UTF-8. The file name is probably used at various other places too. So, your workaround does not only is insufficient, it breaks all valid UTF-8 file names too.

You did not understand: i regret from my suggestion since the bug is otherwise.

Luiz

Reply by email