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
 Build 1430: Error line everywhere
 New Topic  Reply to Topic
 Printer Friendly
Previous Page | Next Page
Author Previous Topic Topic Next Topic
Page: of 3

Christopher Holt
Ketchup Master

USA
70 Posts

Posted - Nov 30 2005 :  2:56:38 PM  Show Profile  Reply with Quote
I have some more information that will hopefully help:
I have a screen shot. In the screen shot the intellisense has three of the member variables not bolded. Those member variables show up as mistyped symbols. In fact, one of the mistyped symbol errors appears in the screen shot.

I don't have a web server to put the screen shot on. Do you have an email I can send it to?

Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18751 Posts

Posted - Nov 30 2005 :  5:07:53 PM  Show Profile  Reply with Quote
i have a free account at http://photobucket.com/ that i use for hosting pictures for this forum. i am not sure how good they are, but they are sufficient for what i need.

is the problem you have a picture of stable? i.e. if you re-load the IDE are the same variables still underlined as mistyped?

if this effect is stable then do you have the time to try and shrink the file down to a small amount of code that shows the same problem, that you would be able to post or email to me?

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

Christopher Holt
Ketchup Master

USA
70 Posts

Posted - Nov 30 2005 :  9:21:03 PM  Show Profile  Reply with Quote
Thanks feline for that website.
Here is the screenshot



I will try what you said and let you know.
Go to Top of Page

Christopher Holt
Ketchup Master

USA
70 Posts

Posted - Nov 30 2005 :  9:27:38 PM  Show Profile  Reply with Quote
The problem is not stable. If I close down the IDE and come back into the project. The members are now bolded in the intellisense and they are no longer underlined.
Go to Top of Page

Christopher Holt
Ketchup Master

USA
70 Posts

Posted - Nov 30 2005 :  9:33:46 PM  Show Profile  Reply with Quote
Here is a better picture. Getting used to the web program. It automatically resized the picture.

Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18751 Posts

Posted - Dec 01 2005 :  3:23:20 PM  Show Profile  Reply with Quote
that website does not resize my images when i upload them, there is probably a tick box for this on the upload page.

as for this underlining, can you watch for any trigger or pattern? before now i have seen problems in one file show up when you open a second, linked file. perhaps something similar is happening here.

another possibility is that VA does not underlined mistyped symbols in a file until after you start editing it. so if it considers the member variables to be unknown you may not be told about this until after changing something in this file.

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

Christopher Holt
Ketchup Master

USA
70 Posts

Posted - Dec 01 2005 :  3:38:08 PM  Show Profile  Reply with Quote
Not Sure if you could see the picture in the last posts.



The mistyped symbols on the member variables definitely always seem to appear after adding a new UI control to a web form/windows form.
It is as though it doesn't reparse the auto-generated code.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18751 Posts

Posted - Dec 04 2005 :  4:02:00 PM  Show Profile  Reply with Quote
*ah* excellent clue, i am now getting the same problem in a small test project. for me closing and reloading the IDE removes the mistyped symbol underlining from existing member variables, while new controls that you add are underlined.

do you get the same effect?

case=913

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

Christopher Holt
Ketchup Master

USA
70 Posts

Posted - Dec 05 2005 :  07:49:32 AM  Show Profile  Reply with Quote
Exactly!! That is exactly the behavior I'm getting.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18751 Posts

Posted - Dec 05 2005 :  6:35:58 PM  Show Profile  Reply with Quote
good! i finally caught this one in the act is there any other problem with underlining that i do not seem to have pinned down yet?

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

Christopher Holt
Ketchup Master

USA
70 Posts

Posted - Dec 06 2005 :  08:00:15 AM  Show Profile  Reply with Quote
There are other times I get the problem but I think they all fall under the categories of unknown namespace or the member variables issue.

I'm glad we finally nailed this one.
Looking forward to the fixes.

Chris
Go to Top of Page

rsim
Junior Member

19 Posts

Posted - Dec 06 2005 :  4:19:06 PM  Show Profile  Reply with Quote
It's hard to say if this is a repo case for what I see or not - for me, the underlines happen on every member variable and their methods, not just the recently added ones.

A very strange thing I found yesterday was that in two separate files at two different times, the underlines would only show up if the start of an anonymous namespace was NOT on screen at the time - as soon as I scrolled that line in view the underlines would disappear (and reappear if I scrolled it back off screen). After a while it just gave up and always had the underlines though.
To add further twists to the case, sometimes half the file is OK, then randomly it just breaks part way through.

Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18751 Posts

