Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(cli): allow unrecognized encoding #849

Closed

Conversation

jon-chuang
Copy link
Contributor

@jon-chuang jon-chuang commented Mar 13, 2023

Public-Facing Changes

Description

One can now see raw bytes of messages from mcap cat --json along with the metadata

Comments:

Fix: #817

if !ok {
packageName := strings.Split(schema.Name, "/")[0]
transcoder, err = ros.NewJSONTranscoder(packageName, schema.Data)
if schema == nil || schema.Encoding == "" {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jon-chuang is the idea with this patch to split out the change for supporting nil schemas, from support for CBOR? It seems like it still depends on the CBOR change, so I don't understand how it's different from the other patch.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, this PR is building on the previous patch. The main change is handling unrecognized encoding by writing the raw data bytes insted of throwing an error. I'll convert this to a draft, it should be clearer once that PR is merged.

@jon-chuang jon-chuang marked this pull request as draft March 15, 2023 04:34
@defunctzombie
Copy link
Contributor

Closing this PR due to lack of activity. If you revive these efforts we can revisit this or other PRs. Thanks for doing the research and proposing these changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

[cli] Add mcap cat --json support for unsupported/unrecognized encodings
3 participants