Documentation text does not show up when working on Erlang files, but do show for built-in code.
2025-01-28 14:25:18,478 - DEBUG - GET b'http://127.0.0.1:40665/ready' (None)
{'content-type': 'application/json', 'x-ycm-hmac': b'MUXESDkInOqPI+bqbKDCGjDaFDvJ7fxe0zONyaGfhv4='}
2025-01-28 14:25:18,493 - ERROR - <urlopen error [Errno 111] Connection refused>
2025-01-28 14:25:18,594 - DEBUG - GET b'http://127.0.0.1:40665/ready' (None)
{'content-type': 'application/json', 'x-ycm-hmac': b'MUXESDkInOqPI+bqbKDCGjDaFDvJ7fxe0zONyaGfhv4='}
2025-01-28 14:25:18,600 - DEBUG - GET b'http://127.0.0.1:40665/signature_help_available?subserver=erlang' ({'subserver': 'erlang'})
{'content-type': 'application/json', 'x-ycm-hmac': b'w4FYdhrtf0UOpBOg07ZBNftKESApT2jyJRX6qTSTY/A='}
2025-01-28 14:25:18,667 - DEBUG - POST b'http://127.0.0.1:40665/event_notification'
{'content-type': 'application/json', 'x-ycm-hmac': b'j1bM0E9f/0bY0IErlDzDY+S5p8no3ck0hlS7b2+aDVY='}
b'{"filepath": "/tmp/erlang_ls_vim_test.erl", "line_num": 1, "column_num": 1, "working_dir": "/tmp", "file_data": {"/tmp/erlang_ls_vim_test.erl": {"contents": "-module(erlang_ls_vim_test).\\n\\n-export([do_it_doc_functions/1, do_it_doc_specs/0, uses_a_bif/0]).\\n\\n-doc \\"\\"\\"\\nThis line should show up but does not\\n\\"\\"\\".\\ndo_it_doc_functions(_Ignored) -> ok.\\n\\n-doc \\"\\"\\"\\nThis line should show up but does not\\n\\"\\"\\".\\n-spec do_it_doc_specs() -> wat.\\ndo_it_doc_specs() -> wat.\\n\\nuses_a_bif() -> exit(woot).\\n", "filetypes": ["erlang"]}}, "ultisnips_snippets": [{"trigger": "def", "description": ""}, {"trigger": "modall", "description": ""}, {"trigger": "asn", "description": ""}, {"trigger": "%p", "description": ""}, {"trigger": "%s", "description": ""}, {"trigger": "fun", "description": ""}, {"trigger": "LGPL2", "description": ""}, {"trigger": "LGPL3", "description": ""}, {"trigger": "GMGPL", "description": "linking exception"}, {"trigger": "incl", "description": ""}, {"trigger": "foldp", "description": "Insert a vim fold marker pair"}, {"trigger": "diso", "description": "ISO format datetime"}, {"trigger": "rcv", "description": "Receive Expression"}, {"trigger": "asexc", "description": ""}, {"trigger": "MPL2", "description": ""}, {"trigger": "c)", "description": ""}, {"trigger": "modeline", "description": "Vim modeline"}, {"trigger": "aseq", "description": ""}, {"trigger": "aserr", "description": ""}, {"trigger": "asex", "description": ""}, {"trigger": "testsuite", "description": ""}, {"trigger": "beh", "description": ""}, {"trigger": "box", "description": "A nice box with the current comment symbol"}, {"trigger": "supervisor", "description": ""}, {"trigger": "asneq", "description": ""}, {"trigger": "gen_fsm", "description": ""}, {"trigger": "d", "description": ""}, {"trigger": "exp", "description": ""}, {"trigger": "MIT", "description": ""}, {"trigger": "||", "description": "List Comprehension"}, {"trigger": "itest", "description": ""}, {"trigger": "bbox", "description": "A nice box over the full width"}, {"trigger": "dt", "description": ""}, {"trigger": "BEERWARE", "description": ""}, {"trigger": "test", "description": ""}, {"trigger": "gen_event", "description": ""}, {"trigger": "foldc", "description": "Insert a vim fold close marker"}, {"trigger": "GPL2", "description": ""}, {"trigger": "GPL3", "description": ""}, {"trigger": "time", "description": "hh:mm"}, {"trigger": "ieunit", "description": ""}, {"trigger": "mod", "description": "Module Directive"}, {"trigger": "gen", "description": "Generator Expression"}, {"trigger": "WTFPL", "description": ""}, {"trigger": "undef", "description": ""}, {"trigger": "ifd", "description": ""}, {"trigger": "fold", "description": "Insert a vim fold marker"}, {"trigger": "lorem", "description": ""}, {"trigger": "pat", "description": "Case:Receive:Try Clause"}, {"trigger": "case", "description": ""}, {"trigger": "todo", "description": "TODO comment"}, {"trigger": "date", "description": "YYYY-MM-DD"}, {"trigger": "as", "description": ""}, {"trigger": "gen_server", "description": ""}, {"trigger": "AGPL3", "description": ""}, {"trigger": "uuid", "description": "Random UUID"}, {"trigger": "try", "description": ""}, {"trigger": "inc", "description": ""}, {"trigger": "asnmat", "description": ""}, {"trigger": "if", "description": ""}, {"trigger": "ddate", "description": "Month DD, YYYY"}, {"trigger": "BSD2", "description": ""}, {"trigger": "BSD3", "description": ""}, {"trigger": "BSD4", "description": ""}, {"trigger": "rec", "description": ""}, {"trigger": "ifnd", "description": ""}, {"trigger": "datetime", "description": "YYYY-MM-DD hh:mm"}, {"trigger": "ISC", "description": ""}, {"trigger": "AGPL", "description": ""}, {"trigger": "application", "description": ""}, {"trigger": "eunit", "description": ""}, {"trigger": "asmat", "description": ""}, {"trigger": "APACHE", "description": ""}, {"trigger": "%d", "description": ""}, {"trigger": "%e", "description": ""}], "event_name": "BufferVisit"}'
2025-01-28 14:25:18,669 - DEBUG - POST b'http://127.0.0.1:40665/event_notification'
{'content-type': 'application/json', 'x-ycm-hmac': b'nOdaeS+CFVFiY71PQAuh/mwwmd5CAARlT823g262550='}
b'{"filepath": "/tmp/erlang_ls_vim_test.erl", "line_num": 1, "column_num": 1, "working_dir": "/tmp", "file_data": {"/tmp/erlang_ls_vim_test.erl": {"contents": "-module(erlang_ls_vim_test).\\n\\n-export([do_it_doc_functions/1, do_it_doc_specs/0, uses_a_bif/0]).\\n\\n-doc \\"\\"\\"\\nThis line should show up but does not\\n\\"\\"\\".\\ndo_it_doc_functions(_Ignored) -> ok.\\n\\n-doc \\"\\"\\"\\nThis line should show up but does not\\n\\"\\"\\".\\n-spec do_it_doc_specs() -> wat.\\ndo_it_doc_specs() -> wat.\\n\\nuses_a_bif() -> exit(woot).\\n", "filetypes": ["erlang"]}}, "tag_files": [], "syntax_keywords": ["link", "monitor", "error", "port_command", "and", "self", "group_leader", "make_ref", "try", "put", "spawn_monitor", "tl", "port_close", "is_pid", "bxor", "max", "is_record", "end", "orelse", "size", "get", "unlink", "bsl", "pre_loaded", "now", "setelement", "date", "port_connect", "case", "length", "tuple_size", "xor", "unregister", "throw", "tuple_to_list", "atom_to_list", "is_bitstring", "iolist_size", "map_size", "rem", "list_to_bitstring", "bsr", "spawn", "register", "of", "bnot", "is_float", "demonitor", "erase", "binary_to_atom", "monitor_node", "disconnect_node", "list_to_float", "is_boolean", "binary_to_existing_atom", "binary_to_list", "float_to_binary", "list_to_pid", "trunc", "registered", "if", "begin", "is_list", "bor", "min", "else", "float", "not", "andalso", "node", "is_process_alive", "process_flag", "div", "fun", "check_old_code", "whereis", "list_to_atom", "band", "exit", "is_tuple", "byte_size", "pid_to_list", "list_to_tuple", "or", "apply", "abs", "hd", "check_process_code", "is_number", "process_info", "false", "split_binary", "term_to_binary", "binary_to_float", "iolist_to_binary", "list_to_integer", "round", "when", "statistics", "is_atom", "time", "halt", "nodes", "binary_to_term", "load_module", "open_port", "list_to_existing_atom", "binary_to_integer", "is_map", "is_reference", "purge_module", "module_loaded", "concat_binary", "is_port", "spawn_opt", "maybe", "is_alive", "bitstring_to_list", "spawn_link", "process", "cond", "alive", "is_integer", "atom_to_binary", "garbage_collect", "receive", "integer_to_binary", "element", "let", "integer_to_list", "after", "is_function", "is_binary", "list_to_binary", "float_to_list", "get_keys", "binary_part", "bit_size", "catch", "is_map_key", "true", "delete_module"], "event_name": "FileReadyToParse"}'
Describe the bug
Documentation text does not show up when working on Erlang files, but do show for built-in code.
To Reproduce
sudo pacman -S gvimjunegunn/vim-plugplug-in manager that'd look a bit like;ycm-core/lsp-examplesPR#44 to install Erlang LS. Which in pure Bash, I.E. without any Python wrapping, might look something like;do_it_doc_functionsand/ordo_it_doc_specs, then in Vim Ex mode run:YcmCompleter GetHoverto force client to request info from Erlang LSExpected behavior
I expect
-doc """Text""".to be discovered/displayed for custom functions, and other code, similar to how-doc """Text""".is discovered/displayed when hovering over built-in/standard-library codeActual behavior
do_it_doc_functionsand via Vim Ex mode execute:YcmCompleter GetHover, and one gets the following;do_it_doc_specsand via Vim Ex mode execute:YcmCompleter GetHover, and one gets the following;exitand via Vim Ex mode execute:YcmCompleter GetHover, and one gets the following;Context
erlang_lsversion (tag/sha): shab8724fb8402c822da5e6d36d1711ac67fef76389ycm-core/lsp-examplesPR#44 installation and configurationvimgrep-ing showed the following file locations may be where-docparsing behaviors are definedClient/Server Logs After opening file