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

Make "checkmappings" command support all readable formats #465

Closed

Conversation

NebelNidas
Copy link
Contributor

@NebelNidas NebelNidas commented Sep 24, 2022

Partly taken from QuiltMC/enigma@bad1042.

Fixes #273.

Comment on lines +61 to +65
try {
return format.read(path, progress, saveParameters);
} catch (Exception e) {
suppressed.add(e);
}
Copy link
Member

Choose a reason for hiding this comment

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

This is awful, it should detect the format before trying to read it like this.

Mapping-io has a thing to detect mapping formats, either use something similar or come back to this change once moved over to mapping-io.

For now I see little benefit in this PR.

Copy link
Contributor Author

@NebelNidas NebelNidas Sep 24, 2022

Choose a reason for hiding this comment

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

It's definitely a bit hacky, but since we'll be switching to mapping-io soon anyway, I don't see a point in investing the time to write a proper mapping format detector.

For now I see little benefit in this PR

Users can check other mapping formats for correctness, I think it's worth it ;)

@NebelNidas NebelNidas marked this pull request as draft October 3, 2022 21:22
@NebelNidas NebelNidas closed this Oct 9, 2023
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.

Cli cannot recognize mapping types
2 participants