Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 Bug report: CString class members are not shown
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

okgnew
New Member

8 Posts

Posted - Apr 24 2006 :  10:01:30 AM  Show Profile  Reply with Quote
VA_X.dll file version 10.2.1445.0 built 2006.04.12
Licensed to: VA X: [email protected] (10-user license)
Support ends 2006.10
VAOpsWin.dll version 1.3.2.4
VATE.dll version 1.0.4.15
MSDev.exe version 6.0.9782.2
Devshl.dll version 6.0.9782.0
Devedit.pkg version 6.0.9782.0
Font: Courier New 19(Pixels)
Comctl32.dll version 5.82.2900.2180
WindowsNT 5.1 Build 2600 Service Pack 2
4 processors

Platform: Win32 (x86)
Stable Includes:
C:\\Program Files\\Microsoft Visual Studio\\VC98\\INCLUDE;
C:\\Program Files\\Microsoft Visual Studio\\VC98\\MFC\\INCLUDE;
C:\\Program Files\\Microsoft Visual Studio\\VC98\\ATL\\INCLUDE;
C:\\PROGRAM FILES\\MICROSOFTPLATFORMSDKWINDOWSXPSP2\\INCLUDE;

Library Includes:
C:\\Program Files\\Microsoft Visual Studio\\VC98\\MFC\\SRC;
C:\\Program Files\\Microsoft Visual Studio\\VC98\\MFC\\INCLUDE;
C:\\Program Files\\Microsoft Visual Studio\\VC98\\ATL\\INCLUDE;
C:\\Program Files\\Microsoft Visual Studio\\VC98\\CRT\\SRC;

Other Includes:

Bug report:
CString class members are not shown in VC++ MFC projects.
This bug is reproducible in VS 6.0 and VS.NET 2003.

Steps to reproduce:
1. Create an MFC C++ project in VS 6.0 and VS.NET 2003.
2. In any C++ file and method create a local CString variable (e.g. csTest).
3. Go to the next line and type csTest. you will see some garbage in the suggestions box. No CString members are listed there.

It did work in the build 1418, but broken in all latest builds.

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Apr 24 2006 :  6:42:55 PM  Show Profile  Reply with Quote
odd. i have just tried this in an existing MFC application, using VS2003 and VA 1445 and i am getting suggestions just fine:



do you have any other plugins installed?
have you tried rebuilding VA's symbol database and clearing the cache? VA options -> performance -> general

the only other thing that leaps out at me is the line:

C:\\PROGRAM FILES\\MICROSOFTPLATFORMSDKWINDOWSXPSP2\\INCLUDE;

in your stable includes. is there a redefinition of CString in this directory? what did you install to produce this directory? it is possible this is related to the problem you are seeing.

zen is the art of being at one with the two'ness

Edited by - feline on Apr 24 2006 6:44:48 PM
Go to Top of Page

okgnew
New Member

8 Posts

Posted - Apr 25 2006 :  04:50:21 AM  Show Profile  Reply with Quote
> do you have any other plugins installed?
No.

> have you tried rebuilding VA's symbol database and clearing the
> cache? VA options -> performance -> general
I tried it.
And now it works in VS.NET 2003.
But it still does not work in VS 6.0 (I have sent a screenshot to support)

> the only other thing that leaps out at me is the line:
> C:\\PROGRAM FILES\\MICROSOFTPLATFORMSDKWINDOWSXPSP2\\INCLUDE;
> in your stable includes.
> is there a redefinition of CString in this directory?
No.

> what did you install to produce this directory?
MS Platform SDK for Windows XP SP2

> it is possible this is related to the problem you are seeing.
No, removing it did not help.
Go to Top of Page

okgnew
New Member

8 Posts

Posted - Apr 25 2006 :  04:58:18 AM  Show Profile  Reply with Quote
It looks like in VS 6.0 it shows suggestions from std::string instead of CString.
At least when I do:
{
CString csS;
string sS;
csS. // The same items in suggestion list box here
sS. // and here
}

Edited by - okgnew on Apr 25 2006 04:59:08 AM
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Apr 25 2006 :  6:56:07 PM  Show Profile  Reply with Quote
i have just tried this on VC6, C++ and VA 1445 and i am definitely getting different lists of functions. going to the bottom of the lists one has ~CString() and one has ~basic_string()

do you have time to try creating a new console project and see if you can reproduce the problem there? i am wondering if this is somehow project specific, or something like that.

zen is the art of being at one with the two'ness
Go to Top of Page

sun49
Starting Member

1 Posts

