Skip to content
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

Extension markdown-task-list-items triggers "Plugin id 'MD018' had a critical failure during the 'next_token' action." #1267

Open
8 tasks done
skwde opened this issue Nov 21, 2024 · 2 comments

Comments

@skwde
Copy link

skwde commented Nov 21, 2024

Prerequisites

  • Are you running the latest version of this application?
  • Have you checked the Frequently Asked Questions document?
  • Have you simplified the bug report to the essential details?
    • Do you have a distinct command line to report?
    • Can you clearly state the configuration for this bug report?
    • Do you have a minimal document that highlights this bug?
    • Are any required files (configuration or Markdown document) attached to the issue?
  • Did you perform a cursory search of other issues to look for related issues?

Bug Report

The test.md

---
title: abc
---

- [ ] abc

```

with the `.pymarkdown.yml`

```yml
extensions:
  markdown-task-list-items:
    enabled: true
```

 triggers

```out
test.md:1:1: MD041: First line in file should be a top level heading (first-line-heading,first-line-h1)
test.md:2:1: MD022: Headings should be surrounded by blank lines. [Expected: 1; Actual: 0; Above] (blanks-around-headings,blanks-around-headers)


BadPluginError encountered while scanning 'test.md':
(5,3): Plugin id 'MD018' had a critical failure during the 'next_token' action.
```

when running via

```sh
pymarkdown --config .pymarkdown.yml scan test.md
```

### Bug Type

* [ ] Assertion Failure
* [ ] Documentation
* [x] Scan/Rule not working as expected
* [ ] Fix/Rule not working as expected
* [ ] Other
  [Other reason]

### Specifics

```sh
$ cat /etc/os-release 
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
```

```sh
$ pymarkdown version
0.9.25
```

### Actual Behavior

Use the plugin.

### Expected Behavior

No error

```out
BadPluginError encountered while scanning 'test.md':
(5,3): Plugin id 'MD018' had a critical failure during the 'next_token' action.
```
@jackdewinter
Copy link
Owner

this should have been fixed in last nights release. can you confirm?

@skwde
Copy link
Author

skwde commented Dec 11, 2024

I can confirm that with 0.9.26 the problem is no longer present

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants