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

Recover from parse errors #16

Open
11poe opened this issue Dec 26, 2024 · 1 comment
Open

Recover from parse errors #16

11poe opened this issue Dec 26, 2024 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@11poe
Copy link

11poe commented Dec 26, 2024

When pesde experiences a parse error in a package, it quits. This means users must manually patch these packages, even though the code may be fully valid Luau code. The parser, full-moon, isn't always up to date with the latest features, so pesde needs some kind of recovery mechanism in the event of a parse error.

In the end, it boils down to finding as much information as possible in the files with parse errors and using that, as well as not affecting anything else. If the parser doesn't retrieve any useful information at all, this means pesde would simply skip that file.

It may still be useful to emit a warning of some sort, to notify users about parse errors.

@daimond113
Copy link
Member

Thanks for the issue! This will be fixed in pesde 0.6.

@daimond113 daimond113 added enhancement New feature or request good first issue Good for newcomers labels Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants