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

Parse incomplete text #1146

Merged
merged 1 commit into from
Dec 12, 2021
Merged

Parse incomplete text #1146

merged 1 commit into from
Dec 12, 2021

Conversation

gomoripeti
Copy link
Contributor

In case of unparsable forms, try removing some trailing tokens, this way the
first half of the form could be parsed and POIs extracted.

related to #1037

@robertoaloi
Copy link
Member

@michalmuskala Would it be possible to review/merge/release WhatsApp/erlfmt#325 ? Then we wouldn't need to pin the fork for erlfmt.

apps/els_lsp/src/els_parser.erl Show resolved Hide resolved
apps/els_lsp/src/els_parser.erl Show resolved Hide resolved
apps/els_lsp/src/els_parser.erl Show resolved Hide resolved
@robertoaloi
Copy link
Member

This is amazing! It should drastically improve ergonomics while writing new code.

rebar.config Outdated
@@ -12,7 +12,8 @@
, {docsh, "0.7.2"}
, {elvis_core, "1.1.1"}
, {rebar3_format, "0.8.2"}
, {erlfmt, "1.0.0"}
%%, {erlfmt, "1.0.0"}
, {erlfmt, {git, "https://github.com/gomoripeti/erlfmt.git", {branch, "parser_error_loc"}}} %% Temp until PR is merged
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agree, this PR should only be merged after the erlfmt PR

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gomoripeti If this is the only thing left, should we merge this and bump it as a follow up?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I should add a hash or tag instead of a branch.
Michal provided some feedback on the PR so my branch might need modifications (and might move)

@gomoripeti gomoripeti force-pushed the incomplete branch 2 times, most recently from d83f9e2 to 3967521 Compare December 4, 2021 11:45
In case of unparsable forms, try removing some trailing tokens, this way the
first half of the form could be parsed and POIs extracted.

related to erlang-ls#1037
@robertoaloi
Copy link
Member

Thanks!

@gomoripeti gomoripeti deleted the incomplete branch December 12, 2021 23:14
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.

2 participants