6

I have a Git version controlled solution in VS 2013 with several projects. Some of the projects are outside of the solution folder and thus are not controlled by Git.

I noticed that for those projects that are outside of the solution folder Resharper 8 class name refactoring fails with the 'file is read-only' error. It also fails to apply "Rename file to match the class name" command.

All works fine for the projects that are IN the solution folder and are controlled by Git.

Is this a known issue of VS or Resharper? Or is it considered a normal flow, and the files must be renamed manually?

UPDATE

Another interesting issue, Resharper cannot modify those files' content as well. So if I want to comment a line using Resharper's command, it won't until I start editing the file manually in VS.

net_prog
  • 9,921
  • 16
  • 55
  • 70
  • 2
    Could you please go to Tools | Options | Source Control | Plug-in Selection | Set "Current source control plug-in" to "None"? Then try again. – Alexander Kurakin Mar 17 '14 at 10:21
  • 1
    @Alexander, yes, this solves the issue, but I need Git to be on though. – net_prog Mar 17 '14 at 15:50
  • Do you use this embedded VS Git extension or standalone Git client like SourceTree? – Alexander Kurakin Mar 18 '14 at 08:35
  • @Alexander, I use VS 2013 own Git in Team Explorer dialog to commit changes AND 3rd party Git client to examine the history. – net_prog Mar 18 '14 at 14:03
  • Could you please specify 3rd party Git client and the version of Git server? We need it to reproduce the issue on our side. Thanks in advance! – Alexander Kurakin Mar 19 '14 at 08:21
  • @Alexander, SmartGit and TortoiseGit, Git version is 1.9.0. – net_prog Mar 19 '14 at 08:45
  • We have invesigated the issue (related ticket in YouTrack http://youtrack.jetbrains.com/issue/RSRP-338404) and it looks like a bug in VS Git extension. We will mail MS team about this. – Alexander Kurakin Mar 26 '14 at 08:05
  • 1
    It sill looks like the only fix (work around) is to "set current source control plugin" to "none": http://resharper-support.jetbrains.com/entries/24790716--Refactoring-failed-Files-still-read-only-error-message-when-applying-Quick-Fix Anyone found a fix that doesn't require you to do that? – Tod Thomson Jun 22 '14 at 23:49

0 Answers0