-
Notifications
You must be signed in to change notification settings - Fork 87
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
Crash "TypeError: object null is not iterable" for github/docs #112
Comments
Sorry, just realized it is crashing on 0.23.2 as well, I had switched to markdown-cli2 after the initial crash. Trying to step back a few versions now to see if it is new issue or if I can find a particular file |
OK, one of the files that it's crashing on is https://github.com/github/docs/blob/main/content/admin/enterprise-management/differences-between-clustering-and-high-availability-ha.md Stepping through the files to trace down to the individual files that are having the issues, the common point is nested codeblocks under ordered lists that have bad indenting. Some have closing backticks that aren't indented enough, or elements inside that are not indented enough. Can't figure out why the same thing is passing in latest CLI2, but failing in this one |
It doesn’t seem to cause an exception when pasted into https://dlaa.me/markdownlint/. Wonder if your install of CLI is somehow outdated? |
Same when pushing and running in CI https://github.com/nschonni/github-docs/actions/runs/307710095 |
The fixes in nschonni/github-docs@f2f6245 did address it, but I found that there was a folder of "translations" masked in VS Code that I need to reapply the same formatting fixes to |
Both CLI and CLI2 are affected - however, CLI2 reports the error and continues linting while CLI aborts immediately. The following is information about affected files - seemingly all with the same issue. This will be an issue with https://github.com/DavidAnson/markdownlint, not either CLI project.
|
OK, feel free to transfer the issue |
I can’t transfer because it’s a different organization. :) But don’t worry about it, this item is top of my list now. I may do a patch release for the library since this will be the second fix for a never-before-seen crash. |
Ah, right. Too bad the markdownlint org is already taken :(. It would be nice to move them all into one place |
Fixed here: DavidAnson/markdownlint@392cc28 |
Cool, might want to run it on github/docs, as I seem to recall there might have been a crash with MD039 too. That might have just been bad debugger attaching on my part in VS code 😆 |
That was part of my verification - both CLI's now run to completion against the github/docs commit I reference above. :) Let me know when your PR is accepted and I'll add github/docs to the TestRepos action - that's a good idea. |
Cool! Chicken/egg thing. If a new release comes out, I may split that PR that includes the fixes to make it easier to land. There triage queue is a little overloaded right now, but here is the PR if you want to subscribe github/docs#541 |
I published a patch release of the library yesterday evening. At this point, fresh installs of the CLI should install that release with the fix for this. |
I saw that, and had actually fixed that PR yesterday 😄 |
You are too quick! |
Ha, I can ping you when that one lands if you aren't already subscribed to that PR |
I'm not subscribed - ping me. I'll add that repo to the tests. |
Was looking at setting up Markdownlint on the new
Running the 0.24.0 version crashes with the following
Rolling back to 0.23.2 runs without issue.
PS: @DavidAnson might be another good repo for the CITGM/CI setup after I get it running
The text was updated successfully, but these errors were encountered: