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

Fix els_parser crash due to erlfmt returning {skip, _} #1483

Merged
merged 1 commit into from
Jan 10, 2024
Merged

Conversation

plux
Copy link
Contributor

@plux plux commented Jan 10, 2024

Description

Erlfmt will skip parsing if it finds pragma @noformat in the text. In order to trick erlfmt to parse the file we replace @noformat with @doformat if we it tries to skip the parsing.

Fixes #1482.

Erlfmt will skip parsing if it finds pragma @noformat in the text.
In order to trick erlfmt to parse the file we @noformat with @doformat
@plux plux merged commit 50a2d57 into main Jan 10, 2024
8 of 12 checks passed
@plux plux deleted the fix-erlfmt-skip branch January 10, 2024 23:51
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

Successfully merging this pull request may close these issues.

Erlang LS crash when source code file use erlfmt pragma noformat
1 participant