Giesch

Giesch

Erlang docs with asdf-vm

I’m using asdf-vm, and trying to get documentation lookup for erlang modules to work.

I compiled erlang with docs, and I can run (eg) ‘erl -man timer’ to get a man page. But in iex, if I run ‘h :timer’, I get ‘:timer was not compiled with docs’.

I’m wondering if this is just not supported yet because of doc formats, or if I have some version mismatch with the asdf precompiled elixir binary.

Here’s the versions I’m using:

$ elixir --version
Erlang/OTP 21 [erts-10.1] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:1] [hipe]

Elixir 1.8.1 (compiled with Erlang/OTP 21)

$ cat ~/.tool-versions
erlang 21.1
elixir 1.8.1-otp-21

Ultimately, what I want is to be able to look up erlang functions’ docs in emacs with ‘,-h-h’ via the lsp.

Most Liked

Eiji

Eiji

In this topic:

There is a link to Erlang’s bug tracker:

In which there is a comment:

Kenneth Lundin added a comment - 22/Nov/18 2:57 PM

Hi,

I will try to make some progress regarding this in OTP soon and at least take a decision about what to do about this for the OTP 22 release.

Finally there is 22.0-rc1 version of Erlang in asdf-erlang plugin, but I did not tried it yet. As you can see issue have still open status and it’s also not yet resolved, so it’s most probably not yet added to it.

For more information you would need to ask somebody from Erlang Core Team as I did not yet found anything other. Maybe somebody is already working on this … Author of previously mentioned comment is assigned to this ticket, so there is a chance to see stable support for it really soon.

NobbZ

NobbZ

Which packages are this? Please be aware that the installer might tell you to install libwx but you actually need libwx-devel or something. Most Linux distributions do this separation of libraries and their header files.

brightball

brightball

Following the instructions here:

I’m not in front of it right now, but from memory it would be missing wx, fop, xsltproc, and odbc

Where Next?

Popular in Questions Top

gshaw
What is the idiomatic way of matching for not nil in Elixir? E.g., First way: defp halt_if_not_signed_in(conn, signed_in_account) when...
New
openscript
Hello! Sorry for this astonishing simple question, but I’m really stuck. I try to set up the intellij-elixir plugin, but I don’t know ho...
New
itssasanka
Hi all, Trying to get some more clarity over utc_datetime and naive_datetime for Ecto: https://hexdocs.pm/ecto/Ecto.Schema.html#module-...
New
aalberti333
As the title describes, I’m trying to run Enum.map() over a list of key/value pairs, where the value is a map. My data looks like this: ...
New
sergio_101
I am VERY much an elixir newbie. I have taken one elixir course and one phoenix course on Udemy. During that course, I saw the instructor...
New
SoCreat
i’m a new one to elixir which editor can i use vs code? or atom? Thanks! :smiley:
New
hariharasudhan94
I would like to know what is the best IDE for elixir development?
New
stefanchrobot
What’s the safe way to decode a JSON string into a struct? I want to avoid calling String.to_atom. Jason.decode can give me a map with st...
New
myronmarston
The Elixir Typespec docs show the following syntax for keyword lists in typespecs: # ... | [key: type] # keyword lis...
New
mathew4509
I have a list say x = ["23gh", "56kh", "97mh"] I would like to pass each element to Val in each iteration. Say, in iteration 1 -------...
New

Other popular topics Top

Qqwy
Update: How to use the Blogs & Podcasts section You can post links to your blog posts or podcasts either in one of the Official Blog...
3268 119930 1237
New
albydarned
Hello all! I am typing this post from my new MacBook Pro with the M1 chip. I’m loving it so far, and will probably use it as my daily dr...
New
sergio_101
I am VERY much an elixir newbie. I have taken one elixir course and one phoenix course on Udemy. During that course, I saw the instructor...
New
malloryerik
Hi, this is for people who, like me, have had some friction using .html.heex templates in VSCode. The solution seems to be, in a hyphena...
New
KronicDeth
Elixir plugin for JetBrain’s IntelliJ Platform (including Rubymine) This is a plugin that adds support for Elixir to JetBrains IntelliJ...
289 35421 110
New
chrismccord
As promised, the first release candidate of Phoenix 1.3.0 is out! This release focuses on code generators with improved project structure...
New
myronmarston
The Elixir Typespec docs show the following syntax for keyword lists in typespecs: # ... | [key: type] # keyword lis...
New
danschultzer
None of the current solutions worked well for me, so I went ahead and built a user management system from scratch. This project took far...
548 27727 240
New
Patoshizzle
After calling mix ecto.create I get this error: 17:00:32.162 [error] GenServer #PID<0.412.0> terminating ** (Postgrex.Error) FATAL...
New
9mm
I am constructing a JSON object (map) and I need to conditionally set a field. I’m trying to write proper elixir-way code… and I’m at a l...
New

We're in Beta

About us Mission Statement