Could ReSharper integrate with VS2005 preview refactoring window?

Could ReSharper integrate with VS2005 preview refactoring window? Although refactoring support in ReSharper 2.0 and VS2005 can't actually be compared, the preview refactoring window from VS2005 can be handy sometimes. There should be an option to disable it though, as it may be annoying for more advanced users.

Also, there are a lot of incomatibility issues between VS2005 final and ReSharper 2.0 build 209, which I am sure JetBrains is aware of (VS2005 final came after ReSharper 2.0 build 209). ReSharper 2.0 EAP builds for VS2003 are much more stable.

8 comments
Comment actions Permalink

Hello Mileta,

could you please elaborate more on those incompatibility issues. Actually
we haven't seriously tested ReSharper
with final VS 2005 yet, so your feedback is especially valuable for us.

Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Also, there are a lot of incomatibility issues between VS2005 final
and ReSharper 2.0 build 209, which I am sure JetBrains is aware of
(VS2005 final came after ReSharper 2.0 build 209). ReSharper 2.0 EAP
builds for VS2003 are much more stable.



0
Comment actions Permalink

The most annoying issues with ReSharper 2.0 build 209 and VS 2005 for would be:

- coloring with green background all local variables (damn!),

- sometimes VS and ReSharper intelli-sense windows popup together,

- ReSharper add-in could not be disabled (it always re-enable itself),

- ReSharper could not parse following C# 2.0 constructs:
a) assigning methods to event and delegate variables directly:
this.aButton.Click += this.aButton_Click;
ReSharper expects braces after 'aButton_Click'.
b) Anonymous delegates are not understood by ReSharper at all (Error: method name is expected is shown although compilation is w/o errors).
c) Generic event handler events (EventHandler]]>) are not recognised

- Sometimes VS2005 process start to eat 100% CPU time endlessly (does not happen w/o ReSharper).

0
Comment actions Permalink

Hello Mileta,

regarding coloring local variables, it is a known bug of VS 2005, and we
cannot fix it. We expect a redistributable
hotfix from Microsoft for this.

We've not heard previously that it is impossible to disable ReSharper. Can
you simply launch the VS (without opening
a solution) and try to disable ReSharper? Does it work?

As for VS hangs with 100% CPU consumption, what are you doing when you get
those hangs? Just editing code or something special
(e.g. running unit tests)?

I'm sure that other issues you mentioned (C# 2.0 incompatibilities) will
be addressed in near future. Though anonymous delegates
work fine for us.

Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

The most annoying issues with ReSharper 2.0 build 209 and VS 2005 for
would be:

- coloring with green background all local variables (damn!),

- sometimes VS and ReSharper intelli-sense windows popup together,

- ReSharper add-in could not be disabled (it always re-enable itself),

- ReSharper could not parse following C# 2.0 constructs:

a) assigning methods to event and delegate variables directly:

this.aButton.Click += this.aButton_Click;

ReSharper expects braces after 'aButton_Click'.

b) Anonymous delegates are not understood by ReSharper at all (Error:
method name is expected is shown although compilation is w/o errors).

c) Generic event handler events (EventHandler<TEventArgs>) are not
recognised

- Sometimes VS2005 process start to eat 100% CPU time endlessly (does
not happen w/o ReSharper).



0
Comment actions Permalink

Also, brace matching always color braces in blue, regardless of the color setting, so one must swich to VS brace matching, which is less usefull then ReSharper's (it actually does not match when cursor is at the inner side of the brace).

0
Comment actions Permalink

Hello Mileta,

this is the same problem as with locals coloring - it is a VS bug. Please
read my reply
to your previous post.


Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Also, brace matching always color braces in blue, regardless of the
color setting, so one must swich to VS brace matching, which is less
usefull then ReSharper's (it actually does not match when cursor is at
the inner side of the brace).



0
Comment actions Permalink

Regarding disabling Resharper 2.0 (build 209) under VS 2005, I've just experienced following:
- Trying to disbale it, VS crashes w/o stack trace.
- Open blank sloution, disabling work. Open solution that previosly used ReSharper and it revamps automatically.

Regarding 100% CPU time, this happened just 2 times in 2 weeks, so can't tell you now more concrete info, sorry.

Regarding annonymous delegates, here is a code snippet (inside a windows form class) that is marked as error ('Method name is expected') although it compiles:

Invoke(new MethodInvoker(delegate() {
// Do something
}));

0
Comment actions Permalink

Thanks for the promptly replies!

0
Comment actions Permalink

Hello Mileta,

thanks for your reply! I've reproduced the problem with anonymous delegates
and
filed a request for it. As a side note, this code seems to be somewhat redundant
(though perfectly legal), as the 'new MethodInvoker' can be omitted :

Invoke(delegate() {
// Do something
});

Perhaps this is the reason why nobody reported this issue before.

Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Regarding annonymous delegates, here is a code snippet (inside a
windows form class) that is marked as error ('Method name is
expected') although it compiles:

Invoke(new MethodInvoker(delegate() {
// Do something
}));



0

Please sign in to leave a comment.