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

Add an option to edoc to return the list of errors and warnings #5056

Open
robertoaloi opened this issue Jul 15, 2021 · 2 comments
Open

Add an option to edoc to return the list of errors and warnings #5056

robertoaloi opened this issue Jul 15, 2021 · 2 comments
Labels
enhancement help wanted Issue not worked on by OTP; help wanted from the community team:VM Assigned to OTP team VM

Comments

@robertoaloi
Copy link
Contributor

Is your feature request related to a problem? Please describe.

As part of the Erlang LS project, we would like to add an edoc diagnostics backend that can display documentation warnings and errors to the user directly in the IDE. That would drastically reduce the feedback loop to write Erlang documentation.

Describe the solution you'd like

For that to be possible without duplicating some of the edoc code, it would be great if the edoc high-level API could return the list of warnings and errors. This behaviour could be triggered via a dedicated option, to keep the API backward compatible. The options could be similar to the return_errors and return_warnings of compile:file/2.

Describe alternatives you've considered

Erlang LS could implement a wrapper around the low-level edoc API, intercepting errors and warnings and returning them to the user. This would most likely result in duplicated code and un-necessary maintenance burden.

Additional context

See the original discussion here.

@robertoaloi
Copy link
Contributor Author

Hi @KennethL @garazdawi are there any plans to pick this?

@KennethL
Copy link
Contributor

We want this to happen but can not promise that we can prioritize it before OTP 25. We are hoping to get a PR for this.

@KennethL KennethL added the help wanted Issue not worked on by OTP; help wanted from the community label Nov 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement help wanted Issue not worked on by OTP; help wanted from the community team:VM Assigned to OTP team VM
Projects
None yet
Development

No branches or pull requests

2 participants