Author Topic: Help Plugin loosing it's settings?  (Read 9606 times)

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Help Plugin loosing it's settings?
« on: July 04, 2006, 02:49:54 pm »
Dear all,
with current head (Version 1.0 revision 2667 ()   gcc 3.4.5 Windows/unicode) I'm having the following problem:
I realised all my help files that I had setup are gone. I looked in the C::B config file and indeed the help_plugin section was empty. So I copied this section back from a backup copy but when I restarted C::B it was gone again. So I setup a single help file again "manually" inside the C::B configuration (Settings->Environment->Help files). However - the help file is no shown in the menu. Strange is that the help file I have setup "manually" remains in the configuration allthough it's not present inside C::B.
Anyone else experiencing the same?
With regards, Morten.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: Help Plugin loosing it's settings?
« Reply #1 on: July 04, 2006, 08:02:03 pm »
...back at home from work this happens here, too (on a different system). :(
In addition(without any manual modification) I found this section in the config file:
Code
			<help0>
<help1>
<help1>
<help2>
<help2>
<help3>
<help3>
<help4>
<help4>
<help5>
<help5>
<help6>
<help6>
<help7>
<help7>
<help8>
<help8>
<help9>
<help9>
<help10>
<help10>
<help11>
<help11>
<help12>
<help12>
<help13>
<help13>
<help14>
<help14 />
</help14>
</help13>
</help13>
</help12>
</help12>
</help11>
</help11>
</help10>
</help10>
</help9>
</help9>
</help8>
</help8>
</help7>
</help7>
</help6>
</help6>
</help5>
</help5>
</help4>
</help4>
</help3>
</help3>
</help2>
</help2>
</help1>
</help1>
</help0>
</help0>
...seems something is broken badly.
« Last Edit: July 04, 2006, 08:04:00 pm by MortenMacFly »
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline lubos

  • Almost regular
  • **
  • Posts: 131
Re: Help Plugin loosing it's settings?
« Reply #2 on: July 04, 2006, 08:39:08 pm »
how do you have rev 2667? only 2661 is actual rev no?
but i dont have that problem, all is ok on my computer.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: Help Plugin loosing it's settings?
« Reply #3 on: July 04, 2006, 08:54:40 pm »
how do you have rev 2667? only 2661 is actual rev no?
Compiled from SVN, actually it is revision 2673 meanwhile...
I've started debugging into this bastard. It seems the enumeration of the keys does not work... I've replaced:
Code
  wxArrayString list = conf->EnumerateSubPaths(_T("/"));
with:
Code
  wxArrayString all = conf->EnumerateKeys(_T("/"));
...and made all appropriate changes;
...tried to write into a sub-section "files"
...but all this does not work eigther...?!
With regards, Morten.
« Last Edit: July 04, 2006, 08:58:09 pm by MortenMacFly »
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: Help Plugin loosing it's settings?
« Reply #4 on: July 04, 2006, 09:23:48 pm »
It seems the enumeration of the keys does not work... I've replaced:
Code
wxArrayString list = conf->EnumerateSubPaths(_T("/"));
with:
Code
wxArrayString all = conf->EnumerateKeys(_T("/"));
Enumeration of keys does work. However, EnumerateSubPaths really does what its name suggests. It enumerates subpaths, not keys. :)
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: Help Plugin loosing it's settings?
« Reply #5 on: July 04, 2006, 09:28:32 pm »
of keys does work. However, EnumerateSubPaths really does what its name suggests. It enumerates subpaths, not keys. :)
Thanks Thomas.
Meanwhile i've fixed this bug and will soon submit the changes. It works (for me) again... ;-)
With regards, Morten.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: Help Plugin loosing it's settings?
« Reply #6 on: July 04, 2006, 09:37:34 pm »
Well, I've just decided not to apply this patch to SVN but first to provide it here for inspection. I'm not the author of this plugin so maybe Ceniza (the current maintainer?!) will do this. In addition I've enumeratd the help files in an own section "files". This breaks existing settings but looks more convenient, at least to me.
If Ceniza agrees he can apply this in SVN, too.
With regards, Morten.

[attachment deleted by admin]
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: Help Plugin loosing it's settings?
« Reply #7 on: July 04, 2006, 09:41:46 pm »
Try 2675 :)

(edit: sorry, had that one committed before I saw you had a patch)
« Last Edit: July 04, 2006, 09:43:53 pm by thomas »
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: Help Plugin loosing it's settings?
« Reply #8 on: July 04, 2006, 09:48:14 pm »
Try 2675 :)
(edit: sorry, had that one committed before I saw you had a patch)
...don't worry, that's a proper solution, too. So just forget about my patch unless somebody really wants to seperate the "files" from "other" settings... :lol:

BTW: Thomas, shouldn't we watch TV now?!

Edit: BTW: It hasn't been the first time today that I've been too lame... ;-)
« Last Edit: July 04, 2006, 09:52:17 pm by MortenMacFly »
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: Help Plugin loosing it's settings?
« Reply #9 on: July 04, 2006, 09:51:39 pm »
BTW: Thomas, shouldn't we watch TV now?!
TV! Bah! Humbug!
Actually I am going to water my lawn now, and after that I'll chill out with a bottle of wine :)
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: Help Plugin loosing it's settings?
« Reply #10 on: July 04, 2006, 09:56:13 pm »
Humbug!
Honestly, I didn't know so far that this is an english word with the same meaning, too... :lol: (http://dict.leo.org/ende?search=humbug)
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: Help Plugin loosing it's settings?
« Reply #11 on: July 04, 2006, 10:06:16 pm »
Quote
“A merry Christmas, uncle! God save you!” cried a cheerful voice. It was the voice of Scrooge’s nephew, who came upon him so quickly that this was the first intimation he had of his approach.

“Bah!” said Scrooge, “Humbug!”

Charles Dickens, A Christmas Carol :)
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."