User forums > Using Code::Blocks
C::B crash (Settings-->Editor)
killerbot:
it's weird that compiler/linker/loader/ ??? is mixing them up.
As said, no need to change the plug-in, I adjusted the name of the structure in the projectfileoptionsdlg.cpp :
LanguageDef --> SLanguageDef (S from struct).
How about the following ideas :
- plug-ins : use pimpl idiom
- put the plug-in implementation in a seperate namespace
Now it was some kind of obvious because of the copy, but it might well be possible that a type might be created in the sdk and a plug-in (or in several plug-ins).
Should we make a guideline out of this : namespaces !!
- for that matter we could put the CB core/code also in a namespace (lot's of files to adjust though), but it would be better. Maybe it's easier to start out with the plug-ins.
What do you think ?
[edit] : could you give it a try with the original codestats code and rev 2367 ?
Michael:
--- Quote from: killerbot on April 21, 2006, 09:14:57 am ---it's weird that compiler/linker/loader/ ??? is mixing them up.
As said, no need to change the plug-in, I adjusted the name of the structure in the projectfileoptionsdlg.cpp :
LanguageDef --> SLanguageDef (S from struct).
How about the following ideas :
- plug-ins : use pimpl idiom
- put the plug-in implementation in a seperate namespace
Now it was some kind of obvious because of the copy, but it might well be possible that a type might be created in the sdk and a plug-in (or in several plug-ins).
Should we make a guideline out of this : namespaces !!
- for that matter we could put the CB core/code also in a namespace (lot's of files to adjust though), but it would be better. Maybe it's easier to start out with the plug-ins.
What do you think ?
--- End quote ---
I am not an expert with C++ namespaces, but their implementation within C::B would probably require some code re-designing.
--- Quote from: killerbot on April 21, 2006, 09:14:57 am ---[edit] : could you give it a try with the original codestats code and rev 2367 ?
--- End quote ---
No crashes, but codestats plugin does not work (it does not crash anyway). Still get the warning dialog "The project is empty" (even if it is not).
The only way to make happy both (codestats plugin & Settings-->Editor) was to add wxString name; to the structure in the sdk.... :?
Best wishes,
Michael
Pecan:
--- Quote from: Michael on April 21, 2006, 03:38:39 pm ---No crashes, but codestats plugin does not work (it does not crash anyway). Still get the warning dialog "The project is empty" (even if it is not).
The only way to make happy both (codestats plugin & Settings-->Editor) was to add wxString name; to the structure in the sdk.... :?
--- End quote ---
Please don't do that. Give me some more time. I'll get
this fixed.
thanks
pecan
Michael:
--- Quote from: Pecan on April 21, 2006, 03:45:13 pm ---
--- Quote from: Michael on April 21, 2006, 03:38:39 pm ---No crashes, but codestats plugin does not work (it does not crash anyway). Still get the warning dialog "The project is empty" (even if it is not).
The only way to make happy both (codestats plugin & Settings-->Editor) was to add wxString name; to the structure in the sdk.... :?
--- End quote ---
Please don't do that. Give me some more time. I'll get
this fixed.
--- End quote ---
I do no want to do that :). I just wanted to say what seems to work for both at this moment. There should be something that prevent the codestats to work. The project files are parsed, but then the warning message appears. This is strange. If the project is empty why parsing the files takes such a lot of time (e.g., C::B cbp)?
Best wishes,
Michael
Pecan:
--- Quote from: Michael on April 21, 2006, 03:59:50 pm ---There should be something that prevent the codestats to work. The project files are parsed, but then the warning message appears. This is strange. If the project is empty why parsing the files takes such a lot of time (e.g., C::B cbp)?
--- End quote ---
Actually, it is working. Only very wierdly.
Make sure to clear data between <codestat> and </codestat> out of the
default.conf (backup defautl.conf first please)
Start CB with codestat enabled.
Open a project.
Invoke Plugins/Code Statistics menu iitem.
Do *NOT* invoke Settings/Editor
(It scans and reports for me).
(You can do this many times)
Now, invoke Setting Editor/Code Stat Settings
Note that all but the "name" fields are blank
Click on OK
Now when you invoke Plugins/CodeStat it reports there is no project
because it has no fields to compare against except "blank". All its settings have been set to blank.
There is a logic err somewhere. Will look at that now...
thanks
pecan
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version