Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 problem with intellisense and @-quoted string (c#)

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
Rome Posted - Dec 19 2005 : 4:34:53 PM
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
7   L A T E S T    R E P L I E S    (Newest First)
support Posted - Aug 22 2009 : 7:13:02 PM
case=28539 is fixed in build 1731
Dany Posted - Jul 15 2009 : 04:05:38 AM
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.
sean Posted - Jun 19 2009 : 9:15:26 PM
Thanks for the clear description. This will be fixed in the next release cycle. case=28539
Dany Posted - Jun 19 2009 : 02:34:36 AM
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;


feline Posted - Dec 20 2005 : 5:10:26 PM
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.
Rome Posted - Dec 20 2005 : 4:23:42 PM
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
feline Posted - Dec 20 2005 : 3:31:28 PM
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.


© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000