Skip to content

Highlight defstruct and Actor, Base modules #45

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

Merged
merged 1 commit into from
May 25, 2014

Conversation

pma
Copy link
Contributor

@pma pma commented May 25, 2014

No description provided.

antifuchs added a commit that referenced this pull request May 25, 2014
Highlight defstruct and Actor, Base modules
@antifuchs antifuchs merged commit 642ee02 into elixir-editors:master May 25, 2014
@antifuchs
Copy link
Contributor

Thanks!

J3RN pushed a commit to J3RN/emacs-elixir that referenced this pull request Apr 24, 2021
* Default to dialyxir_long dialyzer format

* Test each dialyzer test format

Also fix the reporting of diagnostics by using `Task.start_link/1` instead of
`spawn/1`. The issue with spawn is that it would start the process outside of
the supervision tree. So when we called `GenServer.stop/1` in the test the
`ElixirLS.LanguageServer.Server` would stop, which would bring down the
`ElixirLS.LanguageServer.Dialyzer` GenServer, but the
`ElixirLS.LanguageServer.Dialyzer.Manifest` process would keep running. However,
the `ElixirLS.LanguageServer.Dialyzer.Manifest` process depends on an ETS table
owned by `ElixirLS.LanguageServer.Dialyzer`, so the ETS calls would start to
fail. Using `Task.start_link/1` fixes this because it causes the task to die at
the same time that `ElixirLS.LanguageServer.Dialyzer` dies, which means that no
process tries to access a non-existant ETS table.

* Fix dialyzer format test on Elixir 1.9

* Bump OTP minimum version to 20

This is because the dialyzer implementation relies on
`dialyzer_utils:get_core_from_beam/1` which was added in OTP 20 along with the
Dbgi chunk in:

erlang/otp@dfb899c
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