Problem with config file

Home Forums cherrytree Problem with config file

This topic contains 8 replies, has 3 voices, and was last updated by  Klaas Vaak 5 months, 2 weeks ago.

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #124691

    Klaas Vaak
    Member

    Today I could not open my CT files because they could not access the config file. The cherrytree.exe.log file is very long, but a regular line is

    ConfigParser.ParsingError: File contains parsing errors: C:\Users\Peter\AppData\Roaming\cherrytree\config.cfg

    So I took out the config file, and my 2 CT files opened, although the settings were off. I have had log file comments regularly which I ignored without any problems. I only edit & add text, nothing else.

    So is there something special that I need to observe?

    #124693

    Cosmo
    Member

    To my understanding the quoted line does say not more than, that there is a problem in the config file, so that CT cannot make any sense (parse) out of them. It does not give a clue, what is wrong and even less, why.

    Do you cloes CT properly, before you shut down the system? Perhaps CT did not have enough rime to write the config file properly.

    #124698

    Klaas Vaak
    Member

    @cosmo: like I said, I regularly get an error message at the end when I close CT, but ignore it without any negative consequences, except this time. I sometimes close CT by clicking on the red cross in the top right-hand corner, but more regularly with an AHK script that closes all my open apps.

    This is the text of the script:
    SetTitleMatchMode, RegEx

    GroupAdd MultiClose, ahk_exe i)(onenote|calibre|opera|FoxitReader|quiterss|word|cherrytree|markdownpad2|fossamail)(.*)

    !q::WinClose, ahk_group MultiClose

    The latest error happened after a script-induced closure. So, initially I was worried when I could not open my beloved CT files, but when, after removing the config file, I was able to open them I breathed a sigh of relief. The only annoyance was that some of my settings, though not all, had been reset to default, which means I have to reset them to my requirements.

    Anyway, I would like to avoid messing up the config file. Any ideas?

    #124708

    Cosmo
    Member

    Does the problem also happen, if you quit CT the normal way?

    #124709

    Klaas Vaak
    Member

    What do you mean by “the normal way”: menu/File/Quit?
    If so, then no, I does not seem to happen. But that means I cannot automate the closing of CT, correct?

    #124712

    Cosmo
    Member

    Yes, normal way is by the methods, which are built in the program or the OS. If it happens only with the script, the cause obviously resides there.

    #124713

    eureka
    Member

    Have you tried changing the order of shutdown in AHK script?

    GroupAdd MultiClose, ahk_exe i)(onenote|calibre|opera|FoxitReader|quiterss|word|cherrytree|markdownpad2|fossamail)(.*)

    might be ..

    GroupAdd MultiClose, ahk_exe i)(cherrytree|calibre|opera|FoxitReader|quiterss|word|cherrytree|markdownpad2|fossamail)(.*)

    or perhaps dedicate a line of script to closing just cherrytree before executing the next line which is group close.

    #124714

    Klaas Vaak
    Member

    Hey Eureka, thanks for the suggestions. I’ll try changing the shutdown order 1st, see if that helps. If not, I’ll try a separate, dedicated line for CT.

    #124726

    Klaas Vaak
    Member

    Putting CT as the 1st to be closed down with the script seems to be working.
    Thanks for the tip Eureka :-))

Viewing 9 posts - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.