create-unitypackage icon indicating copy to clipboard operation
create-unitypackage copied to clipboard

YAMLException: incomplete explicit mapping pair

Open momo-the-monster opened this issue 2 years ago • 3 comments

We got this error when trying to use this action to make a .unitypackage for an UdonSharp release.

file:///home/runner/work/_actions/pCYSl5EDgo/create-unitypackage/cfcd3cf0391a5ef1306342794866a9897c32af0b/node_modules/js-yaml/dist/js-yaml.mjs:1273
  return new exception(message, mark);
         ^
YAMLException: incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line (15:7)

 12 |   validateReferences: 1
 13 |   platformData:
 14 |   - first:
 15 |       : Any
------------^
 16 |     second:
 17 |       enabled: 0

Any idea what we can do to fix this?

momo-the-monster avatar Feb 02 '23 01:02 momo-the-monster

Ah - it looks like these meta files had invalid YAML. Not sure why, but the fix was to move the colon to after the 'Any' like this: image

momo-the-monster avatar Feb 02 '23 01:02 momo-the-monster

Oof - making these modifications actually broke the referenced DLLs, so this was not a good fix. Reopening.

momo-the-monster avatar Feb 27 '23 22:02 momo-the-monster

Thanks for @kb10uy This issue would be fixed.

pCYSl5EDgo avatar Jan 02 '24 14:01 pCYSl5EDgo