-
Notifications
You must be signed in to change notification settings - Fork 138
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
Fetching OTP docs fails for some functions #754
Comments
Otherwise erlang_ls crashes on certain hover requests. This is an emergency fix against the 0.4.1 branch
I am getting this problem too, with OTP 23.1.1. In erlang_ls.erl, I log
|
And the emergency workaround we are deploying internally is 1939063, which just disables use of the shell docs. |
This has to do with trying to detect if the printing shell supports unicode in order to print nice unicode bullet-points :). The call that is made is |
Of course! And since for the STDIO transport we use a Line 105 in 7dcbad1
|
I will add options to shell_docs:render so that you can control that via options instead of reading it from the group leader. I'll put it into OTP-23.2, so for releases before that you need to work with the group leader and return an encoding. |
Could we use the original values (from the spawning process) instead? |
Otherwise the shell_docs:render does not receive an encoding, and causes a crash when requesting information for hover requests. Closes #754
[#754] Return the original io:getopts/0 values in noop_group_leader.
Other similar functions such as
gen_server:cast
work fine.The text was updated successfully, but these errors were encountered: