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

Fix DAP not finding the source for a module #1084

Merged
merged 1 commit into from
Sep 18, 2021

Conversation

maxno-kivra
Copy link
Contributor

Description

This makes the els_dap_rpc try much harder to find the source, by first
asking int:file/1, then code and filelib:find_source/1 and
finally falling back to the current behaviour of using module_info
and checking the source compilation option.

This allows you to build dependencies/OTP in one place, and run it from
another.

This makes the els_dap_rpc try much harder to find the source, by first
asking `int:file/1`, then `code` and `filelib:find_source/1` and
finally falling back to the current behaviour of using `module_info`
and checking the `source` compilation option.

This allows you to build dependencies/OTP in one place, and run it from
another.
@robertoaloi robertoaloi merged commit b6dc349 into erlang-ls:main Sep 18, 2021
@robertoaloi
Copy link
Member

Nice, thanks!

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