Bug#1036359: crashes with (wrong-type-argument consp nil)
On 2023-06-05 12:16:28, Antoine Beaupré wrote: > Is there something out there that takes a markdown doc as input and > outputs a TOC? Answering my own question, this does what I want: md_toc github -o . < tpa-rfc-36-gitolite-gitweb-retirement.md ... and what I want in many cases is actually: md_toc github -o . < tpa-rfc-36-gitolite-gitweb-retirement.md | sed 's/](#.*//;s/ \[/ /' which is just an ordered list of items, without markdown links. md_toc is part of `python3-md-toc`.
Bug#1036359: crashes with (wrong-type-argument consp nil)
On 2023-06-03 20:41:40, Nicholas D. Steeves wrote: > Nicholas D Steeves writes: > >> I also confirmed that both the patched version (in the staging branch) >> and unpatched version (in bookworm) work correctly with >> >> >> https://gitlab.torproject.org/tpo/tpa/team/-/wikis/policy/tpa-rfc-36-gitolite-gitweb-retirement.md >> >> when one loads markdown-toc and generates the toc before native comp >> kicks in. > > Sorry for not being clear. What I mean is that I believe that this bug > is triggered by native compilation, and that it's unlikely that I'll > find enough time figure out what the upstream issue is before the > autoremoval. Also, upstream hasn't seen any activity since 2021... > > Feel free to forward this bug and/or adopt this package (I don't use > it). You seem to have pasted a link to the TPA GitLab wiki here... Did you mean to paste some other bug report or link there? I think I'm okay with the package being removed from bookworm if we can't find a quick fix here. The release date is just too close. We can always fix this in a point release or get a backport going. Interestingly, it's not marked as autoremoval here though: https://tracker.debian.org/pkg/markdown-toc-el Alternatively, I wonder if there's a way to make a simpler module that would defer the TOC generation to an external command... Is there something out there that takes a markdown doc as input and outputs a TOC? Cheers, a. -- Power is always dangerous. Power attracts the worst and corrupts the best. - Edward Abbey
Bug#1036359: crashes with (wrong-type-argument consp nil)
Nicholas D Steeves writes: > I also confirmed that both the patched version (in the staging branch) > and unpatched version (in bookworm) work correctly with > > > https://gitlab.torproject.org/tpo/tpa/team/-/wikis/policy/tpa-rfc-36-gitolite-gitweb-retirement.md > > when one loads markdown-toc and generates the toc before native comp > kicks in. Sorry for not being clear. What I mean is that I believe that this bug is triggered by native compilation, and that it's unlikely that I'll find enough time figure out what the upstream issue is before the autoremoval. Also, upstream hasn't seen any activity since 2021... Feel free to forward this bug and/or adopt this package (I don't use it). Cheers, Nicholas signature.asc Description: PGP signature
Bug#1036359: crashes with (wrong-type-argument consp nil)
Control: tag -1 -pending Nicholas D Steeves writes: > David Bremner writes: >> >> I agree that markdown file looks innocuous, but do you know if it is >> just this file or any markdown file? > > This bug appears to be native-comp related. After cherry picking three > commits from upstream, I was able to generate a toc for the md snippet > in the initial but report. In the time it took to reply to this bug, > native-comp occurred, and generate-toc began to fail again. I purged > the eln cache and tried again, and it succeeded... I also confirmed that both the patched version (in the staging branch) and unpatched version (in bookworm) work correctly with https://gitlab.torproject.org/tpo/tpa/team/-/wikis/policy/tpa-rfc-36-gitolite-gitweb-retirement.md when one loads markdown-toc and generates the toc before native comp kicks in. signature.asc Description: PGP signature
Bug#1036359: crashes with (wrong-type-argument consp nil)
Antoine Beaupré writes: > On 2023-05-19 14:39:14, Nicholas D Steeves wrote: >> Control: tag -1 confirmed upstream fixed-upstream pending >> Antoine Beaupre writes: >> >>> Package: elpa-markdown-toc >>> Version: 0.1.5-2 >>> Severity: grave >> >>> markdown-toc-generate-toc crashes with: >>> >>> Debugger entered--Lisp error: (wrong-type-argument consp nil) >> >> Thanks for reporting; fix pending! > > Oh interesting! Where can I see it? is there a patch? > git clone g...@salsa.debian.org:emacsen-team/markdown-toc-el.git git checkout for-testing-before-upload > -- > Je n'ai fait celle-ci plus longue que parce que je n'ai pas eu le > loisir de la faire plus courte. > - Blaise Pascal
Bug#1036359: crashes with (wrong-type-argument consp nil)
David Bremner writes: > Antoine Beaupre writes: > >> Package: elpa-markdown-toc >> Version: 0.1.5-2 >> Severity: grave >> >> In Debian bookworm, markdown-toc is currently unusable. >> >> Given the following markdown buffer: >> > > Hi Antoine; > > I agree that markdown file looks innocuous, but do you know if it is > just this file or any markdown file? This bug appears to be native-comp related. After cherry picking three commits from upstream, I was able to generate a toc for the md snippet in the initial but report. In the time it took to reply to this bug, native-comp occurred, and generate-toc began to fail again. I purged the eln cache and tried again, and it succeeded... signature.asc Description: PGP signature
Bug#1036359: crashes with (wrong-type-argument consp nil)
On 2023-05-19 14:39:14, Nicholas D Steeves wrote: > Control: tag -1 confirmed upstream fixed-upstream pending > Antoine Beaupre writes: > >> Package: elpa-markdown-toc >> Version: 0.1.5-2 >> Severity: grave > >> markdown-toc-generate-toc crashes with: >> >> Debugger entered--Lisp error: (wrong-type-argument consp nil) > > Thanks for reporting; fix pending! Oh interesting! Where can I see it? is there a patch? -- Je n'ai fait celle-ci plus longue que parce que je n'ai pas eu le loisir de la faire plus courte. - Blaise Pascal
Bug#1036359: crashes with (wrong-type-argument consp nil)
Control: tag -1 confirmed upstream fixed-upstream pending Antoine Beaupre writes: > Package: elpa-markdown-toc > Version: 0.1.5-2 > Severity: grave > markdown-toc-generate-toc crashes with: > > Debugger entered--Lisp error: (wrong-type-argument consp nil) Thanks for reporting; fix pending! signature.asc Description: PGP signature
Bug#1036359: crashes with (wrong-type-argument consp nil)
On 2023-05-19 15:02:34, David Bremner wrote: > Hi Antoine; > > I agree that markdown file looks innocuous, but do you know if it is > just this file or any markdown file? I managed to have it generate a TOC with a simple: # a # b ## c But it also crashed (ultimately) on: https://gitlab.torproject.org/tpo/tpa/team/-/wikis/policy/tpa-rfc-36-gitolite-gitweb-retirement.md a. -- La perfection est atteinte, non pas lorsqu'il n'y a plus rien à ajouter, mais lorsqu'il n'y a plus rien à retirer. - Antoine de Saint-Exupéry
Bug#1036359: crashes with (wrong-type-argument consp nil)
Antoine Beaupre writes: > Package: elpa-markdown-toc > Version: 0.1.5-2 > Severity: grave > > In Debian bookworm, markdown-toc is currently unusable. > > Given the following markdown buffer: > Hi Antoine; I agree that markdown file looks innocuous, but do you know if it is just this file or any markdown file? d
Bug#1036359: crashes with (wrong-type-argument consp nil)
Package: elpa-markdown-toc Version: 0.1.5-2 Severity: grave In Debian bookworm, markdown-toc is currently unusable. Given the following markdown buffer: ``` # Background ## Why migrate? ## Gitolite and GitWeb inventory # Proposal ``` markdown-toc-generate-toc crashes with: Debugger entered--Lisp error: (wrong-type-argument consp nil) markdown-imenu-create-nested-index() funcall(markdown-imenu-create-nested-index) (markdown-toc--compute-toc-structure (funcall imenu-create-index-function)) (funcall markdown-toc-user-toc-structure-manipulation-fn (markdown-toc--compute-toc-structure (funcall imenu-create-index-function))) (markdown-toc--generate-toc (funcall markdown-toc-user-toc-structure-manipulation-fn (markdown-toc--compute-toc-structure (funcall imenu-create-index-function (insert (markdown-toc--generate-toc (funcall markdown-toc-user-toc-structure-manipulation-fn (markdown-toc--compute-toc-structure (funcall imenu-create-index-function) (save-excursion (if (markdown-toc--toc-already-present-p) (progn (markdown-toc--delete-toc t))) (insert (markdown-toc--generate-toc (funcall markdown-toc-user-toc-structure-manipulation-fn (markdown-toc--compute-toc-structure (funcall imenu-create-index-function)) markdown-toc-generate-toc(nil) funcall-interactively(markdown-toc-generate-toc nil) command-execute(markdown-toc-generate-toc record) execute-extended-command(nil "markdown-toc-generate-toc" nil) funcall-interactively(execute-extended-command nil "markdown-toc-generate-toc" nil) command-execute(execute-extended-command) -- System Information: Debian Release: 12.0 APT prefers testing-security APT policy: (500, 'testing-security'), (500, 'testing-debug'), (500, 'testing'), (1, 'experimental'), (1, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 6.1.0-9-amd64 (SMP w/16 CPU threads; PREEMPT) Locale: LANG=fr_CA.UTF-8, LC_CTYPE=fr_CA.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages elpa-markdown-toc depends on: ii dh-elpa-helper 2.0.16 ii elpa-dash 2.19.1+git20220608.1.0ac1ecf+dfsg-1 ii elpa-markdown-mode 2.5-1 ii elpa-s 1.12.0-5 ii emacsen-common 3.0.5 Versions of packages elpa-markdown-toc recommends: ii emacs 1:28.2+1-14 ii emacs-gtk [emacs] 1:28.2+1-14 elpa-markdown-toc suggests no packages. -- no debconf information