Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • May 18 04:17
    codecov-commenter commented #1419
  • May 18 03:26
    hishamhm opened #1419
  • May 18 03:26

    hishamhm on fix-1418

    avoid crash if variables.LUA* a… (compare)

  • May 18 03:25

    hishamhm on master

    fix error message when Lua libr… binary build: help autodetectio… (compare)

  • May 18 03:24
    hishamhm commented #1418
  • May 18 01:54
    echiesse commented #1418
  • May 18 00:42
    hishamhm commented #1418
  • May 18 00:10
    echiesse opened #1418
  • May 18 00:10
    echiesse labeled #1418
  • May 14 00:16
    actually-reb commented #1001
  • May 13 06:54
    kevinhwang91 labeled #1417
  • May 13 06:54
    kevinhwang91 opened #1417
  • May 09 18:06
    hishamhm deleted #1416
  • May 09 17:46
    BloBroPro opened #1416
  • May 06 14:06
    aashimgarg closed #1137
  • May 03 23:13
    hishamhm commented #1001
  • May 03 21:16
    badrazizi commented #1001
  • May 03 19:42
    hishamhm commented #1412
  • May 03 19:41
    hishamhm closed #1412
  • May 03 19:41

    hishamhm on master

    Add --no-project flag to overri… Fix build of Windows binary Fi… (compare)

EduardasMeile
@EduardasMeile
Excluding LuCI + uhttpd on OpenWrt as that is too OS-specific
I am kind of thinking now that perhaps nginx might not have been a good choice for a Xavante replacement if one wants to still use lua
Hisham Muhammad
@hishamhm
asking the wrong person, sorry. I haven't done web apps in a long long time
EduardasMeile
@EduardasMeile
@hishamhm perhaps you know a lua web app guru who is an authority in this field and I could actually ask?
Hisham Muhammad
@hishamhm
try the Lua mailing list, perhaps?
EduardasMeile
@EduardasMeile
@hishamhm as a sidenote, I have spent some time on the #lua channel on freenode and as far as I can tell no one is really working with lua web apps or WSAPI these days
or the people working with this stuff maintain legacy applications and don't really participate in community discussions
HarryC145
@HarryC145

Hi all, trying to get LuaRocks working on MacOS
`sh-3.2# luarocks --lua-dir /usr/local/bin --lua-version 5.1 config variables.LUA_LIBDIR /usr/local/lib/
Wrote
variables.LUA_LIBDIR = "/usr/local/lib/"
to
/var/root/.luarocks/config-5.1.lua
sh-3.2# luarocks --lua-dir /usr/local/bin --lua-version 5.1 config variables.LUA_INCDIR /usr/local/include/
Wrote
variables.LUA_INCDIR = "/usr/local/include/"
to
/var/root/.luarocks/config-5.1.lua
sh-3.2# luarocks --lua-dir /usr/local/bin --lua-version 5.1 install luasocket
Installing https://luarocks.org/luasocket-3.0rc1-2.src.rock

Error: Failed finding Lua header files. You may need to install them or configure LUA_INCDIR.`

I'm setting the variables, it's successfully writing them but then doesn't appear to be reading from them. Any ideas please?
Pierre Chapuis
@catwell

What would be your ideal webserver + lua web framework combination for implementing a web app on an embedded Linux device these days?

I don't have an ideal reco but look if you can find something you like in my bookmarks -> https://pinboard.in/u:catwell/t:lua/t:web

