Outstanding ReSharper 2.0 Bugs

The ReSharper installation package for Visual Studio 2003 did not uninstall ReSharper 1.5. I still see the ReSharper 1.5 plug-in available, although it is deselected.

The ReSharper installation package for Visual Studio 2005 did not remove the Refactor menu, so both Refactor and ReSharper menus have the ALT-R shortcut.

Attributes on enumerations are flagged with "An attribute argument must be a constant expression, typeof expression or array creation expression." A quick example:


public enum Test
{
None = 0,
All = 1
}

When renaming fields with an _ prefix, ReSharper is prompting me to rename the property indexer with the same name even though I have defined _ as a field prefix. A quick example:

public class TestClass
{
private int test;

public int Test
{
get { return test; }
set { test = value; }
}
}

Right click on test and rename it to _test. Even though _ is a field prefix, ReSharper is still prompting me to rename the property accessor to _test. I also tried to rename test to chunk and it successfully renamed test to chunk (without the _ prefix), but it did not prompt me to rename Test to Chunk. Perhaps I'm confused on how this is supposed to work.

ReSharper is adding extraneous spaces instead of moving to the next line when completing some statements, notably else and try. I thought this may have been related to some built-in templates, but I don't see any templates that seem remotely related. As a quick example, I type this block of code:

if(this == that)
{
DoSomething();
}
else

When I type else and press ENTER, the cursor moves one space to the right instead of to the next line. I can work around this issue by backspacing and pressing ENTER again, but it is a very annoying issue.

When adding new information to AssemblyInfo, ReSharper replaces with , presumably because Assembly is a known class or namespace. When editing AssemblyInfo, though, it is more common to use assembly as a scope.

7 comments
Comment actions Permalink

I'll add some more... :)

1) Release version installation switched VS.NET 2005 keyboard scheme
from my selected "Visual C#" to "(default)"

2)File Structure window not showing any content even that project is in
compilable state and File structure popup works like expected

3) Surround with... popup don't show "String.Format" template for string
literals when text is selected including surrounding quotes. On the
other hand, it allows to execute this template when only inner text
without the surrounding quotes is selected and after execution, inserts
template content inside the quotes....

Michal Levy

Lothan wrote:

The ReSharper installation package for Visual Studio 2003 did not
uninstall ReSharper 1.5. I still see the ReSharper 1.5 plug-in
available, although it is deselected.

The ReSharper installation package for Visual Studio 2005 did not remove
the Refactor menu, so both Refactor and ReSharper menus have the ALT-R
shortcut.

Attributes on enumerations are flagged with "An attribute argument must
be a constant expression, typeof expression or array creation
expression." A quick example:


public enum Test
{
None = 0,
All = 1
}

When renaming fields with an _ prefix, ReSharper is prompting me to
rename the property indexer with the same name even though I have
defined _ as a field prefix. A quick example:

public class TestClass
{
private int test;

public int Test
{
get { return test; }
set { test = value; }
}
}

Right click on test and rename it to _test. Even though _ is a field
prefix, ReSharper is still prompting me to rename the property accessor
to _test. I also tried to rename test to chunk and it successfully
renamed test to chunk (without the _ prefix), but it did not prompt me
to rename Test to Chunk. Perhaps I'm confused on how this is supposed to
work.

ReSharper is adding extraneous spaces instead of moving to the next line
when completing some statements, notably else and try. I thought this
may have been related to some built-in templates, but I don't see any
templates that seem remotely related. As a quick example, I type this
block of code:

if(this == that)
{
DoSomething();
}
else

When I type else and press ENTER, the cursor moves one space to the
right instead of to the next line. I can work around this issue by
backspacing and pressing ENTER again, but it is a very annoying issue.

When adding new information to AssemblyInfo, ReSharper replaces
with , presumably because Assembly is a known
class or namespace. When editing AssemblyInfo, though, it is more common
to use assembly as a scope.

0
Comment actions Permalink

Here are my catches:

1) Resharper Intellisense does not recongnize controls on aspx page. Ex: drop GridView to page and in codebehind file write GridView1 nothing happens. Switching to VS.NET intellisense solves the problem.

2) After adding code in bold as shown below, resharper does not recongnize DataList Control (not tested with other controls):

Question 1
]]>
  • <%# Eval("OptionText") %> <%# Eval("Votes") %>*

]]>

3) Event handler registrations on controls not recognized. Resharper says: "Can not resolve symbol'BtnVote_Click' ":

<asp:Button ID="BtnVote" runat="server" Text="Vote" OnClick="BtnVote_Click" />

And what do i use: Visual Studio 2005 Pro English

0
Comment actions Permalink

Please, see my comments inline.

1) Resharper Intellisense does not recongnize controls on aspx page. Ex:
drop GridView to page and in codebehind file write GridView1 nothing
happens. Switching to VS.NET intellisense solves the problem.


