Author Topic: Symbols browser not updated correctly  (Read 3551 times)

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Symbols browser not updated correctly
« on: May 23, 2006, 03:41:49 pm »
Dear all,
I've found an issue concerning the symbols browser that I'm trying to track down. Here is the description:
- in the symbols browser, enable to parse the "Current file's symbols only"
- open two files in the editor (notice the symbols browser is updated correctly)
- close the active editor file using the "x" -> notice the symbols browser still has the symbols of this file, allthough the new (second) file is now active
- close the second active editor file -> notice allthough there are no more files open, the symbols browser still shows symbols

I guess the reason is because the parser in the code completion plugin only listens to the "OnEditorActivated" event (codecompletion and native parser). To solve this problem it may make sense to listen to "OnEditorClosed", too. Still, what wonders me:
Why is the symbols browser is not updated after closing the first file -> the second editor is activated by then, so the event "OnEditorActivated" should be fired which would cause the symbols browser to be updated, but it doesn't. So there may be another issue?!

With regards, Morten.
« Last Edit: May 23, 2006, 03:44: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