Skip to content

Conversation

@axelson
Copy link
Member

@axelson axelson commented Mar 30, 2019

Cherry pick the applicable recent commits from the upstream repository. I included almost everything, main thing missing is the dialyzer changes to use the new format, but we already have the same/similar changes.

JakeBecker and others added 6 commits March 29, 2019 20:19
… builds to fail permanently after an invalid dep specification Mix.Dep.loaded/1 was removed in Elixir 1.9. This was also a problem in the mix_task_archive_deps dependency we use in the release task, so I've updated a fork of that repo and am sending a PR upstream. Also, checking cached deps to look for changed deps can fail, so we now rescue those failures. Fixes #155
…0 because of Mix.Dep.load_on_environment/1 requirement
…stead of request and grab build lock while stale-checking beams Up till now, the reason that the `analyze` is triggered with a GenServer `call` instead of `cast` is just so that a build doesn't happen concurrently (since the build can delete beam files while the Dialyzer server tries to stale-check them). There are other places where the global state changes caused by builds are a problem too, and we added a global "build lock" that processes can grab to avoid this sort of thing. I'm turning "analyze" into a GenServer cast, which allows the main language server to continue servicing requests. The Dialyzer server will grab the build lock while it stale-checks the beam files so it only blocks builds, not the main language server. This also makes it more robust because an exception or exit during analyze won't kill the main language server and the supervisor can restart the Dialyzer server.
@axelson axelson merged commit 22ee2da into elixir-lsp:master Mar 30, 2019
@axelson axelson deleted the cherry-pick-upstream-changes branch March 30, 2019 17:27
@axelson axelson restored the cherry-pick-upstream-changes branch March 30, 2019 17:29
axelson added a commit that referenced this pull request Mar 30, 2019
axelson added a commit that referenced this pull request Mar 30, 2019
@axelson axelson deleted the cherry-pick-upstream-changes branch March 30, 2019 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants