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
 problem with intellisense and @-quoted string (c#)
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Rome
New Member

4 Posts

Posted - Dec 19 2005 :  4:34:53 PM  Show Profile  Reply with Quote
How to reproduce:

In c# add this line in a methode:

string FileName = @"\\";  // Same as string FileName = "\\\\";

Below this line intellisense doesn't work anymore.
( at least till another @"\\" )

There are some other constellations, but '\\' is in all of them.


greetings

rome

feline
Whole Tomato Software

United Kingdom
19014 Posts

Posted - Dec 20 2005 :  3:31:28 PM  Show Profile  Reply with Quote
am i missing something obvious here? using VS2003 and VA 1438 and C# i have added the following code to a class:

private void testFn()
{
string FileName = @"\\";
FileName.le|
}

i was not getting a spontaneous suggestion while typing "FileName", but once i typed the dot i got a suggestion list for the string member functions.


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

Rome
New Member

4 Posts

Posted - Dec 20 2005 :  4:23:42 PM  Show Profile  Reply with Quote
quote:
Originally posted by feline

... using VS2003 and VA 1438 and C# ...

same here

For me nothing works after this line spontaneous suggestion, intellisense and show list after dot. Its like if the cursor is in a string:

Quote start
 |
 V
@"[escaped char];
first.le|


Deleting the @"\\" line and everything works fine.

I'll post my settings when I get to my Computer - maybe there is a settings-error.
(I couldn't find any error message in the .log but I could send/post it as well if it helps)

@feline
Please try this if it works too:

private void testFn()
{
string first = "test";
string FileName = @"\\";

first.le|
}

(At least it's not a big deal because "\\\\" is fine now that I know @"\\" doesn't work, at least on my machine)

greetings
rome
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19014 Posts

Posted - Dec 20 2005 :  5:10:26 PM  Show Profile  Reply with Quote
i copied and pasted in your code, deleted back to just "first" on the last code line and typed a dot. i instantly got a listbox which filters down quite nicely as i type "le".

at this point i am guessing that this effect is project or even file specific. do you have time to create a standard C# windows form project and re-test in that? it could be that this string, combining with something further up the file, is confusing the parser, but that you need both elements to get the effect.

do you have literal strings with curly brackets in them? they could be a factor if so.

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

Dany
Senior Member

Germany
41 Posts

Posted - Jun 19 2009 :  02:34:36 AM  Show Profile  Reply with Quote
I've got the same here.
I have created a new project especially for this demonstration.



As you can see, "foofoo" has been highlighted twice, because I clicked on either one, but a click on one of the other occurrences has no effect at all (especially when for example "string" is highlighted).

As described in the small area on the right, intellisense is broken here as well. I just began typing right after "++foofoo;". If I press <Ctrl+Space> behind that "foo", I get an extra tomato-only-list with "? foobar" and "? foofoo" (meaning having two simultaneous lists). Calling intellisense before the @-literal works fine.

Other variable declarations behind the @-literal are also not colored correctly.

Edit
BTW: Replacing @"\\" by "\\\\" corrects everything!!

I hope this information helps somewhat.



VA_X.dll file version 10.5.1727.0 built 2009.06.12
Licensed to:
VA X: <me> ;-)
DevEnv.exe version 8.0.50727.762
msenv.dll version 8.0.50727.762
Font: Courier New 13(Pixels)
Comctl32.dll version 6.0.2900.2180
Windows XP 5.1 Build 2600 S
2 processors (x86)

Platform: Win32
Stable Includes:
D:\\Microsoft Visual Studio 8\\VC\\include;
D:\\Microsoft Visual Studio 8\\VC\\atlmfc\\include;
D:\\Microsoft Visual Studio 8\\VC\\PlatformSDK\\include;
D:\\Microsoft Visual Studio 8\\VC\\PlatformSDK\\common\\include;
D:\\Microsoft Visual Studio 8\\SDK\\v2.0\\include;

Other Includes:

Stable Source Directories:
D:\\Microsoft Visual Studio 8\\VC\\atlmfc\\src\\mfc;
D:\\Microsoft Visual Studio 8\\VC\\atlmfc\\src\\atl;
D:\\Microsoft Visual Studio 8\\VC\\crt\\src;



Dany

// using VAX in C# of VS2010 SP1 (en), Win 7 SP1 (de)

Edited by - Dany on Jun 19 2009 02:36:12 AM
Go to Top of Page

sean
Whole Tomato Software

USA
2817 Posts

Posted - Jun 19 2009 :  9:15:26 PM  Show Profile  Reply with Quote
Thanks for the clear description. This will be fixed in the next release cycle. case=28539
Go to Top of Page

Dany
Senior Member

Germany
41 Posts

Posted - Jul 15 2009 :  04:05:38 AM  Show Profile  Reply with Quote
Just to keep track of it:

Just a few minutes ago I discovered a workaround!

Simply place a comment like
//@"\\"
at the end of each line containing a single @"\\". Then all problems mentioned vanish...

I found this, because I had two occurrences of @"\\" in consecutive lines and the following lines where just fine.

Dany

// using VAX in C# of VS2010 SP1 (en), Win 7 SP1 (de)
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Aug 22 2009 :  7:13:02 PM  Show Profile  Reply with Quote
case=28539 is fixed in build 1731

Whole Tomato Software, Inc.
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