-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong type argument: consp, nil #51
Comments
@rotdrop I had the same issue. Please try playing with |
Looks like I have a regression and the issue is back. If you need my help for debugging @sochotnicky, I would be happy to help :) |
This change specifically fixes this bug for me: ardumont/markdown-toc#51 IIUC, `#` is used to inform the byte-compiler that the expression can be byte-compiled. But in this case there is nothing to compile since it's a symbol.
The PR here fixes it for me: jrblevin/markdown-mode#721 Can you give it a try to see if it fixes for you too ? |
Difficult to tell. The bug was still there as of today. Then I manually applied your changes and the bug went away. But I had also removed the eln-cache in between. Now I have removed the eln-cache again and restored the original markdown-mode.el and the bug is -- still not there. So I do not known whether this is a crazy interaction with the native compilation mode. |
I get the same bug with latest GIT and ELPA version as well.
If I have a simple file like this it fails to generate TOC.
GNU Emacs 28.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.24, cairo version 1.16.0) of 2023-01-30, modified by Debian This fixed it for me: jrblevin/markdown-mode#578 (comment) Not sure if my post is any helpful since I don't know lisp. If it is something already known, ignore it. |
Hello,
Please, provide the following information and remove the useless parts.
Thanks in advance.
bug -> yes, I suppose
M-x markdown-toc-bug-report
Expected behavior
What command did you use and what were you expecting?
markdown-toc-generate-toc
,markdown-toc-refresh-toc
,markdown-toc-generate-or-refresh-toc
Actual behavior
When running the command
markdown-toc-generate-toc
I get the errorWrong type argument: consp, nil
with the following test-file:When I remove the second-level heading the toc is generated successfully.
Steps to reproduce the behavior
How can we try and reproduce?
See above, simple example mark-down code.
Thanks for sharing!
Cheers,
The text was updated successfully, but these errors were encountered: