R# 4.5 Won't change read-only files

I've been using 4.5 since it released and today it stopped modifying read-only files (those still checked into my source control). Example:

1. I type this: myObject.SomeUnimplementedMethod();
2. I use the quick action to have R# create a stub for SomeUnimplementedMethod()

In the past, R# would create the stub even if the file containing the definition for myObject's class was readonly. The file would be opened and modified but I would have to click "Overwrite" when I tried to save it.

Today, I get "failed to modify document" and the file containing the definitioin fo rmyObject's class is not modified.

I tried closing the IDE and deleting the _Resharper directory for that solution but that didn't help. Did I accidentally hit a keyboard shortcut and somehow turn off this capability?

It is really painful to have to find all refrences to something, go to those files and check them out before making a change that affects those files.

4 comments
Comment actions Permalink

Hello James
     Could you please open Tools > Options > Environment > Documents and make sure 'Allow editing of read-only files; warn when attempt to save' option is turned on? Thank you!

Andrey Serebryansky

Support Engineer

JetBrains, Inc

http://www.jetbrains.com

"Develop with pleasure!"
0
Comment actions Permalink

Yes that Visual Studio option is checked.

0
Comment actions Permalink

Hello James
     Do you have any source control plug-ins selected under Tools > Options > Source Control > Plug-in Selection? Thank you!

Andrey Serebryansky

Support Engineer

JetBrains, Inc

http://www.jetbrains.com

"Develop with pleasure!"
0
Comment actions Permalink

For this solution, the "Current source control plug-in" is "SnapshotCM". When I change it to "None", I don't get any error messages but R# fails to update all affected files.

For example;

File A defines an enum.
Files B, C and D reference that enum.
All files are read-only. The source control is SnapshotCM (not integrated into Visual Studio 2008)

1. In File B, rename one of the enum's values
2. R# changes the value in File B and A, but not in Files C or D.
3. Save All correctly prompts to change Files A and B

But now my build is broken.

0

Please sign in to leave a comment.