-
Notifications
You must be signed in to change notification settings - Fork 136
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
[#762] add include dir option of deps for compiler diagnostics #764
Conversation
If an erlang file has a hrl included the compiler diagnostics raises an error because it is not included in the operation. Fix needs that the dependency directory is configured correctly. Related erlang-ls#762
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a test to show this usage?
Hi, Should I add an example project under |
If possible do it under Or, modify one of the existing projects under |
10912a2
to
fe80b56
Compare
Okay, thanks for the answer, added a test. I see there is an other option for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Hi @luos This feature should already be available, but is configuration is probably a bit tricky. Something like this should work for your case:
But we could consider this to avoid the manual step. Any thought @jfacorro ? Also, this should all go away once we integrate with the BSP part. |
Okay, thanks, I'll check it out and report back if it works with that settings. Yes, it would be better to automagically pick up Erlang MK / Rebar style structure, but if it needs to be configured that is fine as well. :-) Thanks |
@luos This PR has been sitting here for a huge amount of time, so sorry about that! Is this change something you still need? Should we solve conflicts? |
Hi, Let me check it again, I believe maybe it was solved in one of the newer versions as I have not run into this since. Thanks, |
Hi, Sorry for the late reply. It still does not work for me. Pull this repo: Pull the deps by running My
The error I get is this: Probably as a fix isntead of introducing As I see currently Thanks |
Hi! The following should work:
I know, it's awkward right now. One entry is for the |
Closing for lack of activity. The proposed solution should work without requiring changes. If that's not the case, feel free to reopen. |
If an erlang file has a hrl included the compiler diagnostics raises an
error because it is not included in the arguments for the compile call.
Fix needs that the dependency directory is configured correctly in the
erlang_ls.config
file.Related #762