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

Revert "Precompute list of enabled diagnostics" #1197

Merged
merged 1 commit into from
Feb 14, 2022
Merged

Conversation

robertoaloi
Copy link
Member

This reverts commit 2f6decd.

This change introduced a regression in the debugger, preventing it from starting.
The els_dap escript invokes the els_config initialization procedure
(see 4b475b0),
but the new version of the initialization depends on the els_diagnostics module,
which is part of the els_lsp application, not included in the els_dap escript.

For now simply reverting the change, but we should revisit the application structure.
The original idea was for an application to contain the implementation of the JSON-RPC protocol
and for the els_dap and els_lsp to utilize that as a dependency. That never really happened
and the current application split in Erlang LS in its current form feels a bit arbitrary.
One may argue that Erlang LS could get rid of the umbrella structure and be a single application.

This reverts commit 2f6decd.

This change introduced a regression in the debugger, preventing it from starting.
The `els_dap` escript invokes the `els_config` initialization procedure
(see 4b475b0),
but the new version of the initialization depends on the `els_diagnostics` module,
which is part of the `els_lsp` application, not included in the `els_dap` escript.

For now simply reverting the change, but we should revisit the application structure.
The original idea was for an application to contain the implementation of the JSON-RPC protocol
and for the `els_dap` and `els_lsp` to utilize that as a dependency. That never really happened
and the current application split in Erlang LS in its current form feels a bit arbitrary.
One may argue that Erlang LS could get rid of the umbrella structure and be a single application.
@robertoaloi robertoaloi merged commit c371027 into main Feb 14, 2022
@robertoaloi robertoaloi deleted the fix-dap-regression branch February 14, 2022 17:13
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.

None yet

2 participants