Closed misaki214 closed 2 months ago
I just tried to reproduce this error, by putting a test project file into CRLF
mode. The locations continue to be correct, even after a complete VS Code restart.
And I have confirmed that it has 0d0a
as terminator.
Hi, @alanz. I reproduced the bug in test project file.It needs multiple
\r\n
newline characters added at line 4.
Ok, I can reproduce that too. And I see the unused function diagnostic comes from the erlang_service i.e. otp compiler.
Describe the bug
The location of the error warning is abnormal when use '\r\n'
To Reproduce
-module(test).
\r\n
\r\n
-export([test/0]).\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
test() ->\r\n
Test = 1,\r\n
ok.\r\n
Expected behavior
Report the correct location of the error.
Actual behavior
use CRLF
use LF
Context
elp version
): elp 1.1.0+build-2024-04-17