Sign in Join

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

Mailing lists / lazarus / 2010-01

Unable to create file jcfsettings.cfg

14 messages · 6 people · –

Reply by email Subscribe to this list Your subscription

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

Paul Ishenin
to Marcelo B de Paula: After recently trunk update, i?m getting this error while changing configurations.…
Marcelo B de Paula wrote 10 lines
Hello all, After recently trunk update, i?m getting this error while changing configurations. Environment->Options. Strangely, the file is at lazarus configuration directory and it has full permissions. I?m using last Lazarus svn with fpc 2.5.1 in win32.

I changed jcf code to save/load this file from the PrimaryConfigDir. Before it was placed near the lazarus.exe file. When lazarus runs the first time it saves old (and if old does not exists then default) jcfsettings.cfg file to that location.

Strange that you have problems since I tested the change both on windows xp and ubuntu linux.

To solve the problem I need more information from you:
1. Open environment options, select JCF format settings. What is written near the "Format file is: "?
2. Do you use -primary-config-dir switch to run lazarus?
3. Do you see environmentoptions.xml and editoroptions.xml near the jcfsettings.cfg?

You can try to remove that jcfsettins.cfg and lazarus will try to recreate it again.

Best regards,
Paul Ishenin.

Reply by email

Marcelo B de Paula

Hello all,

After recently trunk update, i?m getting this error while changing configurations.
Environment->Options.

Strangely, the file is at lazarus configuration directory and it has full permissions.

I?m using last Lazarus svn with fpc 2.5.1 in win32.

Regards,

Marcelo.

Reply by email

Paul Ishenin
to Marcelo B de Paula: The first thing i did when got the error was eliminate the lazarus config dir and…
Marcelo B de Paula wrote
The first thing i did when got the error was eliminate the lazarus config dir and executed lazarus to create a fresh one. Unfortunatly, doing this, the file was not created with same error.

So after removing the directory you still have problems?

Show quoted text 6 lines
Just to note that i?m using a localized (portuguese) version of win xp. The path to lazarus config is c:\Documents and settings\User\Configura??es locais\Dados de aplicativos\lazarus. (there is spaces in it). This is equivalent in english version to c:\Documents and settings\User\Local configurations\Application Data\lazarus.

I see. Spaces are not a problem but probably various national symbols like "??". I will try to create configuration path with similar symbols too find the problem place.

Best regards,
Paul Ishenin.

Reply by email

zeljko
to Paul Ishenin
Paul Ishenin wrote 18 lines
31.01.2010 21:51, Marcelo B de Paula wrote: > The first thing i did when got the error was eliminate the lazarus > config dir and executed lazarus to > create a fresh one. Unfortunatly, doing this, the file was not created > with same error. So after removing the directory you still have problems? > Just to note that i?m using a localized (portuguese) version of win > xp. The path to lazarus config is > c:\Documents and settings\User\Configura??es locais\Dados de > aplicativos\lazarus. (there is spaces in it). > This is equivalent in english version to c:\Documents and > settings\User\Local configurations\Application Data\lazarus. I see. Spaces are not a problem but probably various national symbols like "??". I will try to create configuration path with similar symbols too find the problem place.

You have to use UTF8ToAnsi() for filenames and paths, then it'll work ok. Me and Dimitry discussed about this few weeks ago on irc.

zeljko

Reply by email

Marcelo B de Paula
Show quoted text 12 lines
To solve the problem I need more information from you: 1. Open environment options, select JCF format settings. What is written near the "Format file is: "? 2. Do you use -primary-config-dir switch to run lazarus? 3. Do you see environmentoptions.xml and editoroptions.xml near the jcfsettings.cfg? You can try to remove that jcfsettins.cfg and lazarus will try to recreate it again. Best regards, Paul Ishenin.

Hello Paul,

The first thing i did when got the error was eliminate the lazarus config dir and executed lazarus to
create a fresh one. Unfortunatly, doing this, the file was not created with same error.

Answering the questions:

1) I got, file not found. None is displayed.
2) I?m not using -primary-config-dir
3) Yes, the two files are there.

Just to note that i?m using a localized (portuguese) version of win xp. The path to lazarus config is
c:\Documents and settings\User\Configura??es locais\Dados de aplicativos\lazarus. (there is spaces in it).
This is equivalent in english version to c:\Documents and settings\User\Local configurations\Application Data\lazarus.

Regards,
Marcelo.

Reply by email

Paul Ishenin
to Paul Ishenin: So after removing the directory you still have problems? I see. Spaces are not a problem…
Paul Ishenin wrote 15 lines
31.01.2010 21:51, Marcelo B de Paula wrote: > The first thing i did when got the error was eliminate the lazarus > config dir and executed lazarus to > create a fresh one. Unfortunatly, doing this, the file was not > created with same error. So after removing the directory you still have problems? > Just to note that i?m using a localized (portuguese) version of win > xp. The path to lazarus config is > c:\Documents and settings\User\Configura??es locais\Dados de > aplicativos\lazarus. (there is spaces in it). > This is equivalent in english version to c:\Documents and > settings\User\Local configurations\Application Data\lazarus. I see. Spaces are not a problem but probably various national symbols like "??". I will try to create configuration path with similar symbols too find the problem place.

The problem place was in the JCF code which reads and writes settings file. Now (r23606) it supports national symbols in the path.

Best regards,
Paul Ishenin.

Reply by email

Marcelo B de Paula

Ok, Paul.

I confirm that the error was solved.
But still have no info in environment options, JCF format settings. Nothing is displayed. (just "file not found").

Anyway, thanks a lot.

Best regards,
Marcelo.

Reply by email

silvioprog
to Marcelo B de Paula: After recently trunk update, i?m getting this error while changing configurations.…

Hi Marcelo,

It happened to my Lazarus also ((K)Ubuntu 9.10). My Lazarus is installed in '/usr/lib/lazarus'; I used:

# chmod 777 -R '/usr/lib/lazarus'

Been the solution. ;)

Silvio Cl?cio -- Contato - silvioprog<gmail/googlewave> Blog estilo mural - silvioclecio.blogspot.com Twitter - twitter.com/silvioprog -- programmer ObjectPascal - silvioprog.blogspot.com -- "Duas coisas instruem o homem, qualquer que seja a sua natureza: o instinto e a experi?ncia. Blaise Pascal. Em 31-01-2010 10:53, Marcelo B de Paula escreveu: > Hello all, > > After recently trunk update, i?m getting this error while changing > configurations. > Environment->Options. > > Strangely, the file is at lazarus configuration directory and it has > full permissions. > > I?m using last Lazarus svn with fpc 2.5.1 in win32. > > Regards, > > Marcelo. -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 4875 bytes Desc: S/MIME Cryptographic Signature URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20100131/167c2196/attachment.bin>

Reply by email

waldo kitty
to Paul Ishenin
Paul Ishenin wrote 8 lines
31.01.2010 23:23, Marcelo B de Paula wrote: > Ok, Paul. > > I confirm that the error was solved. > But still have no info in environment options, JCF format settings. > Nothing is displayed. (just "file not found"). Strange, in my test with russian characters it worked fine.

my question is *where* is the OP seeing this "file not found" report... in the cfg file or somewhere else???

Reply by email

Paul Ishenin
to waldo kitty
waldo kitty wrote
> Strange, in my test with russian characters it worked fine. my question is *where* is the OP seeing this "file not found" report... in the cfg file or somewhere else???

Environment options -> JCF format settings -> "Format file is ..." field.

Best regards,
Paul Ishenin.

Reply by email