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

Apply @:haxe.warning rules to cached warnings too #11775

Open
wants to merge 1 commit into
base: development
Choose a base branch
from

Conversation

kLabz
Copy link
Contributor

@kLabz kLabz commented Sep 17, 2024

  • will need to add tests for this at some point

@@ -22,11 +22,9 @@ let warned_positions = Hashtbl.create 0
let warn_deprecation dctx s p_usage =
let pkey p = (p.pfile,p.pmin) in
if not (Hashtbl.mem warned_positions (pkey p_usage)) then begin
Hashtbl.add warned_positions (pkey p_usage) (s,p_usage);
if not (is_diagnostics dctx.com) then begin
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, there's a chance that this was here for a reason, though I can't immediately tell why.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I'll try to figure out why it was there. I had to remove it, though, otherwise the module could be cached without the warning if cached from diagnostics.. :/

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This originally came from #8632

@skial skial mentioned this pull request Sep 18, 2024
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants