Troubleshooting flatpak-builder errors in appstreamcli compose

When running flatpak-builder, I get output like:

Run failed, some data was ignored.
Errors were raised during this compose run:
general
  E: filters-but-no-output

com.example.Test
  E: no-valid-category
Refer to the generated issue report data for details on the individual problems.
Error: ERROR: appstreamcli compose failed: Child process exited with code 1

How do I get more details about these error codes? Where is the issue report that appstreamcli talks about?

Your categories in your metainfo file are invalid/unknown.

Refer to these for valid ones A. Registered Categories

https://specifications.freedesktop.org/menu-spec/latest/apas02.html

1 Like

Hi, I’ve encountered the same issue. Were you able to fix this?

Your categories in your metainfo file are invalid/unknown.

Could you please clarify what you mean by “categories” here? How do I define it in my metainfo file?
Thanks

I believe some desktop environments (like KDE and Cinnamon?) have a start menu where applications are sorted into standardized category submenus.

As for your second question, I find GitHub to be a helpful source of real-world examples:
https://github.com/search?q=path%3Ametainfo+language%3Axml+categories&type=code

1 Like
1 Like