Menu

#7 Over-zealous code completion causes bugs

Programming
closed-fixed
Editor (2)
5
2012-02-01
2012-01-09
Anonymous
No

In Garry's Mod, there is a function call, "umsg.End()". LuaEdit refuses to let me type this string within a function. It changes "End" to "end", causing the code to be incorrect.

Steps to reproduce:

Using LuaEdit 3.0.5 on Windows 7, attempt to type/paste the following:

local function PlayDeathSound( player )
umsg.Start( "PlayDeathSound", player )
umsg.End()
end
hook.Add( "PlayerDeath", "MG_PlayDeathSound", PlayDeathSound )

Result: The third line will be replaced with:

umsg.end()

Which is incorrect.

Discussion

  • Jean-Francois Goulet

    • labels: --> Editor
    • milestone: --> Programming
    • assigned_to: nobody --> jfgoulet
     
  • Jean-Francois Goulet

    We've successfully reproduced the issue on our side and found the cause of the issue. This will be fixed in our next released.

     
  • Jean-Francois Goulet

    • status: open --> closed-fixed
     
  • Jean-Francois Goulet

    Fixed in 3.0.8

     

Log in to post a comment.