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

Diagnostics: Suggest Colors.xyz or EnumName.xyz if xyz is not found and it is the value of some enum. #4397

Open
ogoffart opened this issue Jan 22, 2024 · 1 comment
Labels
a:compiler Slint compiler internal (not the codegen, not the parser) diagnostics Suggestions for better diagnostics enhancement New feature or request

Comments

@ogoffart
Copy link
Member

we should suggest to use Colors.xyz or EnumName.xyz if xyz is not found and it is the value of some enum.

Originally posted by @ogoffart in #897 (comment)

@ogoffart ogoffart added enhancement New feature or request a:compiler Slint compiler internal (not the codegen, not the parser) diagnostics Suggestions for better diagnostics labels Jan 22, 2024
@ogoffart
Copy link
Member Author

ogoffart commented Jul 2, 2024

Another case to consider: #5530

property <bool> center;
// could there be a diagnostic that suggest the use of the enum name?
Text { text: "zoom:"; vertical-alignment: center; }  

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:compiler Slint compiler internal (not the codegen, not the parser) diagnostics Suggestions for better diagnostics enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant