DependencyControl icon indicating copy to clipboard operation
DependencyControl copied to clipboard

loading feed crashes with fileBaseUrl in macros/modules section

Open garret1317 opened this issue 2 years ago • 0 comments

"Rolling" Variables: These variables can be defined at any depth in the JSON tree and are continuously expanded using the variables available. You can reference a rolling variable in itself, which will substitute the template for the contents the variable had at the parent-level.

Right now there's only one such variable: fileBaseUrl, which you can use to construct the URL to a file using the template variables available.

I have a fileBaseUrl in the macros section (and will put one in the modules section once I've got one), so I can store macros and modules differently When DepCtrl tries to read my feed it throws the following error:

Lua reported a runtime error:
    File "/home/g/.aegisub/automation/autoload/l0.DependencyControl.Toolbox.moon", line 123
<anonymous function at lines 89-136>
    File "/home/g/.aegisub/automation/autoload/l0.DependencyControl.Toolbox.moon", line 94
addAvailableToInstall
    File "/home/g/.aegisub/automation/include/l0/DependencyControl/UpdateFeed.moon", line 143
getScript
    File "/home/g/.aegisub/automation/include/l0/DependencyControl/UpdateFeed.moon", line 22
__init
    File "<C function>", line -1
?
bad argument #1 to 'pairs' (table expected, got string)

garret1317 avatar Nov 26 '22 20:11 garret1317