8000 Improve MSB diagnostics by IyeOnline · Pull Request #5319 · tenzir/tenzir · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Improve MSB diagnostics #5319

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

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Improve MSB diagnostics #5319

wants to merge 2 commits into from

Conversation

IyeOnline
Copy link
Contributor
8000 @IyeOnline IyeOnline commented Jul 2, 2025

This adds field path tracking to the MSB, allowing for better diagnostics.

IyeOnline added 2 commits July 2, 2025 12:43
Since we now actually have multi-match between different types, we can
use the much nicer implementation. This commit is mainly just enabling
the already existing, commented out implementation.
This allows for better error messages, mentioning the fieldname on type
conflicts.
Copy link
github-actions bot commented Jul 2, 2025

Tip

Please add a changelog entry for this PR by clicking one of the links below.

The changelog entry will be pre-filled with information from this PR. You can edit the title and description as needed before committing.

You can also add a changelog entry manually by running ./changelog/add.py change|bugfix|feature on the command-line.

📝 Changelog Entries

Type Description Link
🔄 Change Modifications to existing functionality Add Change
🐛 Bugfix Fixes for bugs or issues Add Bugfix
Feature New functionality or enhancements Add Feature

📚 Documentation Preview

Docs preview is ready!

🔗 Preview Docs: https://tenzir-tenzir-preview-5319.surge.sh

The preview will be updated automatically when you push new commits to this PR.

Comment on lines +61 to +65
if (is_extension) {
path_->append(size_t{1}, '.');
}
path_->append(field_name);
return view{path_, field_name.size() + is_extension};
Copy link
Contributor

Choose a reason for hiding this comment

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

Did you consider forming a chain instead of modifying the original? This looks very easy to misuse.

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.

2 participants
0