-
Notifications
You must be signed in to change notification settings - Fork 373
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
Support loading images and meshes on web #3131
Conversation
re_log_types::DataTable::from_rows(re_log_types::TableId::random(), [data_row]); | ||
let arrow_msg = data_table.to_arrow_msg()?; | ||
Ok(LogMsg::ArrowMsg(store_id, arrow_msg)) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Creating log messages is quite verbose 😬
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At least it doesn't look too arcane.
@@ -329,7 +329,7 @@ impl App { | |||
self.add_receiver(rx); | |||
} | |||
Err(err) => { | |||
re_log::error!("Failed to open data source: {err}"); | |||
re_log::error!("Failed to open data source: {}", re_error::format(err)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a really bad gotcha. By default, anyhow::Error
only shows the latest part of its context 🤦
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! Nothing caught my eyes 👍🏻
re_log_types::DataTable::from_rows(re_log_types::TableId::random(), [data_row]); | ||
let arrow_msg = data_table.to_arrow_msg()?; | ||
Ok(LogMsg::ArrowMsg(store_id, arrow_msg)) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At least it doesn't look too arcane.
What
Drag-dropping images and meshes now works on web, as does File->Open.
I also managed to get rid of the use of
MsgSender
to create aLogMsg
, simplifying the dependencies a bit (if not the code).Checklist