Possible 'bug'?

Attached screenshot shows RS suggested code change. I don't necessarily want to suppress the warning in the RS gutter by using the #pragma recommendation. As you can see in the screenshot if I change A to B it tells me to change B to A and if I change A to B it tells me... (yup! you can see where this heading). It's not really a bug but I thought I'd point it out anyway.



Attachment(s):
3.jpg
3 comments
Comment actions Permalink

Hello Peter,

It is context action, and it very well can have inverse action. Like "Invert
if", you can invert particular if until you get tired :)
The usability problem here is the fact that there is no Quick Fix for "generic
catch". Do you have an idea about what can fix the issue automatically?

Sincerely,
Ilya Ryzhenkov

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


IR> Attached screenshot shows RS suggested code change. I don't
IR> necessarily want to suppress the warning in the RS gutter by using
IR> the #pragma recommendation. As you can see in the screenshot if I
IR> change A to B it tells me to change B to A and if I change A to B it
IR> tells me... (yup! you can see where this heading). It's not really a
IR> bug but I thought I'd point it out anyway.
IR>


0
Comment actions Permalink

Ilya,

I can certainly live with it as it's at worst nothing more than a quest I have to eliminate the warning lines in the RS gutter. It's all your fault anyway for making RS indespensible.

The only automatic fix is turn off the RS add-in and that, Ilya, is not an option. :)

0
Comment actions Permalink

Would it be possible for R# to list all of the possible exceptions that can be caught in a given context by walking the call tree?

The context action could then add the ability to catch more specific exceptions.

0

Please sign in to leave a comment.