scanner: multiline strings create huge problems
The scanner splits the text in lines and scans each of them. If there is a multiline string on that line, it can't be scanned and we return a string token with the whole line.
This can't be handled by the parser and explains many cases where cross-references and navigation don't work, or the indentation.
The sgsn codebase has around 1600 instances of such strings and we can't just say "don't use multiline strings"
This can't be handled by the parser and explains many cases where cross-references and navigation don't work, or the indentation.
The sgsn codebase has around 1600 instances of such strings and we can't just say "don't use multiline strings"
Leave a comment
on 2011-11-18 07:55 *
By Vlad Dumitrescu
Description changed from The scanner splits the text... to The scanner splits the text...
Description changed from The scanner splits the text... to The scanner splits the text...
on 2011-11-21 01:37 *
By Vlad Dumitrescu
After the initial panic has now calmed down :-), I see that sgsn has only ~800 instances (because the multiline strings have a beginning and an end that I was searching for).
But this is still serious.
But this is still serious.
on 2011-11-21 14:12 *
By Vlad Dumitrescu
Milestone set to sprint #26 - 0.13.9
Milestone set to sprint #26 - 0.13.9
on 2011-11-29 06:28 *
By Vlad Dumitrescu
Assigned to set to Vlad Dumitrescu
Assigned to set to Vlad Dumitrescu
on 2011-12-08 06:26 *
By Vlad Dumitrescu
Milestone changed from sprint #26 - 0.13.9 to sprint #27
Milestone changed from sprint #26 - 0.13.9 to sprint #27
on 2012-01-12 07:18 *
By Vlad Dumitrescu
Assigned to changed from Vlad Dumitrescu to -none-
Assigned to changed from Vlad Dumitrescu to -none-
on 2012-06-01 05:22 *
By Vlad Dumitrescu
Milestone changed from backlog to deprecated because of xtext version
Milestone changed from backlog to deprecated because of xtext version
Updating tickets (#156, #747, #805, #806, #972, #194, #274, #335, #339, #375, #603, #610, #641, #642, #664, #665, #684, #743, #744, #759, #760, #762, #796, #800, #809, #820, #853, #856, #857, #884, #893, #900, #902, #916, #917, #953, #969, #990, #1002, #1003, #1004, #1011, #1012, #1044, #40, #119, #121, #129, #130, #145, #160, #244, #264, #265, #387, #392, #433, #454, #459, #463, #479, #508, #524, #529, #536, #589)
on 2013-01-09 03:21 *
By Vlad Dumitrescu
Affected by xtext set to Yes
Milestone changed from deprecated because of xtext version to backlog
Affected by xtext set to Yes
Milestone changed from deprecated because of xtext version to backlog
on 2013-01-24 05:47 *
By Vlad Dumitrescu
Found in version changed from 0.13 to -none-
Erlang engine changed from No to Yes
Found in version changed from 0.13 to -none-
Erlang engine changed from No to Yes
on 2013-03-07 03:59 *
By Vlad Dumitrescu
Milestone changed from backlog to sprint #41
Milestone changed from backlog to sprint #41
on 2013-03-22 02:39 *
By Vlad Dumitrescu
Milestone changed from sprint #41 to sprint #42
Milestone changed from sprint #41 to sprint #42
on 2013-04-10 05:40 *
By Vlad Dumitrescu
Milestone changed from sprint #42 to sprint #43
Milestone changed from sprint #42 to sprint #43
on 2013-04-10 06:34 *
By Vlad Dumitrescu
Milestone changed from sprint #43 to backlog
Milestone changed from sprint #43 to backlog
on 2015-09-15 06:05 *
By Vlad Dumitrescu
Milestone changed from backlog to v1.0 backlog
Milestone changed from backlog to v1.0 backlog