You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Tabs in Java lead to incorrect error position #6809
inti = 12345.6; // <<- line has 2 tabs before `int`intj = 12345.6; // <<- line has 4 spaces before `int`
Leads to console output of...
5724] [error] Filename.java:XX:25
5724] int i = 12345.6;
5724] ^ // <<- should highlight the entire `12345.6` as below
5724] incompatible types: possible lossy conversion from double to int
5724]
5724] [error] Filename.java:XX:13
5724] int j = 12345.6;
5724] ^^^^^^^
5724] incompatible types: possible lossy conversion from double to int
So the use of tabs causes the highlighting of the error position to be wrong.
Not sure if this is Mill or Zinc. I think the Java Diagnostic class treats a tab as 8 spaces when it comes to column position.
Activity
Fix java error formatting in the presence of tabs (com-lihaoyi#6810)