Author Topic: Tagging doesn't work correctly SE2011  (Read 3427 times)

mattatthedavidsdotus

  • Community Member
  • Posts: 9
  • Hero Points: 0
Tagging doesn't work correctly SE2011
« on: June 01, 2011, 03:16:02 pm »
I reported this in the beta but I believe it was to late to get it fixed.  However, I have more information that might be helpful so I decided to post again in the main forum.

Background:
In v15.1.0.3 tagging works as exepected.  I have a symbol.  I ctrl+dot and it goes to the tag.
In v16.0.0.6 tagging is broken.  Once the v16 tagging happens when I do ctrl+dot it says the tag is not found.

The new information is that it appears that SE2011 is not finding all the files in the project.
In v15.1.0.3 when I try alt+e (brief mode) it switches to the smart-open window and when I type 'user' (without the quotes) it gives me a list of about 90 files one of them happens to be the one that the tag is in.

In v16.0.0.6 when I do the same thing I get a list of only about 30 files and one of the missing ones happens to be the one with the tag in it.


I don't know if these are related or not but it does seem likely.  This makes the new release fairly unusable for me.

More relevant info:
This is a C# project.
64 bit version of SE2011 (although the 32-bit exhibited the same issue in the beta)
Brief emulation.
Windows Server 2008 SP1

Thanks,
Matt

tv

  • Junior Community Member
  • Posts: 3
  • Hero Points: 0
Re: Tagging doesn't work correctly SE2011
« Reply #1 on: June 02, 2011, 08:54:39 am »
We have also problems with tagging in C++ which worked before v16 !.
We experiented with the C++ parser definitions with no success.
We have seen this also with other proects. We choose Qt as it is
public available for tests.

- tagging of Qt 4.73
  - e.g. QString: not the class defintion is appearing the preview panel, instead some random forward definition
    of class QString is shown
  - if before a symbol of a class or a method is some definition then this line is shown instead

Example 1:
       ....
       QT_BEGIN_NAMESPACE <-- line is marked

       class QString;             <-- this is only a forward definition
       namespace Phonon
       ...

Example 2:

       QT_BEGIN_NAMESPACE <-- line is marked
         ~
         ~
         ~
       class QStringList;        <-- this is only a forward definition

       // Private class
       class QCommonStylePrivate : ....

Example 3:

      template<class T>                        <-- line is marked
      class QStack : public QVector<T>   <-- instead of this line
      {
       public:
       ~

Thomas

Dennis

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 3276
  • Hero Points: 463
Re: Tagging doesn't work correctly SE2011
« Reply #2 on: June 02, 2011, 09:24:47 pm »
Try defining QT_BEGIN_NAMESPACE and QT_END_NAMESPACE in your C/C++ Preprocessing options.  You can define both to the empty string.

tv

  • Junior Community Member
  • Posts: 3
  • Hero Points: 0
Re: Tagging doesn't work correctly SE2011
« Reply #3 on: June 03, 2011, 08:13:24 am »
thats exactly what we've done.

No effect. They have been defined by default after installation.

It also doesn't explain why the cursor is not on the symbol lline.

Thomas

Dennis

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 3276
  • Hero Points: 463
Re: Tagging doesn't work correctly SE2011
« Reply #4 on: June 03, 2011, 01:01:32 pm »
Post your usercpp.h (from your configuration directory) and I'll look it over to see if I can find what is going wrong.

tv

  • Junior Community Member
  • Posts: 3
  • Hero Points: 0
Re: Tagging doesn't work correctly SE2011
« Reply #5 on: June 04, 2011, 10:43:37 am »
For Qt 4.7.3 we fixed it now:

Setting QT_BEGIN_HEADER and QT_END_HEADER also to "empty" fixed the problem.
It was not obvious as this definition did not show up in the files which were shown
by the tagging.
By some trying aournd once a file appeared with this definition.

Something like a debugging feature for this tagging problems would be nice.
Like showing all the surroundings of probably false tag positions.

Now also for other tags than QStrings the line is shown correctly.
This irritated very much.

Thomas

mattatthedavidsdotus

  • Community Member
  • Posts: 9
  • Hero Points: 0
Re: Tagging doesn't work correctly SE2011
« Reply #6 on: June 06, 2011, 02:52:38 pm »
This solution has no effect for me since my issue had nothing to do with Qt or C++.

Thanks,
Matt

Dennis

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 3276
  • Hero Points: 463
Re: Tagging doesn't work correctly SE2011
« Reply #7 on: June 06, 2011, 06:30:11 pm »
Just to give you an update, I added all these and many other QT 4.x specific #defines to our standard pre-processing packages that come with SlickEdit.  They will ship with the next product update.

As for debugging tagging issues, the best thing to do is to go to the file where you expect the symbol to be declared or defined and compare the source code to what you see in the Defs tool window, and keep your eyes open for things that don't match and things that look like pre-processing garbage.