Skip to content

Commit

Permalink
Ignore build errors when using new and unimplemented Service properties
Browse files Browse the repository at this point in the history
  • Loading branch information
hoontee committed Feb 23, 2024
1 parent 9c89084 commit 2836ec7
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
Binary file modified Lync/Plugin.rbxm
Binary file not shown.
2 changes: 1 addition & 1 deletion Lync/RobloxPluginSource/Plugin.lua
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ local function lpcall(context: string, warning: boolean, func: any, ...): (boole
local args = {...}
return xpcall(function()
return func(unpack(args))
end, function(err)
end, function(err: string)
if not warning then
task.spawn(error, "[Lync] - " .. context .. ": " .. err)
elseif debugPrints then
Expand Down
19 changes: 15 additions & 4 deletions Lync/luneBuildTemplate.luau
Original file line number Diff line number Diff line change
Expand Up @@ -71,22 +71,33 @@ local Vector3int16 = roblox.Vector3int16
]] .. code))
end

local function lpcall(_context, _warning, func, ...)
return true, func(...)
local function lpcall(context: string, warning: boolean, func: any, ...): (boolean, any)
local args = {...}
if not warning then
return true, func(unpack(args))
else
local success, result = pcall(function()
return func(unpack(args))
end)
if not success then
warn(context .. ": " .. tostring(result))
end
return success, result
end
end

local function getObjects(url)
return roblox.deserializeModel(fs.readFile(url:sub(12)))
end

local function listenForChanges()
local function listenForChanges(_object)
end

local function getHost()
return "http://localhost:" .. workspace:GetAttribute("__lyncbuildfile")
end

local function setScriptSourceLive()
local function setScriptSourceLive(_container, _lua)
end

local function updateChangedModelUi()
Expand Down

0 comments on commit 2836ec7

Please sign in to comment.