You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try running the Redbean demo it crashes immediately. I'm not sure why it takes my LUA_PATH into consideration, but it still crashes even if I set LUA_PATH to an empty string.
When I run the regular version it works fine, though.
Version
redbean 3.0.0
macOS 15.3.1 (ARM)
What operating system are you seeing the problem on?
Mac
Relevant log output
> ./redbean-demo-3.0.0.com -vvmbag
D2025-03-02T19:09:04.258731:tool/net/redbean.c:5127:redbean-demo-3:32010] (lua) LuaRunAsset("/.init.lua")
E2025-03-02T19:09:04+000293:tool/net/redbean.c:1206:redbean-demo-3:32010] (lua) failed to run lua code: /zip/.init.lua:1: module 'mymodule' not found:
no field package.preload['mymodule']
no file '/opt/homebrew/Cellar/luarocks/3.11.1/share/lua/5.4/mymodule.lua'
no file '/opt/homebrew/share/lua/5.4/mymodule.lua'
no file '/opt/homebrew/share/lua/5.4/mymodule/init.lua'
no file '/opt/homebrew/lib/lua/5.4/mymodule.lua'
no file '/opt/homebrew/lib/lua/5.4/mymodule/init.lua'
no file './mymodule.lua'
no file './mymodule/init.lua'
no file '/Users/sarna/.luarocks/share/lua/5.4/mymodule.lua'
no file '/Users/sarna/.luarocks/share/lua/5.4/mymodule/init.lua'
no file '/opt/homebrew/lib/lua/5.4/mymodule.so'
no file '/opt/homebrew/lib/lua/5.4/loadall.so'
no file './mymodule.so'
no file '/Users/sarna/.luarocks/lib/lua/5.4/mymodule.so'
stack traceback:
[C]: infunction'require'
/zip/.init.lua:1: in main chunk
The text was updated successfully, but these errors were encountered:
sarna
added
the
medium severity
Used to report medium severity bugs (e.g. Malfunctioning Features but still useable)
label
Mar 2, 2025
> echo''>mymodule.lua
> zip redbean-demo-3.0.0.com mymodule.lua adding: mymodule.lua (stored 0%)
> ./redbean-demo-3.0.0.comI2025-03-02T19:24:29.766346:tool/net/redbean.c:7052:redbean-demo-3:32319] (srvr) listen http://127.0.0.1:8080I2025-03-02T19:24:29+000076:tool/net/redbean.c:7052:redbean-demo-3:32319] (srvr) listen http://192.168.1.4:8080I2025-03-02T19:24:30.237122:tool/net/redbean.c:6112:redbean-demo-3:32324] (req) received 127.0.0.1:59328 HTTP11 GET http://127.0.0.1:8080/tool/net/demo/index.html "" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.3 Safari/605.1.15"I2025-03-02T19:24:30+000166:/zip/.init.lua:76:redbean-demo-3:32324] client is running nil and reports Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.3 Safari/605.1.15
So I'm pretty sure if mymodule = require "mymodule" was removed from .init.lua it wouldn't crash in the first place.
Contact Details
No response
What happened?
When I try running the Redbean demo it crashes immediately. I'm not sure why it takes my
LUA_PATH
into consideration, but it still crashes even if I setLUA_PATH
to an empty string.When I run the regular version it works fine, though.
Version
redbean 3.0.0
macOS 15.3.1 (ARM)
What operating system are you seeing the problem on?
Mac
Relevant log output
The text was updated successfully, but these errors were encountered: