Skip to content

feat(glib): Add GLib example for Lua#4445

Open
esadek wants to merge 2 commits into
apache:mainfrom
esadek:glib-lua
Open

feat(glib): Add GLib example for Lua#4445
esadek wants to merge 2 commits into
apache:mainfrom
esadek:glib-lua

Conversation

@esadek

@esadek esadek commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Add a GLib example for Lua alongside the existing Vala example.

@esadek esadek requested a review from kou as a code owner June 26, 2026 22:05
@kou

kou commented Jun 29, 2026

Copy link
Copy Markdown
Member

Can we run the Lua example in CI like we did for Vala?

"${build_dir}/glib/example/sqlite"
if [[ "${enable_vapi}" = "true" ]]; then
"${build_dir}/glib/example/vala/sqlite"
fi

@lidavidm

Copy link
Copy Markdown
Member
callable.c: In function 'closure_callback':
callable.c:1237:13: error: too few arguments to function 'lua_resume'
 1237 |       res = lua_resume (L, NULL, npos);
      |             ^~~~~~~~~~
In file included from lgi.h:11,
                 from callable.c:12:
/home/runner/miniconda3/envs/test/include/lua.h:312:15: note: declared here
  312 | LUA_API int  (lua_resume)     (lua_State *L, lua_State *from, int narg,
      |               ^~~~~~~~~~
make[1]: *** [Makefile:63: callable.o] Error 1
make[1]: Leaving directory '/tmp/luarocks_lgi-0.9.2-1-5756501/lgi/lgi'
make: *** [Makefile:16: all] Error 2

Does it need a specific Lua version?

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.

3 participants