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

Request: More didactic error message when invalid type in ambient.toml #1183

Open
droqen opened this issue Nov 23, 2023 · 3 comments · May be fixed by #1184
Open

Request: More didactic error message when invalid type in ambient.toml #1183

droqen opened this issue Nov 23, 2023 · 3 comments · May be fixed by #1184
Assignees
Labels
documentation Improvements or additions to documentation enhancement New feature or request

Comments

@droqen
Copy link

droqen commented Nov 23, 2023

Each time I have an invalid component type, I feel like there's a missed opportunity to teach me what the valid component types are.

boid_neighbour_count = { type = "Usize" }
boid_neighbour_array = { type = "Array" }
Error: Failed to resolve dependencies for pre-build

Caused by:
    Failed to resolve type `Usize` for component `boid_neighbour_count

This error message could be followed with a message like the following:

Valid types are `U8, U32, I8, I32, F32, Bool, EntityId, . . .`
@droqen droqen added documentation Improvements or additions to documentation enhancement New feature or request labels Nov 23, 2023
@droqen droqen self-assigned this Nov 23, 2023
@philpax
Copy link
Contributor

philpax commented Nov 23, 2023

You're self-assigning this?

@droqen
Copy link
Author

droqen commented Nov 23, 2023 via email

@philpax
Copy link
Contributor

philpax commented Nov 23, 2023

Awesome! Let me know if you need a hand or any pointers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants