Code Cleanup "Always use explicit type" always set for foreach iterator declaration style?

Installed RS 6.1 yesterday and noticed today my code cleanup is no longer working properly

It seems no matter how I try I can't get the C# -> "User var in declaration"->"Always use 'var'" to stick. When I change it and then save and reopen dialog it always reverts back to 'Always use explicit type'

I'm using the new setting manager with having this property as a team setting, tried to do it without the settings manager but still same issue... Bug?

7 comments
Comment actions Permalink

I have the same, or similar, problem. I created a new Code Cleanup profile with the following settings in the "C#" branch:

--+  Use 'var' in declaration
+-- Replace direction: "Can change type usage to 'var'"
+-- 'foreach' iterator declaration style: "Always use 'var'"
+-- local variable declaration style: "Always use 'var'"

When I save it and then reopen the settings I get the following:

--+  Use 'var' in declaration
+-- Replace direction: "Do not change"
+-- 'foreach' iterator declaration style: "Always use 'var'"
+-- local variable declaration style: "Use 'var' only when initializer has type usage"

This is after I reset (out of frustration) the settings. Prior to the reset the "'foreach' iterator declaration style" would stay stuck on "Always use explicit type" similar to what the OP is experiencing.

I have tried to save the settings to every level, but to no avail. I have attached exported settings files.



Attachment(s):
codecleanupproblem.zip
0
Comment actions Permalink

Thanks for reporting!
We appear to have a set of issues with certain cleanup settings not saved in 6.1.
We expect to address these issues in the next minor release.

0
Comment actions Permalink

Is there a planned release date for next minor release? Do you have a related issues/issues on youtrack we can subscribe to? (I couldn't find it with e.g. http://youtrack.jetbrains.net/issues/RSRP?q=-Duplicate+version%3A+6.1.1 )

Thanks.

0
Comment actions Permalink

Yes here's the issue for the code cleanup options problem.
It was previously visible to the team only, which explains why you didn't find it.
The issue is already fixed, and will be integrated into 6.1.1 which we're expecting to release in January.

0
Comment actions Permalink

Thanks for addressing this so promptly. I seriously did not expect it to be worked on over the holidays. You guys ROCK!

0
Comment actions Permalink

Is there an ETA for when 6.1.1 goes to RTM/RTW?

0
Comment actions Permalink

Hi Andre,

We're expecting to release 6.1.1 this week or next week.

0

Please sign in to leave a comment.