Posted - Dec 12 2005 :  2:08:02 PM  Show Profile  Reply with Quote
rsim i have occasionally seen problems like this in C++ when something in the file totally confuses the parser. are you working in C++? at first i assumed you were using C# since so much of this thread has been about C#, but i am seeing a pointer return type in this screen shot.

if the code is confusing the parser (which seems more likely in C++ than C#) then this effect should persist after you restart the IDE.

which IDE and version of VA are you using? can you keep an eye out for any files that show these sort of odd effects and try them after a restart? you may have to make a code edit in the file before any underlining takes place, adding a known invalid variable is a good test for this.

given the colour of the underlines am i correct in saying you have changed the VA mistyped symbol colour to purple? if so then we can be certain that VA is doing this.

looking at the screen shot, is GetContainer() the first function in this file to return a AnimContainer* ? i don't see anything else obvious about this function that would explain why the underlining starts there *puzzled*

are you using an English OS? if not then foreign language characters could be a factor, although this is rather grasping at straws.

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

rsim
Junior Member

19 Posts

Posted - Dec 13 2005 :  5:09:22 PM  Show Profile  Reply with Quote
Yep, this is in C++.

I just happened to be working on a file that had this occur at the time I read this, so I restarted the IDE, made a change, and Boom! Underlines. Again, the underlines go away as soon as the opening { of the anonymous namespace is on-screen.

Yes, I've changed the VA underline to be purple for this exact reason. :) Planning in advance!

English XP, VS 2003, VA 1432.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18751 Posts

Posted - Dec 15 2005 :  5:45:38 PM  Show Profile  Reply with Quote
if you open this file on its own, so no solution open, do you get the same problem? if so what are the options for posting or emailing this file?

if this is commercial code, which is common here, then can you try and trim the file right down, so you still get the problem, but the file is so small and meaningless it can be emailed to me?

plus are you seeing this with any other files?

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

support
Whole Tomato Software

5566 Posts

Posted - Jan 19 2006 :  12:33:15 AM  Show Profile  Reply with Quote
Case 884 is fixed in 1440.

Namespaces within using statements of C# are recognized and parsed properly.

If you experienced this bug, please confirm the fix works for you.

Edited by - support on Jan 19 2006 12:37:08 AM
Go to Top of Page

rsim
Junior Member

19 Posts

Posted - Jan 19 2006 :  4:56:59 PM  Show Profile  Reply with Quote
I'm still seeing this issue in (native) C++ projects in 1440.
Go to Top of Page

rsim
Junior Member

19 Posts

Posted - Jan 19 2006 :  5:16:28 PM  Show Profile  Reply with Quote
I just tried out a few things, and while at the top of the CPP file I have "using namespace XYZ;", I still have to fully specify XYZ to avoid VA incorrectly underlining symbols.

In other words, this will underline m_MyVar:
using namespace XYZ;

void MyClass::MyFN()
{
   m_MyVar = 1;
}

While this does not (which is correct):

using namespace XYZ;

void XYZ::MyClass::MyFN()
{
   m_MyVar = 1;
}
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18751 Posts

Posted - Jan 22 2006 :  1:42:53 PM  Show Profile  Reply with Quote
odd. using VS2003 and VA 1440 i cannot reproduce this in a pure C++ project, i.e. there is no .NET code here. into a header file i have placed the code:

namespace XYZ
{
    class felineColour
    {
    public:
        felineColour();
        ~felineColour();
        void MyFn();

    private:
        int m_MyVar;
    };
}


i have checked, and this compiles quite happily, so i have not made any typo's with the namespace. i wanted to check, since i do not normally define them. in the matching cpp file, at line 6 (there are three #include lines above this) i added the code block:

using namespace XYZ;

felineColour::felineColour()
{
    m_MyVar = 0;
}

// checkkkking out speelining error underlining in comments
void felineColour::MyFn()
{
    m_MyVar = 1;
    banana = 2;
}


as the attached screen shot shows, VA is only underlining the things it should. i have changed the underline colour for VA's mistyped symbols to be more distinct, to avoid any confusion with the IDE.



if i comment out the undeclaired banana line then this code also compiles fine. can you try this example in your code and see what happens? it is possible that VA is failing under more complex conditions, or it could be something about your IDE or project settings that is confusing VA.

is this underlining a new problem, or were you getting it with the previous version of VA that you used?

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

Christopher Holt
Ketchup Master

USA
70 Posts

Posted - Jan 23 2006 :  07:08:32 AM  Show Profile  Reply with Quote
Build 1440 does not fix the main problem of the thread, Case 913. But it does seem
to fix the problem with the namespaces not being parsed properly (at least in C#), which is
what you reported fixed in the thread (Case 884). This seemed to be only
quarter of the problem I was experiencing. My main problem is with member
variables being marked as mistyped symbols.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18751 Posts

Posted - Jan 23 2006 :  5:26:50 PM  Show Profile  Reply with Quote
you are correct, case 913 is still in the list of things to address. this only effects newly added member variables on forms in C#. are you seeing other types of member variables underlined as mistyped symbols?

if you are then can you give me any clues on how to reproduce this?

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

brian_winfield
Senior Member

USA
33 Posts

Posted - Jan 24 2006 :  3:05:45 PM  Show Profile  Reply with Quote
I was able to reproduce in 1440 with the following:
Create a windows C# class library. This will create a file Class1.cs In the file put the following:

using System;
using System.Collections.Generic;
using System.Text;
using System.Diagnostics;


namespace ClassLibrary1
{
public class Class1
{


public bool foobar
{
[DebuggerStepThrough()]
get { return true; }
}
}
}

The DebuggerStepThrough will be underlined in red

Brian S Winfield
Go to Top of Page

Christopher Holt
Ketchup Master

USA
70 Posts

Posted - Jan 24 2006 :  5:31:30 PM  Show Profile  Reply with Quote
I see the problem (case 913) on newly added members of anything to do with partial classes (Web Forms, Forms, etc.).
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18751 Posts

Posted - Jan 25 2006 :  3:15:13 PM  Show Profile  Reply with Quote
brian i am seeing the same thing

case=970


Christopher, is this problem limited to members that you add to the partial class via the IDE, e.g. with the form designer? or are you also seeing it with members that you yourself are manually adding? there is a known outstanding bug with members added automatically by the form designer.

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

macke
Senior Member

Sweden
46 Posts

Posted - Mar 16 2006 :  6:03:04 PM  Show Profile  Reply with Quote
I see the issue when using anonymous methods.

The following code produces underlining in the method declaration:

connection.MessageRecieved += new MessageEventHandler(
delegate(Connection connection, MessageEventArgs e)
{
	ProcessMessage(connection, e.Message);
});


"e" and "e.Message" gets underlined. Well, except for the dot in "e.Message". Code compiles and works just fine though.

- Marcus Stade -
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18751 Posts

Posted - Mar 21 2006 :  5:47:12 PM  Show Profile  Reply with Quote
you are going to have to help me a bit here. i have placed this into a C# program in VS2005 with VA 1440, since i am assuming that this is C# 2 code.

the only words that are *not* underlined as mistyped symbols are "new" and "delegate" *sigh*

i know some basic C# in VS2003, but never really got this far.

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

Christopher Holt
Ketchup Master

USA
70 Posts

Posted - Mar 22 2006 :  12:42:57 PM  Show Profile  Reply with Quote
quote:
Originally posted by feline

you are going to have to help me a bit here. i have placed this into a C# program in VS2005 with VA 1440, since i am assuming that this is C# 2 code.

the only words that are *not* underlined as mistyped symbols are "new" and "delegate" *sigh*

i know some basic C# in VS2003, but never really got this far.



I lost the context of what you need help with. The fix I'm waiting for you said you could already reproduce (case 913, I believe).
Go to Top of Page

Christopher Holt
Ketchup Master

USA
70 Posts

Posted - Mar 22 2006 :  12:44:53 PM  Show Profile  Reply with Quote
quote:
Originally posted by feline

brian i am seeing the same thing

case=970


Christopher, is this problem limited to members that you add to the partial class via the IDE, e.g. with the form designer? or are you also seeing it with members that you yourself are manually adding? there is a known outstanding bug with members added automatically by the form designer.



I believe it is just members added through the designer.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18751 Posts

Posted - Mar 22 2006 :  3:48:43 PM  Show Profile  Reply with Quote
Christopher my query was to macke, the post on Mar 16 2006

macke, it would probably help if you could post this, along with a bit more detail, in a new thread to help cut down on possible confusion.

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

Christopher Holt
Ketchup Master

USA
70 Posts

Posted - Mar 22 2006 :  3:51:10 PM  Show Profile  Reply with Quote
Ahh, I see now. Sorry about that.
Go to Top of Page
Page: of 3 Previous Topic Topic Next Topic  
Previous Page | Next Page
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000