Author |
Topic |
|
gbozoki
Ketchup Master
USA
70 Posts |
Posted - Feb 28 2011 : 1:34:37 PM
|
This is not a new issue but now I've seen it happen enough times that it triggered me mentioning it. Using VS 2008 and C#.
When I try to type:
throw ( new| );
and hit space to type SomeException (), Visual Assist always inserts this:
throw ( NewsStyleUriParser | );
This is incorrect, of course and it's also strange since I never used NewsStyleUriParser before. I tried clearing the VA cache several times but it didn't help.
The project has the following references:
- System
- Ssytem.Data
- System.Drawing
- System.Web
- System.Web.RegularExpressions
- System.Windows.Forms
- System.Xml
Is there anything I can do to get this working correctly? |
|
accord
Whole Tomato Software
United Kingdom
3287 Posts |
Posted - Feb 28 2011 : 8:12:19 PM
|
So far I wasn't able to reproduce this. Can you please try if it happens after you disable Visual Assist temporarily? VAssistX -> Enable / Disable Visual Assist X What Visual Assist and Visual Studio version are you using? Can you please create a new Windows Forms Application to see if the problem happens there? For me, always the keyword "new" if the default in the listbox. |
|
|
gbozoki
Ketchup Master
USA
70 Posts |
Posted - Mar 01 2011 : 12:56:04 PM
|
I don't get the problem with VA turned off. I also seem to get this problem somewhat intermittently - it happens a lot but when I use 'new' for a while, it starts listing both the 'new' keyword and NewsStyleUriParser in the suggestion list. The issue then starts again when I switch to a different source file.
The project I'm working on is a .dll project that references both System.Web and System.Windows.Forms. I also saw this behavior for well over a year with various projects, I just kept ignoring it.
Here's my VA info:
quote: VA_X.dll file version 10.6.1842.0 built 2011.02.03 Licensed to: VA X: <removed> (1-user license) Support ends 2012.02.12 DevEnv.exe version 9.0.30729.1 Enterprise msenv.dll version 9.0.30729.1 Font: Courier New 13(Pixels) Comctl32.dll version 6.0.2900.6028 Windows XP 5.1 Build 2600 Service Pack 3 2 processors (x86)
Platform: Win32 Stable Includes: c:\\Program Files\\Microsoft Visual Studio 9.0\\VC\\include; c:\\Program Files\\Microsoft Visual Studio 9.0\\VC\\atlmfc\\include; C:\\Program Files\\Microsoft SDKs\\Windows\\v6.0A\\include; C:\\Program Files\\Microsoft SDKs\\Windows\\v6.0A\\include;
Other Includes:
Stable Source Directories: c:\\Program Files\\Microsoft Visual Studio 9.0\\VC\\atlmfc\\src\\mfc; c:\\Program Files\\Microsoft Visual Studio 9.0\\VC\\atlmfc\\src\\mfcm; c:\\Program Files\\Microsoft Visual Studio 9.0\\VC\\atlmfc\\src\\atl; c:\\Program Files\\Microsoft Visual Studio 9.0\\VC\\crt\\src;
And the same for VS 2008 (removed list of hotfixes):
quote: Microsoft Visual Studio 2008 Version 9.0.30729.1 SP Microsoft .NET Framework Version 3.5 SP1
Installed Edition: Professional
Microsoft Visual Basic 2008 91605-270-8744912-60101 Microsoft Visual Basic 2008
Microsoft Visual C# 2008 91605-270-8744912-60101 Microsoft Visual C# 2008
Microsoft Visual C++ 2008 91605-270-8744912-60101 Microsoft Visual C++ 2008
Microsoft Visual Studio 2008 Tools for Office 91605-270-8744912-60101 Microsoft Visual Studio 2008 Tools for Office
Microsoft Visual Web Developer 2008 91605-270-8744912-60101 Microsoft Visual Web Developer 2008
Crystal Reports AAJ60-G0MSA4K-68000CF Crystal Reports Basic for Visual Studio 2008
Visual Assist X For more information about Visual Assist X, see the Whole Tomato Software website at http://www.WholeTomato.com. Copyright (c) 1997-2011 Whole Tomato Software, Inc.
|
|
|
accord
Whole Tomato Software
United Kingdom
3287 Posts |
Posted - Mar 03 2011 : 01:37:01 AM
|
quote: Originally posted by gbozoki
it happens a lot but when I use 'new' for a while, it starts listing both the 'new' keyword and NewsStyleUriParser in the suggestion list. The issue then starts again when I switch to a different source file.
I don't really understand this. Does this problem happens when both NewsStyleUriParser and new are in the listbox? If so, what happens when you "swtich to a different source file"? Does VA stop listing NewsStyleUriParser? If so, the problem should not happen. I am confused. |
|
|
gbozoki
Ketchup Master
USA
70 Posts |
Posted - Mar 03 2011 : 03:37:06 AM
|
Sorry, if I confused you.
When I experience the problem, 'new' doesn't appear in the listbox at all, only 'NewsStyleUriParser'. Then if I keep using 'throw ( new ... )' in the same source file, 'new' gets added to the listbox and it becomes the default item.
Now if I switch over to a different source file (same solution/project), it starts over. Because 'new' is not in the completion list, 'NewsStyleUriParser' gets inserted into the text when I type 'new' and then press space.
Let me know if it's still confusing - in any C# web project I can readily reproduce this. |
|
|
accord
Whole Tomato Software
United Kingdom
3287 Posts |
Posted - Mar 03 2011 : 7:04:05 PM
|
quote: When I experience the problem, 'new' doesn't appear in the listbox at all.
*ah* Now I see the problem However, it isn't funny at all, "new" keyword should always be in the listbox.
quote: Let me know if it's still confusing - in any C# web project I can readily reproduce this.
You are very clear, thank you. Can you please try creating a new Web project to see if you can reproduce the problem there? If you can, I would be happy if you could zip it up and send it over using the support form after the jump: http://www.wholetomato.com/support/contact.asp
Please include the URL of this topic in the description field so we can match it up. |
|
|
gbozoki
Ketchup Master
USA
70 Posts |
Posted - Mar 04 2011 : 12:54:40 PM
|
Ok, I uploaded you a sample project.
I made a mistake saying web projects trigger this problem. The uploaded sample is a class library project that references System.Web and System.Windows.Forms at the same time. The target is .NET 2.0 and it only has a few lines of code that demonstrate the problem. |
|
|
accord
Whole Tomato Software
United Kingdom
3287 Posts |
Posted - Mar 04 2011 : 5:43:32 PM
|
I got the project, thank you. I was able to reproduce the problem and put in a bug report for this:
case=55775
If seems it works if you "push" something by the caret when typing, e.g.
|; throw (new|;
It also works if you turn off VA Options -> Advanced -> Corrections -> Insert () and closing } ) ] ; |
Edited by - accord on Mar 04 2011 5:44:16 PM |
|
|
sean
Whole Tomato Software
USA
2817 Posts |
Posted - Mar 04 2011 : 10:17:44 PM
|
Yes, this is actually caused by the "Insert () and closing } ) ]" option. Having that closing paren to the right of the caret changes the C# completion set. You can confirm this by disabling VA and typing:
throw()<left>new<space>
Thanks for taking the time to help us nail down a reproducible scenario.
|
|
|
support
Whole Tomato Software
5566 Posts |
Posted - Mar 17 2011 : 11:54:05 PM
|
case=55775 is fixed in build 1845 |
Whole Tomato Software, Inc. |
|
|
|
Topic |
|