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

Error tolerance/recovery in styles #105

Open
gusinacio opened this issue Nov 25, 2024 · 1 comment
Open

Error tolerance/recovery in styles #105

gusinacio opened this issue Nov 25, 2024 · 1 comment

Comments

@gusinacio
Copy link

This repo is great when the code is correct but while you are developing, the code is not correct all the time.

This package is missing some auto recovery like the LSP recently got. Usually, all the code gets grayed out because of a mistake in part of it.

A few examples:

  • when you are creating a type
Screenshot 2024-11-24 at 19 02 31
  • if you start a type with lowercase
Screenshot 2024-11-24 at 19 02 59
  • while creating your case
Screenshot 2024-11-24 at 19 04 44

There might have other cases that I'm not aware of. I'm going to post in the comments about it

@the-mikedavis
Copy link
Member

This is not really actionable in this repo. tree-sitter does some generic error recovery during parsing but it doesn't seem to work well with Gleam's syntax. Maybe that could be improved upstream somehow.

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