# Text help fails in some cases

**URL:** <https://swi-prolog.discourse.group/t/text-help-fails-in-some-cases/6883>\
**Category:** General\
**Created:** [October 12, 2023, 5:50pm UTC](https://swi-prolog.discourse.group/t/text-help-fails-in-some-cases/6883 "2023-10-12T17:50:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![swi](https://avatars.discourse-cdn.com/v4/letter/s/51bf81/32.png) [@swi](https://swi-prolog.discourse.group/u/swi)\
**Post date:** [October 12, 2023, 5:50pm UTC](https://swi-prolog.discourse.group/t/text-help-fails-in-some-cases/6883/1 "2023-10-12T17:50:05Z")

</div>

Sometimes I get an error when trying to get text help:

```prolog
?- help(plunit).
ERROR: Failed to translate to HTML: \man_pages([assert_cyclic/1,begin_test/4,call_det/2,call_ex/2,cleanup/2,cmp/4,condition/3,count_tests/3,current_test/5,current_test_unit/2,end_test/4,end_tests/1,expand/2,expand_test/4,failure/8,info/1,job_finish/3,job_finish/4,job_format/3,job_format/5,job_wait/1,jobs_redraw/0,loading_tests/0,make_run_tests/1,make_unit_module/2,match_error/2,nondet_compare/5,progress/4,progress_string/2,progress_tag/4,reify/2,reify_tmo/3,report/2,report_and_cleanup/3,report_result/4,result_vars/2,run_test/2,run_test/6,run_test_6/6,run_test_7/6,run_test_once/6,run_test_once6/7,run_tests/2,run_tests_in_files/1,run_unit/1,runnable_tests/2,setup/3,setup_jobs/1,test_name_summary/3,test_option/1,test_summary/2,unit_file/2,unit_module/2,valid_options/2],[no_manual(fail),links(false),link_source(false),navtree(false),server(false)])

```

It works for other cases:

```prolog
?- help(aggregate).
% this works and displays the help for library(aggregate)

```

Some time ago I was trying to find the cause of this problem, but was not able. Any ideas what could cause it?

---

<div class="post-metadata">

**Author:** ![jan](https://yyz2.discourse-cdn.com/free1/user_avatar/swi-prolog.discourse.group/jan/32/4_2.png) [@jan](https://swi-prolog.discourse.group/u/jan)\
**Post date:** [October 12, 2023, 6:53pm UTC](https://swi-prolog.discourse.group/t/text-help-fails-in-some-cases/6883/2 "2023-10-12T18:53:25Z")

</div>

For me, I get this.

```prolog
101 ?- help(plunit).
Warning: No help for plunit.
Warning: Use ?- apropos(query). to search for candidates.

```

Ok, after loading plunit I see what you get 🙂

---

<div class="post-metadata">

**Author:** ![peter.ludemann](https://yyz2.discourse-cdn.com/free1/user_avatar/swi-prolog.discourse.group/peter.ludemann/32/48_2.png) [@peter.ludemann](https://swi-prolog.discourse.group/u/peter.ludemann)\
**Post date:** [October 12, 2023, 6:57pm UTC](https://swi-prolog.discourse.group/t/text-help-fails-in-some-cases/6883/3 "2023-10-12T18:57:02Z")

</div>

I can reproduce it – seems to be a problem in `packages/pldoc/doc_man.pl` predicate `man_page//2`.
