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

[FEATURE REQUEST] Identifier for <Message> #545

Closed
Cicorione opened this issue Dec 14, 2023 · 4 comments
Closed

[FEATURE REQUEST] Identifier for <Message> #545

Cicorione opened this issue Dec 14, 2023 · 4 comments

Comments

@Cicorione
Copy link

Hi @pgundlach

I wonder if it might be possible add some sort of identification to the messages output, I am trying to debug some layout issue but I am not so skilled to understand which message is which when I got for each a nil value.

Perhaps something:
<Message id="var1" select="$var1" />

Thanks... 🙏

@pgundlach
Copy link
Member

This is a good feature request, thank you.

A workaround could be to use the lxpath XPath parser which generates output such as

...
Call "Message" from layout (line 22)
Message: "Hello nice world"
Call "PlaceObject" from layout (line 24)
...

or identify yourself within message:

<Message select="concat('color: ', $color)" />

@Cicorione
Copy link
Author

Thank @pgundlach I didn't realize I could use such workaround... 🙃

@Cicorione
Copy link
Author

I'd like to point out if the variable is malformed select="concat('text', $variable)" shows an empty message without plain text.

@pgundlach
Copy link
Member

Implemented in version 4.15.17

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

2 participants