sol2 icon indicating copy to clipboard operation
sol2 copied to clipboard

Sol3 (sol2 v3.0) - a C++ <-> Lua API wrapper with advanced features and top notch performance - is here, and it's great! Documentation:

Results 286 sol2 issues
Sort by recently updated
recently updated
newest added

using sol 3.5.0, sol2/include/sol/usertype_container.hpp, line 1192: ``` 1188 template 1189 static int next_associative(std::true_type, lua_State* L_) { 1190 iter& i = stack::unqualified_get(L_, 1); 1191 auto& it = i.it(); 1192 auto& end...

The latest released Sol version (3.3) and even the compiled (single file, 3.5) Sol version have the following issue: ./libs/sol/sol.hpp:5584:10: fatal error: no member named 'construct' in 'optional' 5584 |...

```cpp #define SOL_ALL_SAFETIES_ON 1 #define SOL_PRINT_ERRORS 1 #define SOL_EXCEPTIONS_SAFE_PROPAGATION 1 #include int main() { sol::state lua; lua.open_libraries(); sol::table t = lua.script("return {'hello'}"); std::string a = t[1]; // Works std::string_view b...

I was trying to get inheritance to work on usertypes and bumped into this weird behavior when playing with the [example from the documentation](https://sol2.readthedocs.io/en/latest/api/usertype.html?highlight=base_classes#inheritance-example): When you forget to open the...

``` try { sol::state& lua = *sol; sol::protected_function func = lua["xxxxxxxxx"]; if (!func.valid() || !func.is()) { return false; } sol::protected_function_result result = func.call(); return result; } catch (const sol::error& ex)...

https://github.com/ThePhD/sol2/blob/c1f95a773c6f8f4fde8ca3efe872e7286afe4444/include/sol/compatibility/compat-5.3.c.h#L562 windows doesnt support utf-8 so some scripts that have non-ascii filenames doesnt loading

CHECK it... fixed like this: lua["map"] = std::map {{1,2},{3,4}};

Running single.py outputs a resource warning (ResourceWarning: unclosed file). The warning is due to calling ```os.popen()``` and *not* closing the returned file object. The fix is to wrap the ```os.popen()```...

#fixes this: https://github.com/ThePhD/sol2/issues/1687 According to `cmake` documentation `FindPython3` module which called by: ``` find_package (Python3 ...) ``` sets `Python3_EXECUTABLE` instead of `PYTHON_EXECUTABLE`. This changes `PYTHON_EXECUTABLE` variable name to `Python3_EXECUTABLE`.

#Fixed with https://github.com/ThePhD/sol2/pull/1683 Unable to build `Sol2 single` (on linux at least) because of reference to wrong variable of python interpreter. According to `cmake` documentation `FindPython3` module which called by:...