Hisham Muhammad
@hishamhm
@HarryC145 the issue is setting --lua-dir /usr/local/bin: --lua-dir expects a "prefix dir", not a "bin dir". By setting a new prefix, this overrides the entire configuration of Lua paths (including bin, lib and include). You can check the results by running luarocks --lua-dir /usr/local/bin config vs. luarocks --lua-dir /usr/local config and seeing how the variables are affected.
in short, --lua-dir /usr/local should do the trick for you, and if you're setting the proper paths using luarocks config, then you shouldn't need to explicitly pass --lua-dir anymore
nepta
@Nepta
hello there
anyone know how to manage multiple version of lua with luarocks ? (in particular having lua5.3 and luajit)
nepta
@Nepta
i am using luaver already to manage my version, but it's weird, i think it want reinstall luarocks when you change your lua version ?
nepta
@Nepta
ok, i think i managed something
by having a config-5.1.lua in etc/config/ with correct variable to point to luajit binary / lib i can use luarocks --lua-version 5.1 to make it manage my luajit config
now i only need to make a wrapper to set the correct LUA_PATH / LUA_CPATH when using luajit
lol main function has more than 120 local variables
hisham_hm
@hisham_hm:matrix.org
[m]
@Nepta you can use the flag --lua-version 5.x, or luarocks --local config lua_version 5.x to set the default permanently
nepta
@Nepta
yes, it's what i use currently
but, to be honnest i did have some issue because i use luavela instead of the standard luajit
and it seem that luarocks have the names hardcoded when looking for the binary (either lua5.1 or luajit)
for now, i adding table.insert(names, "luavela) in util.lua work for me, but i am not familiar enough with luarocks config file, is there a way to add it in config-5.1.lua in some way ? it seem to have a field for it (lua_interpreter)
hisham_hm
@hisham_hm:matrix.org
[m]
yes, you can change the name of the interpreter
nepta
@Nepta
another question, can the "builtin" back-end compile cpp code ?
hisham_hm
@hisham_hm:matrix.org
[m]
no, but there is a cpp backend available in luarocks.org which you can specify using build_dependencies!
nepta
@Nepta
nice ! i will look into it, for now i did a makefile with 'g++' harcoded in it, but the wiki seem to say that it's not a good idea
nepta
@Nepta
'-'
i just saw that you are an admin on luarocks
thanks for your responses
hisham_hm
@hisham_hm:matrix.org
[m]
you're welcome!
alexojo
@alexojo
hello, how could I install CGILUA with LuaRocks on Ubuntu 20.04.
I was installing it by the command "luarocks install cgilua", but my .lp file does not recognize the lua statements.
Erutuon
@Erutuon
Hi, I just noticed that the lpack rock, managed by Luarocks, is indicated as compatible with Lua 5.1, but it doesn't actually compile because it uses a Lua 5.0 type name, luaL_reg (changed to luaL_Reg in Lua 5.1 when it was added to the manual). It must be based on the 5.0 version from LHF's site. Could it be fixed or at least marked as Lua 5.0 only?
Maybe not worth fixing because it's not maintained anymore (and was published with separate source code for each Lua version).
Matthieu Coudron
@teto
hi, si I am looking into luarocks to handle vim plugin management: as of neovim 0.5, there are many lua plugins and they still require everyone to manually setup the plugin dependencies in their init.lua. My hope is that we can use the rockspec format to communicate the dependencies and eventually use luarocks to disseminate these plugins. I wonder if this could be a problem to the luarocks infra/organization ? if not is there any recommendation as to how to handle that ? It's potentially a lot of new packages. Should we use a "neovim" manifest to help with discoveribility for instance ?
Hisham Muhammad
@hishamhm
@teto this should not be a problem from the luarocks side, other projects use luarocks infra for managing plugins (Kong, Mjolnir). As for discoverability, I don't personally think a separate manifest is needed. mjolnir just used the "mjolnir" label, whereas kong uses a kong-plugin-foo naming convention.
Matthieu Coudron
@teto
thanks. That's what I thought but prefered to check
Matthieu Coudron
@teto
seems like labels are not loaded automatically, at least when I go to https://luarocks.org/edit/modules/teto/plenary.nvim I dont see any "neovim" label even though the rockspec specifies it
how can I search by label ?
Matthieu Coudron
@teto
nevermind https://luarocks.org/labels/neovim for instance
Matthieu Coudron
@teto
the changelog doens't contain any entry for v3.7 :(
btw I maintain an out-of-tree luarocks additional command luarocks nix and I would like to "find" a file (a .rockspec) in a folder. I can't find any luarocks function for that. Should I just os.execute and parse the result ?
william behrens
@WilliamBehrens_gitlab
is it possible to create an executable(either by calling shell commands or some other method) using luarocks as a build system?
Kartik Verma
@vkartik97
I am facing this issue while installing busted
Step 8/14 : RUN luarocks install busted
 ---> Running in 598794b4c914
Warning: The directory '/root/.cache/luarocks' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing /usr/local/bin/luarocks with sudo, you may want sudo's -H flag.
Warning: Failed searching manifest: Failed fetching manifest for https://luarocks.org - Failed downloading https://luarocks.org/manifest - /tmp/luarocks_local_cache-IAhOjH/https___luarocks.org/manifest
Warning: Failed searching manifest: Failed fetching manifest for https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/ - Failed downloading https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/manifest - /tmp/luarocks_local_cache-IAhOjH/https___raw.githubusercontent.com_rocks-moonscript-org_moonrocks-mirror_master_/manifest

Installing http://luafr.org/moonrocks/busted-2.0.0-1.rockspec

Error: Could not satisfy dependency lua_cliargs == 3.0: No results matching query were found.
Missing dependencies for busted 2.0.0-1:
   lua_cliargs == 3.0 (not installed)
   luasystem >= 0.2.0 (not installed)
   dkjson >= 2.1.0 (not installed)
   say >= 1.3 (not installed)
   luassert >= 1.8.0 (not installed)
   lua-term >= 0.1 (not installed)
   mediator_lua >= 1.1.1 (not installed)

busted 2.0.0-1 depends on lua_cliargs == 3.0 (not installed)
tried sudo rm -rf ~/.luarocks but doesn't solve the issue
Matthieu Coudron
@teto
nevermind my issue I found the fs.find function
Matthieu Coudron
@teto
any formatter in use on luarocks codebase ? like luaformatter ?
hisham_hm
@hisham_hm:matrix.org
[m]
no, it's formatted by hand
Matthieu Coudron
@teto
would you accept any PRs addressing luacheck issues, formatting Github actions ? (like stylua or luaformatter). You can check https://github.com/neovim/nvim-lspconfig/pulls for examples