Page 1 of 1

Usercode disappears if bracket is missing

Posted: Tue Jan 22, 2013 2:51 pm
by mats
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?

Re: Usercode disappears if bracket is missing

Posted: Wed Jan 23, 2013 1:50 pm
by Support Team
Hello,

Thank you for reporting this bug. We will fix it as soon as possible.

Regards,
Bernhard

Re: Usercode disappears if bracket is missing

Posted: Wed Jan 23, 2013 5:20 pm
by mojohlic
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.

Re: Usercode disappears if bracket is missing

Posted: Wed Jan 23, 2013 5:25 pm
by Support Team
Hello,

Thank you for the information. Do you also use Ranorex 4.0.1?

Regards,
Bernhard

Re: Usercode disappears if bracket is missing

Posted: Wed Jan 23, 2013 7:35 pm
by mojohlic
Yes that is the version I use.

Re: Usercode disappears if bracket is missing

Posted: Thu Jan 24, 2013 5:27 pm
by Support Team
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

Re: Usercode disappears if bracket is missing

Posted: Thu Jan 24, 2013 5:35 pm
by mojohlic
Yes I add the ; and compiles fine. I remove it and code is deleted. I will send you an email with the code.

Re: Usercode disappears if bracket is missing

Posted: Fri Jan 25, 2013 11:44 am
by Support Team
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

Re: Usercode disappears if bracket is missing

Posted: Fri Jan 25, 2013 3:05 pm
by mojohlic
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

Re: Usercode disappears if bracket is missing

Posted: Fri Jan 25, 2013 4:19 pm
by Support Team
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

Re: Usercode disappears if bracket is missing

Posted: Mon Feb 04, 2013 4:09 pm
by mojohlic
Is this fixed in the 4.0.2 version?
Thanks