SSR "Can not parse pattern" when it should...
See the attached screenshot. Says it all.
Anybody have some magic for me, or should I report it as a bug?
Attachment(s):
Search with Pattern_2011-02-02_11-18-24.png
Please sign in to leave a comment.
See the attached screenshot. Says it all.
Anybody have some magic for me, or should I report it as a bug?
Please sign in to leave a comment.
On 2/2/2011 10:20 PM, G. Richard Bellamy wrote:
>
>
Hi,
What R# version are you using? I can't reproduce this with the latest
release build.
--
--
Kirill Falk
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
JetBrains ReSharper 5.1 Full Edition
Build 5.1.3000.12 on 2011-01-28T05:05:56
I just tried again, and this is still a problem for me.
Hi,
what do you want to find with this pattern? I guess, extensions methods, right?
You could add some details, which help pattern parser understand what do you mean.
For example: void $method$(this $type$ instance) { $stmt$ }
Here: $method$ - Identifier placeholder
$type$ - Type placeholder, not Expression, because it's invalid in such position
$stmt$ - any number of statements
Such pattern in 5.1 will find all methods with single parameter, but it's fixed now in 6.0.
Thank you for the improved syntax, that's working well.
Based on your comment, it's the "$exp$" expression that is causing the error in my syntax, yes?
Yes. In that position only type references are allowed, not expressions.
Okay, to hijack my own thread ->
Here's a pattern that should return all constructors with at least one argument, but instead barks at me about "Can not parse pattern." HELP! :)
-rb
Attachment(s):
Search with Pattern_2011-04-11_07-53-29.png
Searching for type members is not yet fully supported in ReSharper 5, there will be improvements in this area in version 6.
Okay, so it's another, more general instance of your previous answer - I suspected as much, which is why I added to this thread.
Thanks for the update.
-rb