Current filter:
                                You should refresh the page.
                                  • Hi

                                    After upgrading to CodeRush 19.1.6 the #region directives are not properly indented after running the "Format document" action as part of Code Cleanup.

                                    The #region directives should be indented with the same indentation as the members it embeds, as it was the case in 19.1.5 and earlier versions.

                                    CodeRush options (personal and solution team/personal) and screenshot are attached.

                                    Thanks,
                                    Zvonko

                                • Eugene R (DevExpress) 07.17.2019

                                  Hi Zvonko,

                                  Thank you for contacting us.
                                  I installed the product on the test computer and tried to reproduce the problem.
                                  Code formatting works correctly for regions and does not shift them.

                                  However, when I coped the solution settings you sent us into the solution folder, I managed to reproduce the problem.
                                  CodeRush loads the settings incorrectly for some reason. I see two "Format document" actions in the list of the "Code Cleaup" options. See:
                                  https://www.screencast.com/t/ivbVQPFggo.

                                  I suppose it is the main reason why regions are formatted incorrectly.
                                  I will continue investigating this problem and let you know of the results.
                                  Please check if the "Code Cleanup" options contain two "Format document" actions on your side and if the problem is reproducible on a newly created solution without the personal and team options in the solution folder.

                                • Eugene R (DevExpress) 07.17.2019

                                  Hi Zvonko,

                                  We've localized the problem.
                                  It happens when Code Cleanup contains the "Format document"  and "Organize members" actions and when "Organize members" has rules placed into the region directives.
                                  Please give us some time to prepare the correction. We will contact you when it is ready.

                                • Zvonko Boštjančič 07.17.2019

                                  Hi Eugene,

                                  Great you found the problem, thank you.

                                  However, your observation about the duplicates is correct. When I have .cr folder inside the solution, some of the actions in Code Cleanup section are duplicated. Not only "Format document" action, but other actions, too.

                                  The content, which resides now inside of a .cr/team folder was copied from my global personal options folder. The goal was to "migrate" the personal options inside version control, to share / sync the CodeRush options across multiple computers I use for development. I thought maybe this was the issue for the duplicates and I changed the location of globa personal options folder to an empty folder. The issue is still there. Could you also check this issue, please?

                                  Thanks,
                                  Zvonko

                                • Eugene R (DevExpress) 07.17.2019

                                  Hi Zvonko,

                                  Yes, we will investigate these issues as well.
                                  To proceed in a more convenient manner I've created a separate ticket on your behalf (Code Cleanup options contain duplicated "Format document" actions) and placed it in our processing queue.
                                  It will be answered shortly.

                                1 Solution

                                Creation Date Importance Sort by

                                Fixed:

                                Show all comments
                                • Zvonko Boštjančič 08.14.2019

                                  Hi

                                  I have to inform you, that the solution, you provided is not working properly. Region directives are still not properly indented.

                                  In the attachment I am sending you the screenshot and the solution settings. Personal options have default values (empty settings folder when starting VS), thus only the solution team/personal options are applied.

                                  Could you please check (and make a working fix)?

                                  Thanks,
                                  Zvonko

                                • Zvonko Boštjančič 08.14.2019

                                  Please note, the problem occurs only when "Format document" action is enabled. 

                                • Przemyslaw Wlodarczak (DevExpress) 08.14.2019

                                  Zvonko,

                                  I used your settings and reproduced the issue. Please give us some time to investigate it.

                                • Alex Z (DevExpress) 08.19.2019

                                  Zvonko,

                                  Would you please try the following daily build and check if this issue is still reproducible for you?
                                  DevExpress.CodeRush-19.1.7.19231.vsix

                                • Zvonko Boštjančič 09.02.2019

                                  Hi Alex,

                                  Sorry for the delayed answer.

                                  The problem is still present in version 19.1.8 (tested in VS2017 and VS2019)
                                  Unfortunately I was not able to test your hotfix  19.1.7.19231 (I get the 404 error when trying to download the file).

                                  Thank you,
                                  Zvonko

                                • Alex Z (DevExpress) 09.03.2019

                                  Zvonko,

                                  Would you please send your Visual Studio and CodeRush settings to us for research? Make sure to include CodeRush solution settings as well as machine settings.

                                  1. Click "Tools\Import and Export Settings..." to export Visual Studio settings.
                                  2. Archive the ".cr" folder located near your solution file and attach to this ticket.
                                  3. Click "CodeRush\Support\Settings Folder...", archive the opened folder (it contains per machine CodeRush settings) and attach to the ticket.
                                • Zvonko Boštjančič 09.07.2019

                                  Hi Alex,

                                  Here you go.

                                • Pavel A (DevExpress) 09.09.2019

                                  Hello Zvonko,
                                   
                                  Thank you for providing the requested information.
                                  I tried to reproduce the issue with your settings and can confirm that the issue persists in CodeRush 19.1.8.
                                  We will fix it and notify you as soon as possible.

                                • Pavel A (DevExpress) 09.19.2019

                                  Hello Zvonko,
                                   
                                  We have fixed this issue with indenting region directives.
                                  However due to certain technical difficulties, we will not be able to include a fix in the CodeRush v19.1.9 that will be released shortly.
                                  The fix will be available in the CodeRush v19.1.10.