I have just checked it in VS2005 - works ok. What happens if You just open
aspx file before opening codebehind. Does it help?

2) After adding code in bold as shown below, resharper does not recongnize
DataList Control (not tested with other controls):

>

<asp:DataList ID="DataList1" runat="server">
<HeaderTemplate>
<table cellspacing="2">
<tr>
<th>
Question 1</th>
</tr>
</HeaderTemplate>
<ItemTemplate>
<tr>
<td>

  • <%# Eval("OptionText") %>   <%#

Eval("Votes") %>*
</td>
</tr>
</ItemTemplate>
<FooterTemplate>
</table>
</FooterTemplate>
</asp:DataList>


Pretty strange. It's ok at my side.
What version of VS do You use? If VS2005, do You use WebAppRC1.
Could You send us a sample solution with the problem?

3) Event handler registrations on controls not recognized. Resharper says:
"Can not resolve symbol'BtnVote_Click' ":
<asp:Button ID="BtnVote" runat="server" Text="Vote"
OnClick="BtnVote_Click" />

Where BtnVote_Click method is declared?

--
Sergey V. Coox
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!


0
Comment actions Permalink

Hi Sergey, thanks for quick reply. I have found workaround for my issue. It is all due to my "Regional and Language Options". I am using Turkish standarts and formats, keyboard layout. Using "Regional and Language Options" applet from control panel i have changed my "Standarts and Formats" to English (UK) and all the issues i have reported disappeared! It seems there is lack of support for turkish locale. (I have also tried Russian, French and couple of other locales and had no problem with them.) Doesn't it strange ?

I am using VS.Net 2005 Pro RTM, and don't using WebAppRC1.

0
Comment actions Permalink

I have a problem with Resparper 2.0 with Visual Studio 1.1. After installing resharper 2.0 I am not able to edit any content using Visual Studio editor. My keyboard is not functioning. Please help me in this regard.

0
Comment actions Permalink

suresh,
What build do You use? It was a bug in build 246 or 247?
VS 1.1 is supposed to stand for VS2003?

--
Sergey V. Coox
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


0
Comment actions Permalink


And more... :)

1) Problems with Nullable types.
(I is cursor position)

abstract class A
{
public Nullable]]> I
}

When i type some letter at this moment as a name of the field, R# shows
popup with types. Same behavior when type is "bool?"

Michal Levy



Michal Levy wrote:

I'll add some more... :)

1) Release version installation switched VS.NET 2005 keyboard scheme
from my selected "Visual C#" to "(default)"

2)File Structure window not showing any content even that project is in
compilable state and File structure popup works like expected

3) Surround with... popup don't show "String.Format" template for string
literals when text is selected including surrounding quotes. On the
other hand, it allows to execute this template when only inner text
without the surrounding quotes is selected and after execution, inserts
template content inside the quotes....

Michal Levy

Lothan wrote:

>> The ReSharper installation package for Visual Studio 2003 did not
>> uninstall ReSharper 1.5. I still see the ReSharper 1.5 plug-in
>> available, although it is deselected.
>>
>> The ReSharper installation package for Visual Studio 2005 did not
>> remove the Refactor menu, so both Refactor and ReSharper menus have
>> the ALT-R shortcut.
>>
>> Attributes on enumerations are flagged with "An attribute argument
>> must be a constant expression, typeof expression or array creation
>> expression." A quick example:
>>
>>
>> public enum Test
>> {
>> None = 0,
>> All = 1
>> }
>>
>> When renaming fields with an _ prefix, ReSharper is prompting me to
>> rename the property indexer with the same name even though I have
>> defined _ as a field prefix. A quick example:
>>
>> public class TestClass
>> {
>> private int test;
>>
>> public int Test
>> {
>> get { return test; }
>> set { test = value; }
>> }
>> }
>>
>> Right click on test and rename it to _test. Even though _ is a field
>> prefix, ReSharper is still prompting me to rename the property
>> accessor to _test. I also tried to rename test to chunk and it
>> successfully renamed test to chunk (without the _ prefix), but it did
>> not prompt me to rename Test to Chunk. Perhaps I'm confused on how
>> this is supposed to work.
>>
>> ReSharper is adding extraneous spaces instead of moving to the next
>> line when completing some statements, notably else and try. I thought
>> this may have been related to some built-in templates, but I don't see
>> any templates that seem remotely related. As a quick example, I type
>> this block of code:
>>
>> if(this == that)
>> {
>> DoSomething();
>> }
>> else
>>
>> When I type else and press ENTER, the cursor moves one space to the
>> right instead of to the next line. I can work around this issue by
>> backspacing and pressing ENTER again, but it is a very annoying issue.
>>
>> When adding new information to AssemblyInfo, ReSharper replaces
>> with , presumably because Assembly is a known
>> class or namespace. When editing AssemblyInfo, though, it is more
>> common to use assembly as a scope.
>>

0

Please sign in to leave a comment.