kphp icon indicating copy to clipboard operation
kphp copied to clipboard

Context line is not always shown on error

Open i582 opened this issue 5 years ago • 0 comments

If the error is contained in the line, which is the last in the file, the context line is not displayed.

For example:

<?php
echo $b;
Compilation error at stage: Final check, gen by final-check.cpp:633
  script.php:5
    

Variable $b has Unknown type
<?php
echo $b;
// empty line
Compilation error at stage: Final check, gen by final-check.cpp:633
  script.php:5
    echo $b;

Variable $b has Unknown type

i582 avatar Jun 13 '21 14:06 i582