I am going through a few other embeddable libraries to learn, and while I did fix some things in this project, I keep hitting the same error repeatedly.
Time to ask the experts! AFAIK, the library is loading fine, according to ACP.
2x TestAddOn\Test.lua:1: Usage: EmbedLibrary(addon, libname, silent, offset): 'libname' - Cannot find a library instance of "LibUtilities-1.0-@project-version@".
[C]:: ?
Ace3\AceAddon-3.0\AceAddon-3.0-12.lua:220: in function 'EmbedLibrary'
Ace3\AceAddon-3.0\AceAddon-3.0-12.lua:202: in function 'EmbedLibraries'
Ace3\AceAddon-3.0\AceAddon-3.0-12.lua:169: in function 'NewAddon'
TestAddOn\Test.lua:1: in main chunk
Here is the code from the test addon:
local test = LibStub("AceAddon-3.0"):NewAddon("TestAddOn", "AceConsole-3.0", "LibUtilities-1.0")
And the related embed code in the library:
lib.embeds = lib.embeds or {}
do
local mixins = {
"PixelPerfect",
"BetterRound",
"VisualData",
"NumberToHex",
"DecodeItemString"
}
--- Embeds lib on target AddOn
-- So you can call LibStub("LibUtilities-1.0").Embed(myAddOn)
-- @param target AddOn in which to embed
function lib:Embed(target)
for k, v in pairs(mixins) do
target[v] = self[v]
end
self.embeds[target] = true
return target
end
end -- do
for AddOn in pairs(lib.embeds) do
lib:Embed(AddOn)
end
I have tried with and without the do - end, moving the first section to the top of the file...
Time to ask the experts! AFAIK, the library is loading fine, according to ACP.
Here is the code from the test addon:
And the related embed code in the library:
I have tried with and without the do - end, moving the first section to the top of the file...
As for the version, nothing weird. I used the Curseforge repo keyword subs. You were seeing the dev build.