Skip to content

Add LUA_TINTEGER support for Luau 0.715 compatibility#11

Merged
sssooonnnggg merged 3 commits into
masterfrom
copilot/compile-luau-latest-code
Apr 7, 2026
Merged

Add LUA_TINTEGER support for Luau 0.715 compatibility#11
sssooonnnggg merged 3 commits into
masterfrom
copilot/compile-luau-latest-code

Conversation

Copilot AI commented Apr 4, 2026

Copy link
Copy Markdown
Contributor

Luau 0.715 introduced a new LUA_TINTEGER type for 64-bit integers. The debugger's type system didn't handle it, causing integer64 values to display as "unknown" during debugging.

Changes

  • debugger/src/internal/utils/lua_types.h — Add Integer type handler using lua_tointeger64(), register it in RegisteredTypes
  • debugger/src/internal/variable.cpp — Handle LUA_TINTEGER table keys in addField so indexed access works correctly for integer64 keys
  • .gitignore — Add build-* pattern
class Integer {
 public:
  static constexpr lua_Type type = LUA_TINTEGER;
  static std::string typeName() { return lua_typename(nullptr, type); }
  static std::string toString(lua_State* L, int index) {
    int64_t value = lua_tointeger64(L, index, nullptr);
    return std::format("{}", value);
  }
};

Verified building against Luau 0.715 with both GCC 13 and Clang 18.

Copilot AI and others added 2 commits April 4, 2026 07:13
Agent-Logs-Url: https://github.com/sssooonnnggg/luau-debugger/sessions/25b73c6f-b78c-422a-80cf-934b740f455e

Co-authored-by: sssooonnnggg <4926092+sssooonnnggg@users.noreply.github.com>
- Add Integer type handler in lua_types.h for the new LUA_TINTEGER type
- Register Integer in RegisteredTypes for proper debugger display
- Update variable.cpp addField to handle LUA_TINTEGER table keys
- Add build-* pattern to .gitignore

Agent-Logs-Url: https://github.com/sssooonnnggg/luau-debugger/sessions/25b73c6f-b78c-422a-80cf-934b740f455e

Co-authored-by: sssooonnnggg <4926092+sssooonnnggg@users.noreply.github.com>
Copilot AI changed the title [WIP] Try compiling the latest Luau code Add LUA_TINTEGER support for Luau 0.715 compatibility Apr 4, 2026
Copilot AI requested a review from sssooonnnggg April 4, 2026 07:18
@sssooonnnggg sssooonnnggg marked this pull request as ready for review April 7, 2026 02:16
@sssooonnnggg sssooonnnggg merged commit 58bb3b6 into master Apr 7, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants