IndexOutOfBounds in SourceFile.scala contents()
#14795
Labels
stat:needs minimization
Needs a self contained minimization
contents()
#14795
Given a
SourcePosition
pos
wherepos.exists
andpos.source.exists
, I would expect that it is safe to callstartColumnPadding
onpos
. This is not always the case, as can be seen when building the community libLucre
here.This exception issue occurs at
startColumnPadding
inSourceFile.scala
, whencontent()
is empty, butlength
is non-zero.It seems content().length != length happens when length is computed from Tasty using setLineIndicesFromLineSizes instead of using calculateLineIndicesFromContents.
Originally posted by @olhotak in #14683 (comment)
The text was updated successfully, but these errors were encountered: