The unrecognized directive error for an unrecognized directive without values reports strings from the next line #3389
Labels
bug
Something isn't working
reporting
Issues tied with error and warning reporting.
using directives
Issues tied with using directives.
Version(s)
1.5.4
To Reproduce
By debugging the received BSP diagnostic message, these is the line and column information it contains:
Start line: 0
Start column: 28
End line: 0
End column: 40
Notice that there are no 40 characters in the first line. In fact, (0, 28) is just past the "optionsdeprecation" string.
Expected behaviour
Possibly a new error message, just "Unrecognized directive: optionsdeprecation" without the "with values" part and it highlights the unrecognized directive "optionsdeprecation".
The reported diagnostic message as it is today, looks weird in IDEA.
https://youtrack.jetbrains.com/issue/SCL-23343/Scala-CLI-next-code-line-is-highlighted-if-using-directive-is-incorrect
The text was updated successfully, but these errors were encountered: