Author Topic: Project parser completes, nohing displayed in "symbols" window  (Read 7394 times)

Offline ravenspoint

  • Multiple posting newcomer
  • *
  • Posts: 16
Project parser completes, nohing displayed in "symbols" window
« on: October 17, 2017, 09:01:54 pm »
As my project grows in complexity, more and more frequently the symbols window fails more and more to display my classes and methods.

Sometimes I can repopulate by requesting a project reparse, or even by restarting codeblocks, but even this is now failing more than ever.

Is there some way to get some useful error messages from the parser, so I can perhaps avoid problems that cause it to fail?


Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Project parser completes, nohing displayed in "symbols" window
« Reply #1 on: October 18, 2017, 01:24:01 am »
Symbols browser is going away, so don't get too attached to it...
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline ravenspoint

  • Multiple posting newcomer
  • *
  • Posts: 16
Re: Project parser completes, nohing displayed in "symbols" window
« Reply #2 on: October 18, 2017, 02:22:06 am »
The symbols browser is vital.  Without it, an IDE is worthless.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Project parser completes, nohing displayed in "symbols" window
« Reply #3 on: October 18, 2017, 08:57:48 am »
Then you'll have to step up and fix it to not crash all the time when built for wx3.x...  8)
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline ravenspoint

  • Multiple posting newcomer
  • *
  • Posts: 16
Re: Project parser completes, nohing displayed in "symbols" window
« Reply #4 on: October 18, 2017, 02:52:58 pm »
This is unhelpful. 

I have been using code::blocks for several years now on all my projects, small and large.  The time seems to have arrived for looking into alternatives.  I am seeing some good things about codelite.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Project parser completes, nohing displayed in "symbols" window
« Reply #5 on: October 18, 2017, 09:09:31 pm »
I guess you're not using it on a linux with wx3.x. Otherwise you've seen many crashes already...
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline ravenspoint

  • Multiple posting newcomer
  • *
  • Posts: 16
Re: Project parser completes, nohing displayed in "symbols" window
« Reply #6 on: October 18, 2017, 11:13:07 pm »
It does not crash, just shows nothing.  Please take a look at the screenshot I posted.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Project parser completes, nohing displayed in "symbols" window
« Reply #7 on: October 18, 2017, 11:53:07 pm »
Yes, I saw that...

Does goto definition or goto declaration work?
Does it work for simple projects?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline ravenspoint

  • Multiple posting newcomer
  • *
  • Posts: 16
Re: Project parser completes, nohing displayed in "symbols" window
« Reply #8 on: October 19, 2017, 03:43:14 pm »
Does goto definition or goto declaration work?

Sorry, I do not know what this means.  I never use goto statements in my code.

Does it work for simple projects?

Yes.  As I said: "As my project grows in complexity, more and more frequently the symbols window fails..."

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Project parser completes, nohing displayed in "symbols" window
« Reply #9 on: October 19, 2017, 04:53:43 pm »
The features is available in the right click menu of the editor -> Goto declaration  or Goto declaration. Please test if these work.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline ravenspoint

  • Multiple posting newcomer
  • *
  • Posts: 16
Re: Project parser completes, nohing displayed in "symbols" window
« Reply #10 on: October 19, 2017, 05:55:11 pm »
Ah!  Yes the "goto declaration", "goto implementation", etc all work fine.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Project parser completes, nohing displayed in "symbols" window
« Reply #11 on: October 19, 2017, 06:13:12 pm »
Even when the symbols browser is empty?

If this is the case we'll need a way to reproduce this problem. So we'll need a simple project which reproduces it.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline ravenspoint

  • Multiple posting newcomer
  • *
  • Posts: 16
Re: Project parser completes, nohing displayed in "symbols" window
« Reply #12 on: October 19, 2017, 06:50:30 pm »
Yes, even when the symbols window is empty.

The problem does not appear with small projects.  The project where this is most of a problem has been under development for two years and has 200,000 lines. The problem started appearing maybe six months ago and in the last week or so is now occurring always.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Project parser completes, nohing displayed in "symbols" window
« Reply #13 on: October 19, 2017, 08:08:37 pm »
You have three options share the project, debug it yourself, find an open source project which has the same problem.
Without a way to reproduce this we can't do much...
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline ravenspoint

  • Multiple posting newcomer
  • *
  • Posts: 16
Re: Project parser completes, nohing displayed in "symbols" window
« Reply #14 on: October 19, 2017, 08:14:21 pm »
I have been mucking about, trying to construct a 'simple' project that shows this problem.  No success, however I have gained a bit of insight into the 'symbols' window that might be helpful.

