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

Open
rylev opened this issue Jan 11, 2021 · 0 comments
Open

Error message when module not found is very unhelpful #395

rylev opened this issue Jan 11, 2021 · 0 comments

Comments

@rylev
Copy link
Contributor

@rylev 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants