Recent

Author Topic: [SOLVED] codetools config file not found - using defaults  (Read 816 times)

Aruna

  • Hero Member
  • *****
  • Posts: 519
[SOLVED] codetools config file not found - using defaults
« on: July 26, 2024, 12:49:17 pm »
Hi, I just noticed this.
Code: Bash  [Select][+][-]
  1. aruna@debian:~/lazarus3/lazarus$ ./lazarus --primary-config-path=~/.lazarus_test
  2. SetPrimaryConfigPath NewValue="~/.lazarus_test" expanded to "/home/aruna/.lazarus_test"
  3. Hint: (lazarus) [TMainIDE.ParseCmdLineOptions] PrimaryConfigPath="/home/aruna/.lazarus_test"
  4. Hint: (lazarus) [TMainIDE.ParseCmdLineOptions] SecondaryConfigPath="/etc/lazarus"
  5. Looking for code tools config file:  "/home/aruna/.lazarus_test/codetoolsoptions.xml"
  6. NOTE: codetools config file not found - using defaults
  7. NOTE: help options config file not found - using defaults

So far I have had no issues. I would like to make this go away.
Code: Bash  [Select][+][-]
  1. codetools config file not found - using defaults
« Last Edit: July 26, 2024, 02:25:00 pm by Aruna »

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 10563
  • Debugger - SynEdit - and more
    • wiki
Re: codetools config file not found - using defaults
« Reply #1 on: July 26, 2024, 12:53:05 pm »
I haven't looked at it (so apologies for a "guess" response, and sorry if I am wrong and it does not work), but just from the wording I would say:

Menu: Tools > Options > Codetools
Change any settings, close the dialog, restart the IDE. It should save you settings, and there should be a config.

Similar for the help.

Aruna

  • Hero Member
  • *****
  • Posts: 519
Re: codetools config file not found - using defaults
« Reply #2 on: July 26, 2024, 01:29:26 pm »
Quote
quote author=Martin_fr link=topic=68022.msg524814#msg524814 date=1721991185]
I haven't looked at it (so apologies for a "guess" response, and sorry if I am wrong and it does not work), but just from the wording I would say:

Menu: Tools > Options > Codetools
Change any settings, close the dialog, restart the IDE. It should save you settings, and there should be a config.

Similar for the help.
Thank you it worked. But I do not see a config in my folder. Where does Lazarus put the config? After fixing the Codetools by folowing your instructions the help error message went away by itself. I did not have to do anything.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 10563
  • Debugger - SynEdit - and more
    • wiki
Re: codetools config file not found - using defaults
« Reply #3 on: July 26, 2024, 02:09:34 pm »
- On Linux, there should be a  .lazarus folder in your home dir.
- On Windows, there is a lazarus folder in %AppData% (which is inside the user folder).

You can go to menu: View > IDE Internals > About IDE
It shows a lot of values in a text field. One of the values is called
Code: Text  [Select][+][-]
  1. Global IDE options:
  2. Primary config directory=....

And that is where the config is.

You can start lazarus with an alternative config (e.g., for testing) using 
Code: Text  [Select][+][-]
  1. lazarus --pcp=myconfdir

If you want a 2nd installation: https://wiki.freepascal.org/Multiple_Lazarus#Using_lazarus.cfg_file

Aruna

  • Hero Member
  • *****
  • Posts: 519
[SOLVED] codetools config file not found - using defaults
« Reply #4 on: July 26, 2024, 02:23:48 pm »
You can go to menu: View > IDE Internals > About IDE
It shows a lot of values in a text field. One of the values is called
Code: Text  [Select][+][-]
  1. Global IDE options:
  2. Primary config directory=....

And that is where the config is.
Perfect, Thank you! I was looking in the wrong folder :-[

 

TinyPortal © 2005-2018