Skip to content

erlang_ls: Look for lib includes in extra_deps (backport #7300) (backport #7302) #7308

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
Feb 15, 2023

Conversation

mergify[bot]
Copy link

@mergify mergify bot commented Feb 15, 2023

This is an automatic backport of pull request #7302 done by Mergify.


Mergify commands and options

More conditions and actions can be found in the documentation.

You can also trigger Mergify actions by commenting on this pull request:

  • @Mergifyio refresh will re-evaluate the rules
  • @Mergifyio rebase will rebase this PR on its base branch
  • @Mergifyio update will merge the base branch into this PR
  • @Mergifyio backport <destination> will backport this PR on <destination> branch

Additionally, on Mergify dashboard you can:

  • look at your merge queues
  • generate the Mergify configuration with the config editor.

Finally, you can contact us on https://mergify.com

This fixes ErlangLS include lookups for `include_lib` attributes like

```erl
-include_lib("khepri/lib/include.hrl").
```

when running erlang_ls and building with Bazel.

`khepri` ends up in the `extra_deps` directory as a symlink after
running `bazel run //tools:symlink_deps_for_erlang_ls`, so this change
picks up that `khepri` directory as a lib for `include_lib`s.

(cherry picked from commit df82745)
(cherry picked from commit 8e55ebd)
@HoloRin HoloRin merged commit 68bbebb into v3.11.x Feb 15, 2023
@mergify mergify bot deleted the mergify/bp/v3.11.x/pr-7302 branch February 15, 2023 14:05
the-mikedavis added a commit that referenced this pull request Feb 15, 2023
erlang_ls: Look for lib includes in extra_deps (backport #7300) (backport #7302) (backport #7308)
michaelklishin added a commit that referenced this pull request Feb 15, 2023
erlang_ls: Look for lib includes in extra_deps (backport #7300) (backport #7302) (backport #7308) (backport #7310)
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