Ranorex 2.3.3.8879
In Projects View, I drag a rxrec file to another folder to move it there.
My Solution still compiles, which made me curious because I have references to the moved rxrec.
Code completion does not find the moved file at its new position.
Even building the solution does not solve this.
Opening the moved rxrec file with a text editor shows that the information about the namespace (/recordtable/codegen@namespace) and external repository (/recordtable/repository@relativepath) have not yet been changed!
Opening the moved rxrec file, it opens "dirty", as if I had modified something (which is not the case).
After saving it, the text editor shows the mentioned values as saved.
Only from now on, code completion will find the moved file at its new (namespace) position!
Is this behavior intentional?
regards, Björn
Moved file needs to be opened and saved
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Moved file needs to be opened and saved
You have made an interesting observation, and I can understand how it might seem a little strange. But, yes, this behavior is intentional. This is because the code is only updated by the recording designer after you've opened and saved the changes.
Regards,
Ron
Ranorex Team
Regards,
Ron
Ranorex Team
Re: Moved file needs to be opened and saved
But you are aware that opening a moved file, saving and closing it will cause the Project build process to fail?
Doesn't seem right to me, but if it's intentional you surely have arguments for it
Just allow me the question: why not update the code (as open/save/close does) after the movement action?
regards, Björn
Doesn't seem right to me, but if it's intentional you surely have arguments for it
Just allow me the question: why not update the code (as open/save/close does) after the movement action?
regards, Björn
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Moved file needs to be opened and saved
Yes, you are correct about the compile being broken. This is an unfortunate side effect caused be the recording being put into a new name space. Currently you will need to update the code manually to correct the missing name space. We will be adding functionality so that the user will not be burdened with this in the future.
Regarding the code update, it's in the todo list. Currently only the designers handle code generation, not Ranorex Studio itself. So that means that if the designer for the recording or repository isn't open, the code won't be updated.
So, I guess what I meant by "behavior is intentional", is that it was intended to delegate all code generation to the designers. But, this of course has some unwanted side affects.
Regards,
Ron
Support Team
Regarding the code update, it's in the todo list. Currently only the designers handle code generation, not Ranorex Studio itself. So that means that if the designer for the recording or repository isn't open, the code won't be updated.
So, I guess what I meant by "behavior is intentional", is that it was intended to delegate all code generation to the designers. But, this of course has some unwanted side affects.
Regards,
Ron
Support Team
Re: Moved file needs to be opened and saved
Sounds good, thanks for the input!
cheers, Björn
cheers, Björn