-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[Bug] [[hidden]]
values being shown in value summary for struct
#1697
Comments
Hidden means that its variable will not be seen in the set of variables shown in pattern data window not that the value will be ignored if accessed. Why is it not printing for the two rats? |
There is no way for me to access this value from the constructed pattern table (because it is set to hidden), so why would it display it in the value overview? It makes no logical sense. |
[[hidden]]
values being shown in value summary for struct
Again, that's not what hidden does. The attribute [[hidden]] doesn't erase the variable and its value can be displayed, but the member variable will not be listed in the contents of the pattern that contains it. Perhaps you should use the padding data type which will be non-existent as a variable.From online docs:
bitfield Flags {
a : 1;
b : 2;
padding : 4;
c : 1;
};
If this was a struct you could also leave the field anonymous, but i don't think bit-fields can have anonymous members. |
I dont want to use padding, it is ImHex specific. |
To me, this looks like you are really looking for padding: https://docs.werwolv.net/pattern-language/core-language/data-types#padding. Also, to clarify, it looks like the |
Operating System
Windows
What's the issue you encountered?
[[hidden]]
values being shown in value summary for structHow can the issue be reproduced?
ImHex Version
1.33.0
ImHex Build Type
Installation type
manual
Additional context?
The hidden pad value is being displayed, essentially ignoring
![image](https://private-user-images.githubusercontent.com/623756/332620190-3f820279-7673-4b00-be95-d2d722d9727d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE2MTc3MjQsIm5iZiI6MTcyMTYxNzQyNCwicGF0aCI6Ii82MjM3NTYvMzMyNjIwMTkwLTNmODIwMjc5LTc2NzMtNGIwMC1iZTk1LWQyZDcyMmQ5NzI3ZC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzIyJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcyMlQwMzAzNDRaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT00ZmNjMjcyZjk5MTEwY2U1NGJhNjUzZTY4OGIzOTVkOGRlZjcwODE4NjZhNjQyODAzZmMwZTlmZDM5ZDdiMGJhJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.nNGPls-JW5L8EqcrDWS7uheyZK2Dx_iV27EYTRUYl6s)
[[hidden]]
:The text was updated successfully, but these errors were encountered: