Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

Categories and file types defined lost on C::B restart

(1/4) > >>

MortenMacFly:
Dear all,
If I setup a new file type using "Project" - "Project tree" - "Edit file types categories" (by the way: the menu entry has a space too much) then this works perfectly for the current session. Hence if I restart C::B they are always lost. I've had questioned this in another thread already but I am unable to find this thread (but it was a different topic, anyway). What looks very strange to me it that within the C::B config-file the new file type is present and doesn't get lost. Any ideas?

Morten.

Edit: I guess I have tracked down the issue to filegroupsandmasks.cpp: It seems the file groups are tried to be read from a sub-group called "/file_groups" of "/project_manager" but written to directly to "/project_manager"... if I'm right...?!

MortenMacFly:
I think I was right, I' ve tracked down the reson to filegropusandmasks.cpp. I've filed a bug report on sourceforge and attached a patch to fix this issue there (https://sourceforge.net/tracker/?func=add&group_id=126998&atid=707416). Applying this fix makes the feature work again. Hence there will be remaining artefacts in the config file that should be deleted manually: section "<project_manager>", every sub-section that starts with "<groupX>" whereas "X" is an integer-number.

Morten.

thomas:

--- Quote from: MortenMacFly on December 18, 2005, 06:09:43 pm ---If I setup a new file type using "Project" - "Project tree" - "Edit file types categories"
--- End quote ---
Wow, you're telling me about an entire submenu which I had never seen :)


--- Quote ---(by the way: the menu entry has a space too much)

--- End quote ---
No, it has not?

I'll look into it after dinner (~20 mins). Thanks for pointing out. :)

MortenMacFly:

--- Quote from: thomas on December 18, 2005, 07:08:48 pm ---Wow, you're telling me about an entire submenu which I had never seen :)

--- End quote ---
I am using this regulary to add the "Fortran sources" file type as described also in the WiKi. It's very helpful!

--- Quote from: thomas on December 18, 2005, 07:08:48 pm ---I'll look into it after dinner (~20 mins). Thanks for pointing out. :)

--- End quote ---
I think this was an easy one that's why I was able to fix it... :lol:

Morten.
Edit: Mahlzeit!

thomas:
Done. Thanks :)

Navigation

[0] Message Index

[#] Next page

Go to full version