I’m just getting my head around all this lua thing . i’m a complete begginer to scripting . lot of you might have been in my place so first error "thanks " i’m trying to follow step by step guide and execute following in Testpad lua
Let’s debug the following small test script, paste into RENOISE_PREFERENCES/Scripts/TestPad.lua:
local function sum(a, b)
return a + b
local c = sum(1, 2)
and what i get is this = in terminal :
Last login: Sat Sep 10 21:46:16 on ttys001
/var/folders/9g/yq3jrfn95_b2gcqjqlcqf8980000gn/T/Renoise-0-1189/Renoise_TmpFile-0-2.tmp.command ; exit;
gencode@GenCode ~ % /var/folders/9g/yq3jrfn95_b2gcqjqlcqf8980000gn/T/Renoise-0-1189/Renoise_TmpFile-0-2.tmp.command ; exit;
lua: …enoise/V3.4.2/Scripts/Libraries//remdebug/controller.lua:7: module ‘socket’ not found:
no field package.preload[‘socket’]
no file ‘/usr/local/share/lua/5.4/socket.lua’
no file ‘/usr/local/share/lua/5.4/socket/init.lua’
no file ‘/usr/local/lib/lua/5.4/socket.lua’
no file ‘/usr/local/lib/lua/5.4/socket/init.lua’
no file ‘./socket.lua’
no file ‘./socket/init.lua’
no file ‘/usr/local/lib/lua/5.4/socket.so’
no file ‘/usr/local/lib/lua/5.4/loadall.so’
no file ‘./socket.so’
[C]: in function ‘require’
…enoise/V3.4.2/Scripts/Libraries//remdebug/controller.lua:7: in main chunk
[C]: in ?
** Failed to lauch the controller. Please make sure that Lua for Max OSX is installed.
…copying shared history…
…saving history…truncating history files…
before i continue i wanted to know if anybody knows how to fix it . secondly do i absolutely need Lua testpad ?
Lua is installed on my Mac . i’ have installed lua 5.4 and using Visual sudio Code app to learn and practice lua
i was hoping somebode can enlighten why i’m getting above error ?