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

UnusedMustUse warnings are emitted after the toolchain ran #383

Closed
anuejn opened this issue May 8, 2020 · 2 comments
Closed

UnusedMustUse warnings are emitted after the toolchain ran #383

anuejn opened this issue May 8, 2020 · 2 comments
Labels

Comments

@anuejn
Copy link
Contributor

anuejn commented May 8, 2020

The UnusedMustUse warnings rely on the garbage-collector and are therefore are emitted at the termination of the python script. This is quite unfortunate when one is using nmigen to execute the build plan because one has to wait for the (long-running) toolchain to finish before obvious bugs are pointed out.

@whitequark
Copy link
Member

I'm not aware of any way to improve on this in general; in Migen you didn't even have late warnings, you were just left to wonder why your design is broken.

If you find that you stumble on this often, use do_build=False.

@anuejn
Copy link
Contributor Author

anuejn commented May 9, 2020

Ok thanks anyways :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants