View Issue Details

IDProjectCategoryView StatusLast Update
0030214RunnerGeneralPublic2018-11-16 16:52
ReporterMatthew McInnesAssigned ToRussell Kay 
PriorityMediumSeverityC - GeneralReproducibility100%
Status ClosedResolutionFixed 
Product Version2.2.1 
Target Version2.2.1Fixed in Version2.2.1 
Summary0030214: General: Line number within error dialog is incorrect if the script contains utf8 characters in comments, etc.
DescriptionISSUE:

- Line number within error info is incorrect

EXPECTED:

- Line number within error info should be correct
Steps To Reproduce1) Launch Beta IDE v2.2.1.366 Runtime v2.2.1.277
2) Run attached sample
3) Observe issue
TagsNo tags attached.
1.4 Found In
2.x Runtime Found In2.2.1.277
2.x Runtime Verified In2.2.1.278

Activities

Matthew McInnes

2018-11-15 10:49

Adminstrator  

err_info_bug.yyz (14,765 bytes)

Russell Kay

2018-11-16 11:56

Manager   ~0062081

Fixed in gitlab

Problem was actually related to utf8 and multi byte encodings, the function calculating the line number was assuming the offset was byte offset into the script but it was actually a character offset. So if the script included any multi-byte encodings, say Japanese or Chinese characters then the line number reporting would be incorrect

Dan

2018-11-16 12:01

Adminstrator   ~0062082

Fix is in 2.2.1.278+