Skip to content

fix(plugin-registry): read additional_encodings from parser manifests#18

Merged
pabloinigoblasco merged 1 commit into
developmentfrom
fix/plugin-registry-additional-encodings
Apr 2, 2026
Merged

fix(plugin-registry): read additional_encodings from parser manifests#18
pabloinigoblasco merged 1 commit into
developmentfrom
fix/plugin-registry-additional-encodings

Conversation

@pabloinigoblasco
Copy link
Copy Markdown
Collaborator

Summary

The host only read the primary encoding field from plugin manifests. Parsers that declare encoding aliases under additional_encodings were not registered for those encodings, causing import failures for files using those encodings.

Problem: MCAP files with messageEncoding: "ros1" (instead of the canonical "ros1msg") fail to import because no parser is registered for that encoding.

Solution: Read both encoding and additional_encodings from the manifest and register the parser for all declared encodings.

Technical Details

Parser manifests can declare:

  • encoding: primary encoding (e.g., "ros2msg")
  • additional_encodings: aliases (e.g., ["ros1msg", "cdr", "ros1", "ros2"])

Both fields now get added to the parser's registered encodings list in PluginRegistry::tryLoadMessageParser().

Related

Files Changed

  • pj_proto_app/src/plugin_registry.cpp — read additional_encodings field

The host only read the primary 'encoding' field from plugin manifests.
Parsers that declare encoding aliases under 'additional_encodings'
(e.g., the ROS parser exposing 'ros1'/'ros2' alongside 'ros2msg') were
not registered for those encodings, causing MCAP channels with those
encoding values to fail parser binding at import time.

This fix registers all declared encodings so that:
- `encoding`: primary encoding (e.g., "ros2msg")
- `additional_encodings`: aliases (e.g., ["ros1msg", "cdr", "ros1", "ros2"])

Both get added to the parser's registered encodings list.
@pabloinigoblasco pabloinigoblasco merged commit 543d670 into development Apr 2, 2026
2 checks passed
@pabloinigoblasco pabloinigoblasco deleted the fix/plugin-registry-additional-encodings branch April 2, 2026 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant