Ranorex re-orders using namespace statements in user code

Bug reports.
sphennings
Posts: 1
Joined: Thu Dec 15, 2016 6:13 pm

Ranorex re-orders using namespace statements in user code

Post by sphennings » Thu Dec 15, 2016 6:22 pm

The problem only occurs in v6.2

Steps to reproduce:

* Create a recording module
* Open it's UserCode file
* Change the order of using namespace statements
* Compile the project

Expected behavior:
The order of using statements should not change when compiling the project.

Actual behavior:
The order of using statements changes when compiling the project.

This also prevents annotating namespace statements in 6.2, since comments placed above one will be placed below every namespace statement upon compilation.
The same behavior will happen for comments placed on the same line as a namespace statement.

Good coding practices discourage unnecessary edits. I expect my tools to support not hinder this

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Ranorex re-orders using namespace statements in user code

Post by Support Team » Tue Dec 20, 2016 11:09 am

Hi sphennings,

Thank you for your input.

This behavior is indented and by-design. We are sorry that this feature doesn't meet your expectations.

Thank you for your understanding.

Sincerely,
Robert