createmodule errors on Windows10 environment: CML or text declaration not at start of entitiy

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.

Are you using the unmodified example file https://vcvrack.com/manual/_static/MyModule.svg or something for your panel?

Hey Andrew. Completely unmodified, as per the instructions in the dev getting started guide.

It should work then. Could you open a bug report? https://vcvrack.com/manual/Issues helper.py is part of Rack, so use the Rack issue tracker.

Certainly. Thanks for your help.

Forget this - error on my part with naming of Windows Environment variables. “Bug Report” has been explained and closed.