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

Error message when module not found is very unhelpful #395

Closed
rylev opened this issue Jan 11, 2021 · 1 comment
Closed

Error message when module not found is very unhelpful #395

rylev opened this issue Jan 11, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@rylev
Copy link
Contributor

rylev commented Jan 11, 2021

The error message when a module is not found is not very helpful:

error: Module not found
  --> bindings\build.rs:3:25
   |
3  |           windows::mynamespace::{
   |  _________________________^
4  | |             Foo,
5  | |             Bar,
6  | |             Baz,
...  |
40 | |             Qux
41 | |         }
   | |_________^

The issue is that the windows::mynamespace module itself is missing. The error span should point to that path instead of all the types being imported.

@kennykerr
Copy link
Collaborator

This should be fixed as of #773 - let me know if you notice any further issues.

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

No branches or pull requests

2 participants