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

Display the AST even with syntax errors #11147

Merged
merged 1 commit into from Apr 25, 2024
Merged

Conversation

dhruvmanila
Copy link
Member

@dhruvmanila dhruvmanila commented Apr 25, 2024

Summary

This PR updates the playground to display the AST even if it contains a syntax error. This could be useful for development and also to give a quick preview of what error recovery looks like.

Note that not all recovery is correct but this allows us to iterate quickly on what can be improved.

Test Plan

Build the playground locally and test it.

Screenshot 2024-04-25 at 21 02 22

@dhruvmanila dhruvmanila added internal An internal refactor or improvement playground A playground-specific issue labels Apr 25, 2024
Copy link
Contributor

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

@dhruvmanila dhruvmanila merged commit 1c9f5e3 into main Apr 25, 2024
18 checks passed
@dhruvmanila dhruvmanila deleted the dhruv/playground-ast branch April 25, 2024 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal An internal refactor or improvement playground A playground-specific issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants