LSL/Luau editor is 0-lined and its compile errors are 1-lined
planned
SuzannaLinn Resident
default { state_entry() { // editor line 0
integer i = 0.5; // line 1
}}
-- > Line 2: 'integer i' assigned a float value.
The editor could start with line 1 (like with SLua), or the messages return the error line - 1.
Log In
H
Harold Linden
marked this post as
planned
Rider Linden Thoughts on this? Might just be a switch that needs flipped in the editor so that it uses 1-based lines in the 2025 VM as well as in Lua mode.
1-based line numbers is certainly preferable for parity with editors