Issues with custom / structural templates
Hello,
I take a look on ReSharper6's possibliyties with structural templates.
I spend nearly a day but I can't get running this little example in VB.NET
<?xml version="1.0"?>
-<CustomPatterns>
-<Pattern Language="VBASIC" ShortenReferences="True" FormatAfterReplace="True" Severity="ERROR">
<Comment>Change me</Comment>
<ReplaceComment>Refactor to newCall()</ReplaceComment>
<ReplacePattern>newCall($para$)</ReplacePattern>
<SearchPattern>oldCall($para$)</SearchPattern>
<Params/>
-<Placeholders>
<ArgumentPlaceholder Maximal="1" Minimal="1" Name="para"/> </Placeholders> </Pattern> </CustomPatterns>
Codelines match this pattern are mark as expected, but when I click on the context menu nothing happens. The tooltip / context menu show me again the hint that I can refactor my oldCall.
When I try this example with C# everything work fine, so I want to ask if there are known problems with vb.
I use the german version of visual studio ultimate 2010.
Regards,
Markus
Please sign in to leave a comment.
I try R# 6.1 but the problem is still there. The difference is, that I get an error message with this version:
Unexpected operand type Jetbrains.Resharper.Psi.VB.Impl.Tree.PositionArgument
One more think: In the preview tooltip I can always see the expected result ?:|
Regards and thanks for any help,
Markus
Hello again,
here is a little video, see someone what do I wrong?
Attachment(s):
RSProblem.avi
Hello Markus
You're doing everything correct. This seems to be a bug in ReSharper. I've logged it under http://youtrack.jetbrains.net/issue/RSRP-283702, so you can monitor its status. Thank you!
Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
Markus,
thanks for reporting this issue, it's fixed. Fix will be available in next EAP build.
Hello Victor,
sorry, but I must inform you that the bug isn't fix!
I try out the EAP from 4th of December and get the same error message.
Under these circumstances resharper is usesless for VB programmers :(
I hope you find a solution in the future.
Regards,
Markus