5 posts • Page 1 of 1
Getting this when building a solution. Using a recording to validate text on a form that has labels with return characters. Recording runs fine, error only on build. Appears recording is putting in hard returns into the text in the recording.cs file instead of the "\r" that it uses for keyed text which builds without error. I'm thinking I can use the user code.cs file and simply replace the return characters with the \r but I was just curious if there's something I could do to maybe ignore/correct the error as it exists?
Ranorex version is 188.8.131.5266. Recording is attached. First place where the build errors are happening are line 126. You'll see text for "Does not open eyes" with a return character b/w not and open. I tried to attach the cs file as well so you could see how the recording is writing to the file but I think I hit the attachment size limit. I was looking through some of my other stuff to see if I've run into this before but the only text I've worked with that had return characters that I've been able to find so far has been text I've entered and as I wrote before that always seems to write to the cs file using the \r syntax. Thanks.
- (992.23 KiB) Downloaded 230 times
I could successfully reproduce that error when a string value contained the Unicode line separator character (U+2028). The bug fix that escapes such characters in the generated code will be included in Ranorex version 2.3.4, which will be released this week.