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
 Parsing Errors in VAX
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

diehard2
Junior Member

19 Posts

Posted - Jan 26 2010 :  2:50:11 PM  Show Profile  Reply with Quote
Hello, I've run across a couple of parsing errors in VAX. I have a project that replicates the behavior, but can't figure out how to upload to the forum. The jpgs reference below are included in this project (for future reference). I should note that I've turned off native intellisense by renaming feacp.dll

1. Fluent interface marked as error (vaxparsingerrors.jpg)
2. Calling an object as follows gives the wrong VAX intellisense
(date - date).days
VAX thinks that this is a date (vaxparsingerrors3.jpg) sometimes, and I have no idea what else other times.
3. try/catch in initialization list shows as an error (vaxparsingerrors2.jpg)
4. Constructor signature not given by VAX intellisense for Date class
reproduce - type Test::Date(
5. Enum values not always shown by VAX intellisense (I can't reproduce a test case for this right now)

Additionally, for my large project, the error marking (red squigglies) goes away completely


Edited by - diehard2 on Jan 26 2010 3:14:06 PM

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Jan 26 2010 :  3:17:14 PM  Show Profile  Reply with Quote
You can upload the project using this form:

http://www.wholetomato.com/support/contact.asp

Please include the URL of this page so we can match it up.
Go to Top of Page

diehard2
Junior Member

19 Posts

Posted - Jan 26 2010 :  3:40:21 PM  Show Profile  Reply with Quote
Thanks! I've sent the files
Go to Top of Page

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Jan 27 2010 :  4:31:04 PM  Show Profile  Reply with Quote
1. You missed the ; after

Test::Date day()

in the test project.

2. I am seeing the same effect here. I've create a simplified test case and put in a bug report for this:

case=38782

3. I am seeing the same effect here.

case=1867

4. I have put in a bug report for this:

case=38786

It seems the problem happens only in macro-named functions, like in
int _tmain(int argc, _TCHAR* argv[])

function.

red squiggles: do you mean they have been disappeared completely?
Is this turned on:

VA Options -> Advanced -> Underlines -> Underline mistyped symbols using
Go to Top of Page

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Jan 27 2010 :  4:43:01 PM  Show Profile  Reply with Quote
4. it only happens for me when recursive macro parsing is on. Did you turned it on?

http://docs.wholetomato.com?W363

It is working now, after I turned it off.
Go to Top of Page

diehard2
Junior Member

19 Posts

Posted - Jan 28 2010 :  10:55:18 AM  Show Profile  Reply with Quote
Hello,

Issue 1 -
Sorry about the missed ';', however I did see that in my other project which is why I made the test case. The other problem with the fluent interface is that VAX only gives you intellisense for the first '.'. So, if you type

day.DoStuff() <- good intellisense here
.DoStuff() <- tomato with question mark here
. <- nothing when you type this '.' or supsequent '.'s




Issue 2 -
I do have recursive macro parsing turned on to help with the errors I saw in VAX using GTEST (http://forum.wholetomato.com/forum/topic.asp?TOPIC_ID=9292). However, the recursive parsing didnt't fix it, so I guess I could turn it off.

Last Issue -
red squiggles: do you mean they have been disappeared completely?
Is this turned on:

VA Options -> Advanced -> Underlines -> Underline mistyped symbols using


Yes, its checked. Sometimes I have them, and sometimes I don't. Its not consistent.
Go to Top of Page

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Jan 28 2010 :  4:46:05 PM  Show Profile  Reply with Quote
1. Visual Assist recognized the subsequent DoStuff() member functions, but only suggests members when they are in the same line:

day.DoStuff().DoStuff().   <- member listbox appears here for me

day.DoStuff()
   .                       <- member listbox appears after ctrl+space for me


red squiggles: they appear after you start modifying a file. This feature is inactive in unmodified files for optimization.
Go to Top of Page

diehard2
Junior Member

19 Posts

Posted - Jan 28 2010 :  6:21:30 PM  Show Profile  Reply with Quote
Hi,

I get no intellisense after Ctrl-space on the second line of your example.
Go to Top of Page

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Jan 29 2010 :  03:48:45 AM  Show Profile  Reply with Quote
If you move the caret to the second DoStuff on the second line, what does Definition field shows? (it is next to the green goto button of VA, on its left side). Is it showing the declaration of DoStuff, or is it empty?
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