Posted - Apr 26 2006 :  04:10:02 AM  Show Profile  Reply with Quote
quote:
Originally posted by okgnew

VA_X.dll file version 10.2.1445.0 built 2006.04.12
Licensed to: VA X: [email protected] (10-user license)
Support ends 2006.10
VAOpsWin.dll version 1.3.2.4
VATE.dll version 1.0.4.15
MSDev.exe version 6.0.9782.2
Devshl.dll version 6.0.9782.0
Devedit.pkg version 6.0.9782.0
Font: Courier New 19(Pixels)
Comctl32.dll version 5.82.2900.2180
WindowsNT 5.1 Build 2600 Service Pack 2
4 processors

Platform: Win32 (x86)
Stable Includes:
C:\\Program Files\\Microsoft Visual Studio\\VC98\\INCLUDE;
C:\\Program Files\\Microsoft Visual Studio\\VC98\\MFC\\INCLUDE;
C:\\Program Files\\Microsoft Visual Studio\\VC98\\ATL\\INCLUDE;
C:\\PROGRAM FILES\\MICROSOFTPLATFORMSDKWINDOWSXPSP2\\INCLUDE;

Library Includes:
C:\\Program Files\\Microsoft Visual Studio\\VC98\\MFC\\SRC;
C:\\Program Files\\Microsoft Visual Studio\\VC98\\MFC\\INCLUDE;
C:\\Program Files\\Microsoft Visual Studio\\VC98\\ATL\\INCLUDE;
C:\\Program Files\\Microsoft Visual Studio\\VC98\\CRT\\SRC;

Other Includes:

Bug report:
CString class members are not shown in VC++ MFC projects.
This bug is reproducible in VS 6.0 and VS.NET 2003.

Steps to reproduce:
1. Create an MFC C++ project in VS 6.0 and VS.NET 2003.
2. In any C++ file and method create a local CString variable (e.g. csTest).
3. Go to the next line and type csTest. you will see some garbage in the suggestions box. No CString members are listed there.

It did work in the build 1418, but broken in all latest builds.




me too
Go to Top of Page

okgnew
New Member

8 Posts

Posted - Apr 26 2006 :  04:51:58 AM  Show Profile  Reply with Quote
quote:
Originally posted by feline

do you have time to try creating a new console project and see if you can reproduce the problem there? i am wondering if this is somehow project specific, or something like that.



You are right, feline.
It's a project specific bug.
I have tried a tiny MFC console project, and everything works fine.
But it still broken in all our projects.
I can zip and email you one of my projects, if you want.
Go to Top of Page

Cuong
New Member

8 Posts

Posted - Apr 26 2006 :  06:18:24 AM  Show Profile  Reply with Quote
I have the same problem.

VA only displays the CString class members but it does not display the CString base class members (CSimpleString). E.g It does not display theses methods:
IsEmpty()
GetLength()
....

I am using the lastest version of VA in VS2003 and VS2005, Windows XP (SP2).

Go to Top of Page

okgnew
New Member

8 Posts

Posted - Apr 26 2006 :  3:40:09 PM  Show Profile  Reply with Quote
quote:
Originally posted by Cuong

I have the same problem.

VA only displays the CString class members but it does not display the CString base class members (CSimpleString). E.g It does not display theses methods:
IsEmpty()
GetLength()
....



Yes, you are right, Cuong.
IsEmpty() and GetLength() are not listed.
And they are the most frequently used method, so this problem is very annoying.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Apr 30 2006 :  2:30:34 PM  Show Profile  Reply with Quote
as expected i am seeing both IsEmpty() and GetLength() here on a CString instance.

as a temporary work around can you try turning on:

VA Options -> Text Editor -> listboxes -> get content from default intellisense

and see if this makes any difference?

quote:
Originally posted by okgnew

It's a project specific bug.
I have tried a tiny MFC console project, and everything works fine.
But it still broken in all our projects.
I can zip and email you one of my projects, if you want.



please, this sounds ideal. I have just sent you an email via the forum. if you reply to that email with the zip file attached it should reach me just fine. i can then test the project here and see what happens. hopefully i will be able to reproduce the problem and we can then work from there.

zen is the art of being at one with the two'ness
Go to Top of Page

Cuong
New Member

8 Posts

Posted - Apr 30 2006 :  8:24:24 PM  Show Profile  Reply with Quote
Thank feline

After turn on "get content from default intellisense", everything is OK.

Why VAX does not turn on this feature by default???
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - May 01 2006 :  09:21:10 AM  Show Profile  Reply with Quote
the IDE's parser and VA's parser work differently. both parsers can have problems with heavy template code, but they tend to have different problems. over time VA's parser has gotten steadily better, while the VC6 parser has not changed.

basically it is there to give you the option, depending on your specific code base one parser tends to give better results than the other, so you can choose the one you want.

for most people VA's parser gives better results, but not everyone.

zen is the art of being at one with the two'ness
Go to Top of Page

okgnew
New Member

8 Posts

Posted - May 11 2006 :  06:05:33 AM  Show Profile  Reply with Quote
Feline,
sorry for the delay - I was on holidays.
I have just sent you an email with my project attached,
so you can reproduce CString problems.
Go to Top of Page

AdyR
Ketchup Master

United Kingdom
75 Posts

Posted - May 16 2006 :  09:33:08 AM  Show Profile  Reply with Quote
I see the same problem where IsEmpty(), etc are missing.

VS2003 and VAX 1445.

Ady
Go to Top of Page

PatLuja
Tomato Guru

Belgium
416 Posts

Posted - May 17 2006 :  03:46:42 AM  Show Profile  Reply with Quote
Hello all,

Feline, I see the same problem in some projects. I can't really pinpoint when I see them and when I don't see them.

I hope it will be solved soon.

With kind regards,
Patrick Luja
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - May 17 2006 :  4:27:39 PM  Show Profile  Reply with Quote
okgnew i have your email, thank you for that.

following your instructions i am definitely seeing the same problem. looking back over this thread it occurred to me to jump to the bottom of the completion list.

using VS2003, VA 1445 and the solution from okgnew when i have:

CString strFred;
strFred.|

and then i go to the bottom of the completion listbox, the bottom two items are:

~basic_string
~CStringT

can people try turning on:

VA Options -> Text Editor -> listboxes -> get content from default intellisense

and see if it helps? okgnew in the project you sent me this does not help, but does it help for you?

case=1207

zen is the art of being at one with the two'ness
Go to Top of Page

okgnew
New Member

8 Posts

Posted - May 18 2006 :  06:42:32 AM  Show Profile  Reply with Quote
Feline,
turning on "get content from default intellisense" did not help me.

And yes, at the bottom of the completion listbox, the last two items are:
~basic_string
~CStringT

As far as I know, CStringT is a base class for CString, so its members should be listed.
However, basic_string class should not be there at all.

Edited by - okgnew on May 18 2006 06:43:21 AM
Go to Top of Page

AdyR
Ketchup Master

United Kingdom
75 Posts

Posted - May 18 2006 :  07:08:56 AM  Show Profile  Reply with Quote
quote:
can people try turning on:

VA Options -> Text Editor -> listboxes -> get content from default intellisense

and see if it helps? okgnew in the project you sent me this does not help, but does it help for you?


In the main project we work on (90% of our time) we have a translation system that overrides the CString class and this completely stops the default intellisense working for CStrings so the VAX intellisense is better even though it is missing a few items.
On other projects that donG??t use the translation system then the default intellisense appears to be complete.
Generally I find the VAX intellisense is much better than the default for many other classes so permanently switching back to the default is not something I want to do.

Ady
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - May 18 2006 :  3:13:16 PM  Show Profile  Reply with Quote
I have a work around for this from the developers, Kostya i have emailed you the file and the details for you to try if you are interested. the official fix should turn up in the next build or two of VA.

AdyR i can email you the work around as well if you are interested. simply email me via the forum and i will reply with the file and instructions. however i do not know if the work around, or the fix, will work for you since your situation sounds a bit more complex. you are welcome to try, but if it does not what are the options for getting a test project that shows off this problem for us to test?

zen is the art of being at one with the two'ness
Go to Top of Page

okgnew
New Member

8 Posts

Posted - May 19 2006 :  12:41:55 PM  Show Profile  Reply with Quote
feline,
the workaround fixes the problem in VS.NET 2003.
But it did not fix the problem in VS 6.0
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - May 21 2006 :  5:34:00 PM  Show Profile  Reply with Quote
confirmed. i am seeing the same problem in VC6 as before. hopefully the code fix, there was one as well as this work around, will work for VC6.

zen is the art of being at one with the two'ness
Go to Top of Page

AdyR
Ketchup Master

United Kingdom
75 Posts

Posted - May 24 2006 :  06:29:39 AM  Show Profile  Reply with Quote
Thanks feline, the updated file works for me, at least in VS 2003 anyway I haven't tried 2005 yet.

Ady
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - May 25 2006 :  2:33:42 PM  Show Profile  Reply with Quote
excellent news

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000