Aaron B
12.29.2006
Hi Aaron,
Here's an update on this problem. I have looked into this in some detail and I can reproduce the issue on my system. Now, the reason for the problem are the incomplete structures that are temporarily created while code is being edited - at this time, the plugin can't detect when the code structures are in an incomplete state, and the result of that is what you see when unnecessary additional Fields classes are generated.
My apologies for the inconvenience, but there doesn't appear to be a quick and easy solution to the problem at the present time. I will continue to look into the issue, and there are certain developments going on in DXCore that may provide an answer if all else fails, but with no particular release target we can currently promise.
Maybe I can mention a workaround - which is also the reason this problem has so far escaped our attention: if you use CodeRush templates consistently to create your code, you won't notice this problem. The reason is that by using the templates, your code doesn't enter these states where your class is temporarily rendered invalid. The templates always create a complete property, or method or other construct at once - manual editing brings about the situations that lead to this problem. Let me say again that I do see the problem you're having and I regard it as a serious bug - this is just to explain why I missed what must look pretty obvious to you, and maybe to offer a workaround.
Regards
Oliver Sturm
Hi Aaron,
As you probably know, the CR_XPOFieldSync is not a "built-in" CodeRush plug-in written and supported by our IDE Team, but a custom DXCore plug-in written by Oliver Strum. However, Oliver has left our company.
We do not have sources for this plug-in, and so, I'm afraid we can't do much on this problem. It looks as if the only thing we can suggest is to contact Oliver directly on this subject. E.g. you can post this problem in his blog:
Thanks,
Vito
BTW, there exists the XPO_EasyFields community plug-in that does a similar job. So, you may consider using it, as an alternative.
Thanks,
Vito