Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Support opt-in capability diagnostics for libraries #1448

Closed
bamarsha opened this issue May 25, 2022 · 2 comments
Closed

Support opt-in capability diagnostics for libraries #1448

bamarsha opened this issue May 25, 2022 · 2 comments
Labels
area: diagnostics The Q# compiler's error reporting mechanism enhancement New request or suggestion for an improvement maintenance Improve code base quality

Comments

@bamarsha
Copy link
Contributor

Currently, referencing a callable from a library will show warnings in addition to the primary error. The warnings are there so that you can understand why a callable is not supported and fix it if you have control of its source code. This doesn't work as well for the new diagnostics added by #1429, so they don't support this feature.

We would like to remove the functionality entirely for consistency and replace it with a feature that allows libraries to opt-in to diagnostics for specific targets (even though libraries are compiled as target-agnostic). This will also allow cleaning up some cruft from the new capability analyzer code.

@bamarsha bamarsha added enhancement New request or suggestion for an improvement maintenance Improve code base quality area: diagnostics The Q# compiler's error reporting mechanism labels May 25, 2022
@bettinaheim
Copy link
Contributor

I believe this should be addressed with #1465 (now also merged to main). I'll close this - please reopen if you see something that isn't covered.

@bamarsha
Copy link
Contributor Author

We still need to remove the old code for the diagnostics that should no longer be emitted, so I opened #1480 for that.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: diagnostics The Q# compiler's error reporting mechanism enhancement New request or suggestion for an improvement maintenance Improve code base quality
Projects
None yet
Development

No branches or pull requests

2 participants