ldoc appears to be incorrectly packaged without builtin markdown.lua, installing lua-markdown doesn't help

Bug #1868550 reported by ellie
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lua-ldoc (Ubuntu)
New
Undecided
Unassigned

Bug Description

It appears that ldoc appears to be incorrectly packaged without builtin markdown.lua. In the original source repo, ldoc has this in its main source code dir: https://raw.githubusercontent.com/stevedonovan/LDoc/master/ldoc/markdown.lua However, in /usr/share/lua/5.3/ldoc this file is missing.

When I run ldoc on my project, I get this error and all markdown pages end up broken:

    format: markdown not found, falling back to text

And when I do this, it fixes things:

    cd /usr/share/lua/5.3/ldoc && wget https://raw.githubusercontent.com/stevedonovan/LDoc/master/ldoc/markdown.lua

So the problem really seems to be this missing markdown.lua file. If the point was to make it use lua-markdown instead, I installed that package and that didn't fix anything so that doesn't seem to work. Hence I recommend adding back in the built-in one so this doesn't end up broken.

ProblemType: Bug
DistroRelease: Ubuntu 19.10
Package: lua-ldoc 1.4.6-1 [modified: usr/bin/ldoc]
ProcVersionSignature: Ubuntu 5.3.0-40.32-generic 5.3.18
Uname: Linux 5.3.0-40-generic x86_64
ApportVersion: 2.20.11-0ubuntu8.4
Architecture: amd64
Date: Mon Mar 23 13:08:29 2020
PackageArchitecture: all
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: lua-ldoc
UpgradeStatus: Upgraded to eoan on 2020-03-01 (22 days ago)

Revision history for this message
ellie (et1234567) wrote :
Revision history for this message
Victor Seva (linuxmaniac) wrote :

You need lua-markdown package. ldoc markdown.lua is not included in the package, yes.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.