mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 08:11:12 +00:00
Make sure line offsets are generated properly for external programs
Closes #2329
This commit is contained in:
parent
76d4d5d664
commit
6ea7d63380
5 changed files with 79 additions and 3 deletions
|
@ -82,7 +82,7 @@ fn report_problems_help(
|
|||
src_lines.extend(src.split('\n'));
|
||||
}
|
||||
|
||||
let lines = LineInfo::new(src);
|
||||
let lines = LineInfo::new(&src_lines.join("\n"));
|
||||
|
||||
// Report parsing and canonicalization problems
|
||||
let alloc = RocDocAllocator::new(&src_lines, *home, interns);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue