Renaming bug

When I have a private variable named for example _test and then I create a public get/set property using R# it creates property named test. Now let's assume I want to rename it to Test. Then sometimes (actually always, but I can't create a simple repro steps -- I don't know if you have to restart VS or what causes this) it suggest the right name Test but Next button is disabled and error sign is displayed.

Please see attached screenshot. I consider this a small bug. Can you please fix it? I can't enter bug to Jira because I guess I don't have access there.

Thanks,
David.



Attachment(s):
Screenshot.png
10 comments
Comment actions Permalink

Hello David,

If you want ReSharper to create properly named properties you should set
up naming style. To do this go to ReSharper -> Options -> Naming style and
set correct suffixes for fields ("_" in your case). Hope this helps!

Oleg Stepanov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

When I have a private variable named for example _test and then I
create a public get/set property using R# it creates property named
test. Now let's assume I want to rename it to Test. Then sometimes
(actually always, but I can't create a simple repro steps -- I don't
know if you have to restart VS or what causes this) it suggest the
right name Test but Next button is disabled and error sign is
displayed.

Please see attached screenshot. I consider this a small bug. Can you
please fix it? I can't enter bug to Jira because I guess I don't have
access there.

Thanks,
David.



0
Comment actions Permalink

Ok thank you -- I will do that. On the other hand what I reported really seems like a bug because you can't click Next button.

David.

0
Comment actions Permalink

Hello David,

Yes, thanks for reporting the bug to us -- we will check that.

Oleg Stepanov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Ok thank you -- I will do that. On the other hand what I reported
really seems like a bug because you can't click Next button.

David.



0
Comment actions Permalink

Hello,

but Next button is disabled and error sign is
displayed.


What was the error message (displayed as a tooltip on the error sign)?


Serge Baltic
JetBrains, Inc — http://www.jetbrains.com
“Develop with pleasure!”


0
Comment actions Permalink

Hello Serge,

I believe he means the red stop sign bitmap to the right of the Name TextBox
on the Rename dialog he included in his post.

Hello,

>> but Next button is disabled and error sign is
>> displayed.

What was the error message (displayed as a tooltip on the error sign)?


Serge Baltic
JetBrains, Inc — http://www.jetbrains.com
“Develop with pleasure!”



0
Comment actions Permalink

Hello,

I believe he means the red stop sign bitmap


… which has an error message.


Serge Baltic
JetBrains, Inc — http://www.jetbrains.com
“Develop with pleasure!”


0
Comment actions Permalink

Exactly -- the red sign. To enable the Next button I either have to:

  • select the same name from the combo box or

  • type a letter at the end and then delete it (I changed the name but in fact the name is still the same)


Thanks,
David.

0
Comment actions Permalink

The work around I have learned for this, since the box comes up with the item selected, is to hit CTRL-C, CTRL-V to copy and paste the same item back, then the next option is automatically selected, you can just hit Enter... its not right, but it is better I think than any of the other work arounds.

Ciao

0
Comment actions Permalink

Thanks, this is a good one.

0
Comment actions Permalink

Hello Serge,

of course, I must be getting tired!

Hello,

>> I believe he means the red stop sign bitmap
>>

… which has an error message.


Serge Baltic
JetBrains, Inc — http://www.jetbrains.com
“Develop with pleasure!”



0

Please sign in to leave a comment.