I’m currenly working my way through the VCV developer tutorial to get to grips with the SDK. I’ve been able to resolve some “unique challenges” presented in a Windows 10 environement, but I’ve hit a stumbling block when it comes to generating a new module.
From inside MyPlugin folder I run
$RACK_SDK/helper.py createmodule MyModule res/MyModule.svg src/MyModule.cpp
where $RACK_SDK is the environment variable name created for my
The createmodule script fails at generating the source file output below:
Module name [MyModule]: MyModule
One-line description (optional) []:
Tags (comma-separated, case-insensitive, see https://github.com/VCVRack/Rack/blob/v1/src/tag.cpp for list) []: VCO
Added MyModule to plugin.json
Panel found at res/MyModule.svg. Generating source file.
Traceback (most recent call last):
File "E:/Rack-SDK/helper.py", line 531, in <module>
parse_args(sys.argv)
File "E:/Rack-SDK/helper.py", line 522, in parse_args
create_module(*args)
File "E:/Rack-SDK/helper.py", line 231, in create_module
tree = xml.etree.ElementTree.parse(panel_filename)
File "C:/msys64/mingw64/lib/python3.8/xml/etree/ElementTree.py", line 1202, in parse
tree.parse(source, parser)
File "C:/msys64/mingw64/lib/python3.8/xml/etree/ElementTree.py", line 595, in parse
self._root = parser._parse_whole(source)
xml.etree.ElementTree.ParseError: XML or text declaration not at start of entity: line 2, column 0
The path to has been setup both in .bashrc of MSYS2 terminal and as windows environment variables.
I’ll keep troubleshooting, and if I find an answer, I’ll post it here.