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

Wrong error message when too many nested context expressions #4171

Open
1 task done
MDLC01 opened this issue May 17, 2024 · 0 comments
Open
1 task done

Wrong error message when too many nested context expressions #4171

MDLC01 opened this issue May 17, 2024 · 0 comments
Labels
bug Something isn't working diagnostics Improvements to compiler errors scripting About Typst's coding capabilities

Comments

@MDLC01
Copy link
Contributor

MDLC01 commented May 17, 2024

Description

When a document contains too many nested context expressions, the error message is "maximum show rule depth exceeded", which is wrong.

This can be reproduced with the following code on 0.11.0 and main:

#context context context context context context context context context context context context context context context context context context context context context context context context context context context context context context context context context context context context context context context context context context context context context context context context context context context context context context context context context context context context context context context context context "broken"

Same problem with nested layout calls:

#layout(_ => layout(_ => layout(_ => layout(_ => layout(_ => layout(_ => layout(_ => layout(_ => layout(_ => layout(_ => layout(_ => layout(_ => layout(_ => layout(_ => layout(_ => layout(_ => layout(_ => layout(_ => layout(_ => layout(_ => layout(_ => layout(_ => layout(_ => layout(_ => layout(_ => layout(_ => layout(_ => layout(_ => layout(_ => layout(_ => layout(_ => layout(_ => layout(_ => "broken")))))))))))))))))))))))))))))))))

Reproduction URL

No response

Operating system

Web app, Windows

Typst version

  • I am using the latest version of Typst
@MDLC01 MDLC01 added the bug Something isn't working label May 17, 2024
@Enivex Enivex added diagnostics Improvements to compiler errors scripting About Typst's coding capabilities labels May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working diagnostics Improvements to compiler errors scripting About Typst's coding capabilities
Projects
None yet
Development

No branches or pull requests

2 participants