In a workspace with several projects, the symbol window display changes as I change the focus between the editor windows for different source files.  It seems that the intention is to always show the most relevant symbols by assuming that each source file is associated with one, and one only, project so that the symbols displayed need only be the ones for the project that is associated with the source file that has the focus.

The assumption there is incorrect.  The reason that several projects are present in one workspace is that they are tightly coupled - meaning, in my case at least, that the projects SHARE source files.  So, if the focus is on a shared source file, the symbol window can get very confused

IMHO this feature is more confusing then useful and may be causing unnecessary problems for the symbols window.  I would like to switch the feature off.  I would be happy to see either all the symbols in the workspace, or the symbols of the active project, no matter what source file I happen to be looking at.  This would, at the least, remove the annoying flickering in the symbols window as I browse around the source files, and maybe even  "fix" the empty symbol window problem that is bringing my work to a halt.

Do you know if there is a way to switch off the feature where the symbols window displays the symbols for the project that a focused source file is assumed to belong to?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Project parser completes, nohing displayed in "symbols" window
« Reply #15 on: October 19, 2017, 08:26:50 pm »
Do you know if there is a way to switch off the feature where the symbols window displays the symbols for the project that a focused source file is assumed to belong to?
Nope. I don't use it, ever. I've never used it in Visual Studio either where it works better.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline ravenspoint

  • Multiple posting newcomer
  • *
  • Posts: 16
Re: Project parser completes, nohing displayed in "symbols" window
« Reply #16 on: October 19, 2017, 08:30:19 pm »
Attached is a smallish project that shows the problem.

 - Open project and let parser complete.
 
 - Open main.cpp in editor window

 - Open symbols window - no symbols visible

 - Open CD2A.h - symbols appear

 - Alternate focus between source file editor windows - symbols vanish and reappear.

( Note: I have done considerable violence to this project to reduce its size and complexity.  It will still compile but it will not link and the code does not make a great deal of sense.  You will need a recent release of the boost libraries )

Offline ravenspoint

  • Multiple posting newcomer
  • *
  • Posts: 16
Re: Project parser completes, nohing displayed in "symbols" window
« Reply #17 on: October 19, 2017, 08:31:26 pm »
I don't use it,

??  What don't you use?  The symbols browser? 

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Project parser completes, nohing displayed in "symbols" window
« Reply #18 on: October 19, 2017, 08:33:22 pm »
Yep, I don't use it. I use alt-g, ctrl-f, ctrl-shift-f (set to thread search) and ctrl-./ctrl-shift-.
And when something is more complex I look at the images generated for class hierarchies by doxygen.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline ravenspoint

  • Multiple posting newcomer
  • *
  • Posts: 16
Re: Project parser completes, nohing displayed in "symbols" window
« Reply #19 on: October 19, 2017, 08:49:25 pm »
If you do not use the symbol browser, then why am I discussing problems with the symbol browser with you!

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7590
    • My Best Post
Re: Project parser completes, nohing displayed in "symbols" window
« Reply #20 on: October 19, 2017, 09:41:38 pm »
If you do not use the symbol browser, then why am I discussing problems with the symbol browser with you!

Likely because you want to get the problem fixed.

Note: If you do not wish to have the problem fixed; I have no idea why you are posting.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline ravenspoint

  • Multiple posting newcomer
  • *
  • Posts: 16
Re: Project parser completes, nohing displayed in "symbols" window
« Reply #21 on: October 19, 2017, 10:04:21 pm »
I certainly want to have the problem fixed.  It is making codeblocks almost useless to me. 

Do you, or someone who does actually use the symbol browser for large complex multiple project workspaces, have any suggestions which would be helpful?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Project parser completes, nohing displayed in "symbols" window
« Reply #22 on: October 19, 2017, 11:46:32 pm »
If you do not use the symbol browser, then why am I discussing problems with the symbol browser with you!
Because I'm the only one posting in the topic.

I've tried your project and I can't make it break.
What is selected in the View choice control?
Do you have the one parser per workspace enabled?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline ravenspoint

  • Multiple posting newcomer
  • *
  • Posts: 16
Re: Project parser completes, nohing displayed in "symbols" window
« Reply #23 on: October 20, 2017, 05:13:55 pm »
The "one parser per workspace" option looks interesting.

It was a little hard to find - Settings | Editor | Code completion | C/C++ Parser

but once found and selected, I can see my symbols again!