SSR horrendously broken

Hello,

I'm trying to use SSR (Structured Search and Replace) to refactor my code. I'll admit that I never used it much in previous ReSharper versions, but I'm pretty sure that SSR in ReSharper 9.x is broken.

  • Attempting to find and replace in multiple files simply does not work.
  • Find and replace in a single file works, but sometimes inserts code in the wrong place, leaving behind code that does not compile.


Can SSR get hotfixed please?

5 comments
Comment actions Permalink

Hi Steven!

Please, describe in details what's wrong.
Better with SSR patterns attached.

0
Comment actions Permalink

Can I export my patterns? I have a few of them. I don't know how to export them.

Regardless, the problem is the same for all of my patterns.

To replicate the problem:

  1. Write some bad code across multiple files
  2. Create a pattern that refactors bad code and save it
  3. Go to ReSharper | Options... | Code Inspection | Custom Patterns | Search Now
  4. A results dialog appears
  5. Select all occurrences in all files
  6. Click Replace


When multiple files have occurrences, only the first file is refactored.

0
Comment actions Permalink

Example pattern: Use automatic property

Search pattern:

public $Type$ $Foo$ {     get     {        return $foo$;     }      set      {          $foo$ = value;      } }


Replace pattern:

public $Type$ $Foo$ { get; set; }

0
Comment actions Permalink

Last but not least: Visual Studio tends to freeze after using SSR. When I try to close Visual Studio, I get an error.



Attachment(s):
err.png
0
Comment actions Permalink

I have a similar problem.  First time trying to use this

Capture = search + replace pattern
Capture1 = before
After = after

Am I doing something wrong.
R# 9.1.1



Attachment(s):
After.PNG
Capture1.PNG
Capture.PNG
0

Please sign in to leave a comment.