-
Notifications
You must be signed in to change notification settings - Fork 120
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
erl -man <module name> doesn't work #310
Comments
There's a very recent upstream fix in kerl/kerl#520 for this, currently only on the main branch. You can recompile with $ export ASDF_KERL_VERSION=master
export KERL_BUILD_DOCS=yes
export KERL_DOC_TARGETS="chunks man"
export KERL_INSTALL_MANPAGES=yes
$ asdf install erlang 26.2.5
Downloading kerl...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 82416 100 82416 0 0 1787k 0 --:--:-- --:--:-- --:--:-- 1829k
ERROR: 'asdf_26.2.5' is not a kerl-managed Erlang/OTP installation.
ERROR: no build named 'asdf_26.2.5'!
Downloading (from GitHub) Erlang/OTP 26.2.5 to /home/juan/.asdf/downloads/erlang/26.2.5...
Extracting source code for normal build...
Building (normal) Erlang/OTP 26.2.5 (asdf_26.2.5); please wait...
Initializing (build) log file at /home/juan/.asdf/plugins/erlang/kerl-home/builds/asdf_26.2.5/otp_build_26.2.5.log.
Building docs...
Erlang/OTP 26.2.5 (asdf_26.2.5) has been successfully built.
Cleaning up compilation products for 'asdf_26.2.5' under:
- /home/juan/.asdf/plugins/erlang/kerl-home/builds...
- /home/juan/.asdf/downloads/erlang/26.2.5...
... done.
$ asdf global erlang 26.2.5
$ erl -man erl erl(1) User Commands erl(1)
NAME
erl - The Erlang emulator. |
Once a new version of kerl is tagged I'll get this fix into asdf-erlang. |
This seems to be fixed in 4468afe by pulling in kerl 4.1.1. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Previously reported and fixed in #22
A strace of
erl -man erl
shows it tryingThe only 'man' directory under ~/.asdf that I have is empty, ~/.asdf/installs/erlang/26.2.5/erts-14.2.5/man
workaround
Open module documentation with
xdg-open https://www.erlang.org/doc/man/$module
instead. I.e.,Manpages have many advantages that this misses, such as always being for the correct version of Erlang.
post-build fix
The text was updated successfully, but these errors were encountered: