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

Warning WInlineOptimizedField appear in some strange condition #11675

Open
yuxiaomao opened this issue May 23, 2024 · 2 comments
Open

Warning WInlineOptimizedField appear in some strange condition #11675

yuxiaomao opened this issue May 23, 2024 · 2 comments
Milestone

Comments

@yuxiaomao
Copy link
Contributor

yuxiaomao commented May 23, 2024

I have a warning when working with VSCode, Projet hashlink-debugger master, hld/Eval.hx, lastest haxe (it's a recent bug as I could not reproduce with 547b510).

The warning says "Inlining of cached field getName might lead to unexpected output (WInlineOptimizedField)", where getName is a function from EnumValueTools.

The warning does not appear when I just open the project, I always need to wait a while (such as after some minutes browsing the web).
The warning appear when I click+ctrl something (e.g. Value) and jump to another file, then return to it.
After a ctrl+shift+B (build), it will either disappear or give more warning on other files (seems depend on opened file).
After the warning appear, restart language server and rebuild will remove all warning.

image

@Simn
Copy link
Member

Simn commented Jun 5, 2024

@kLabz Can you think of any commit since 547b510 that could be related here? I just browsed through them and don't see anything obviously related, so I'm wondering if this is actually the case.

@kLabz
Copy link
Contributor

kLabz commented Jun 5, 2024

Well, the display request optimizations come to mind, but that doesn't sound like the real issue (more like what makes the issue visible, like some other hxb issues).

I suppose this is triggered by diagnostics ?

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

No branches or pull requests

3 participants