Usercode disappears if bracket is missing

Bug reports.
mats
Certified Professional
Certified Professional
Posts: 23
Joined: Tue May 18, 2010 12:58 pm

Usercode disappears if bracket is missing

Post by mats » Tue Jan 22, 2013 2:51 pm

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?
Attachments
TestDelete.zip
Ranorex Solution
(47.6 KiB) Downloaded 211 times

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Usercode disappears if bracket is missing

Post by Support Team » Wed Jan 23, 2013 1:50 pm

Hello,

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

Regards,
Bernhard
.
Image

mojohlic
Posts: 31
Joined: Thu Oct 11, 2012 4:37 pm

Re: Usercode disappears if bracket is missing

Post by mojohlic » Wed Jan 23, 2013 5:20 pm

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.

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Usercode disappears if bracket is missing

Post by Support Team » Wed Jan 23, 2013 5:25 pm

Hello,

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

Regards,
Bernhard
.
Image

mojohlic
Posts: 31
Joined: Thu Oct 11, 2012 4:37 pm

Re: Usercode disappears if bracket is missing

Post by mojohlic » Wed Jan 23, 2013 7:35 pm

Yes that is the version I use.

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Usercode disappears if bracket is missing

Post by Support Team » Thu Jan 24, 2013 5:27 pm

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
.
Image

mojohlic
Posts: 31
Joined: Thu Oct 11, 2012 4:37 pm

Re: Usercode disappears if bracket is missing

Post by mojohlic » Thu Jan 24, 2013 5:35 pm

Yes I add the ; and compiles fine. I remove it and code is deleted. I will send you an email with the code.

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Usercode disappears if bracket is missing

Post by Support Team » Fri Jan 25, 2013 11:44 am

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
.
Image

mojohlic
Posts: 31
Joined: Thu Oct 11, 2012 4:37 pm

Re: Usercode disappears if bracket is missing

Post by mojohlic » Fri Jan 25, 2013 3:05 pm

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

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Usercode disappears if bracket is missing

Post by Support Team » Fri Jan 25, 2013 4:19 pm

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
.
Image

mojohlic
Posts: 31
Joined: Thu Oct 11, 2012 4:37 pm

Re: Usercode disappears if bracket is missing

Post by mojohlic » Mon Feb 04, 2013 4:09 pm

Is this fixed in the 4.0.2 version?
Thanks