Lua improvements#8071
Merged
Merged
Conversation
e2eaf3a to
3cce0d2
Compare
79802d1 to
dac6d36
Compare
auto-merge was automatically disabled
July 19, 2025 16:24
Pull request was converted to draft
Iniquitatis
reviewed
Jul 20, 2025
1ac2a34 to
36cafb3
Compare
AJenbo
reviewed
Jul 20, 2025
AJenbo
previously approved these changes
Jul 20, 2025
Also renames lua/lua.hpp to lua/lua_global.hpp. The previous name broke version auto-detection in sol2, which involves calling `__has_include(<lua/lua.hpp>)`.
1. Follows advice from https://sol2.readthedocs.io/en/latest/functions.html to use `set_function` when binding functions. 2. Adds autocomplete support for userdata methods. 3. Simplifies property bindings and improves string handling.
Filter out more cases where autocomplete just gets in the way.
AJenbo
approved these changes
Jul 20, 2025
Collaborator
|
@glebm patch application currently fails on Windows MSVC |
Member
|
@tsunamistate make sure you have patch.exe installed in your system PATH so that cmake can find it. |
Collaborator
|
@AJenbo my |
Collaborator
Author
|
Oh, sorry about that. Can you try in the following order:
If none of that works, I suppose we could fork a diasurgical/sol2 repo and have a branch with the patches that we want. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Multiple Lua improvements:
Follows advice from https://sol2.readthedocs.io/en/latest/functions.html to use
set_functionwhen binding functions.Adds autocomplete support for userdata methods, including handling
.vs::Updates Lua and sol2 (with some patches for yet-to-be-merged PRs).