If Usercode has several nested statements, code disappears with F8 if a bracket is missing. Without any history.
In my case with Ranorex 4.0.1 all code disappears except for method header. In the attached example (TestCaseSelection.UserCode.cs line 72) only some lines disappear.
Is there an option to keep the change history?
Usercode disappears if bracket is missing
Usercode disappears if bracket is missing
- Attachments
-
- TestDelete.zip
- Ranorex Solution
- (47.6 KiB) Downloaded 221 times
- Support Team
- Site Admin
- Posts: 12167
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Graz, Austria
Re: Usercode disappears if bracket is missing
Hello,
Thank you for reporting this bug. We will fix it as soon as possible.
Regards,
Bernhard
Thank you for reporting this bug. We will fix it as soon as possible.
Regards,
Bernhard
Re: Usercode disappears if bracket is missing
Same thing happened to me yesterday and now it happens all the time. I was trying to add the code that I lost and after I saved, more code was gone. I
I reloaded my back up and added some code again but I forgot a ; and the end of a sentence and when I compiled it I got this error:
Failed to update code for 'xx.rxrec'. The user code class has compile errors - xx.rxrec
and some of the code is gone again.
I reloaded my back up and added some code again but I forgot a ; and the end of a sentence and when I compiled it I got this error:
Failed to update code for 'xx.rxrec'. The user code class has compile errors - xx.rxrec
and some of the code is gone again.
- Support Team
- Site Admin
- Posts: 12167
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Graz, Austria
Re: Usercode disappears if bracket is missing
Hello,
Thank you for the information. Do you also use Ranorex 4.0.1?
Regards,
Bernhard
Thank you for the information. Do you also use Ranorex 4.0.1?
Regards,
Bernhard
Re: Usercode disappears if bracket is missing
Yes that is the version I use.
- Support Team
- Site Admin
- Posts: 12167
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Graz, Austria
Re: Usercode disappears if bracket is missing
Hello,
Could you send us the steps which lead to this issue?
Are you sure you closed all brackets and that this is because you just forgot a ";"?
Regards,
Markus
Could you send us the steps which lead to this issue?
Are you sure you closed all brackets and that this is because you just forgot a ";"?
Regards,
Markus
Re: Usercode disappears if bracket is missing
Yes I add the ; and compiles fine. I remove it and code is deleted. I will send you an email with the code.
- Support Team
- Site Admin
- Posts: 12167
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Graz, Austria
Re: Usercode disappears if bracket is missing
Hi,
Thanks for the sample code!
This is unfortunately a bug in the current version of Ranorex (4.0.1).
We will fix this in our next version.
Regards,
Markus
Thanks for the sample code!
This is unfortunately a bug in the current version of Ranorex (4.0.1).
We will fix this in our next version.
Regards,
Markus
Re: Usercode disappears if bracket is missing
I am glad you got the code. Do you know when this is going to be fixed? when the new version is going to be release? This is increasing our development time.
Thanks

Thanks
- Support Team
- Site Admin
- Posts: 12167
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Graz, Austria
Re: Usercode disappears if bracket is missing
Hi,
We are very sorry, we try to fix and release it as soon as possible but the release date for the next version has not yet been determined.
Regards,
Markus
We are very sorry, we try to fix and release it as soon as possible but the release date for the next version has not yet been determined.
Regards,
Markus
Re: Usercode disappears if bracket is missing
Is this fixed in the 4.0.2 version?
Thanks
Thanks