StyleCop / StyleCop.ReSharper

Official ReSharper extension for StyleCop
163 stars 29 forks source link

XML Header comment does not appear #29

Open MagB168 opened 5 years ago

MagB168 commented 5 years ago

I report this issue here because the support team of Resharper recommends me. Since I updated my Resharper to version 2019.2.3 there is no hint (light bulb) about missing header comment. Usually I get a hint and then I just need to press "Ctrl"-"." to see the list of hints and choose "Insert header comment". See attachment. I use also extension "StyleCop By Jetbrains" version 2019.2.

What I did was, I installed VS2019 and Resharper 2018.3 together with StyleCop By Jetbrains version 2018 and then I installed VS2017 because of an old TFS tool that runs only on VS2017. The Resharper worked well (can detect and add header comment) at that time. After I installed the ReSharper update 2019.2.3. and also StyleCop 2019.2. I get the issue. All of my team members experience also the same issue.

How can I get that feature back, so Resharper can generate the header comment for me. Please help. Thank you in advance.

Extensions NoHint StyleCopOptionInResharper

This is the context menu looks like if I deactivate in Project Build Property the option "XML documentation file" XmlDocumentationFileOff

This is the context menu looks like if I activate in Project Build Property the option "XML documentation file" XmlDocumentationFileOn

But if I choose the option "add xml-doc" it will generate empty comment like following (because the option is from Visual Studio not from StyleCop!) CommentEmptyHeader

matkoch commented 5 years ago

@MagB168 just a quick heads up. I will look into this later. Afaik, I already got this reported at some point, but it wasn't reproducable anymore in the end.

MyYoo168 commented 5 years ago

@matkoch do you know if it is possible to use ReSharper 2019.2.3 together with the old StyleCop 2018.3? If yes, how to uninstall the new StyleCop really clean and install the old one? I think about a temporary solution. Please let me know as well where I can download the old version of StyleCop. Thank you in advance.

matkoch commented 5 years ago

@MyYoo168 I'm afraid that's not possible. ReSharper plugins are compiled against very specific versions. I've changed the version schema to match the one of ReSharper. So 2019.2.x requires a StyleCop 2019.2.x.

MagB168 commented 5 years ago

@matkoch I just want to give you some information that probably can help to find the cause of this issue. 1. My team members told me that Visual Studio 2019 reports about the usage of deprecated API (synchronised Autoload) by Jetbrains ReSharper. 2. All my team members (incl. me) work on virtual machines (HyperV) for our dev projects. 3. We use the latest update version of Visual Studio 2019.