DavidAnson / vscode-markdownlint

Markdown linting and style checking for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=DavidAnson.vscode-markdownlint
MIT License
894 stars 166 forks source link

Markdown lint errors when opening Codespaces #325

Closed pamelafox closed 4 months ago

pamelafox commented 4 months ago

I got these errors in several Codespaces this morning:

[4:11:53 PM] ERROR: Exception while linting with markdownlint-cli2:
AggregateError: Unable to require or import module '{docsmsft.docs-linting}/markdownlint-custom-rules/rules.js'.
AggregateError: Unable to require or import module '{docsmsft.docs-linting}/markdownlint-custom-rules/rules.js'.
    at C (/home/vscode/.vscode-remote/extensions/davidanson.vscode-markdownlint-0.54.0/bundle.js:37:7116)
    at async Promise.all (index 0)
    at async Promise.all (index 0)
    at I (/home/vscode/.vscode-remote/extensions/davidanson.vscode-markdownlint-0.54.0/bundle.js:37:12216)
    at R (/home/vscode/.vscode-remote/extensions/davidanson.vscode-markdownlint-0.54.0/bundle.js:37:14818)
[4:11:53 PM] ERROR: Exception while linting with markdownlint-cli2:
AggregateError: Unable to require or import module '{docsmsft.docs-linting}/markdownlint-custom-rules/rules.js'.
AggregateError: Unable to require or import module '{docsmsft.docs-linting}/markdownlint-custom-rules/rules.js'.
    at C (/home/vscode/.vscode-remote/extensions/davidanson.vscode-markdownlint-0.54.0/bundle.js:37:7116)
    at async Promise.all (index 0)
    at async Promise.all (index 0)
    at I (/home/vscode/.vscode-remote/extensions/davidanson.vscode-markdownlint-0.54.0/bundle.js:37:12216)
    at R (/home/vscode/.vscode-remote/extensions/davidanson.vscode-markdownlint-0.54.0/bundle.js:37:14818)
[4:11:54 PM] ERROR: Exception while linting with markdownlint-cli2:
AggregateError: Unable to require or import module '{docsmsft.docs-linting}/markdownlint-custom-rules/rules.js'.
AggregateError: Unable to require or import module '{docsmsft.docs-linting}/markdownlint-custom-rules/rules.js'.
    at C (/home/vscode/.vscode-remote/extensions/davidanson.vscode-markdownlint-0.54.0/bundle.js:37:7116)
    at async Promise.all (index 0)
    at async Promise.all (index 0)
    at I (/home/vscode/.vscode-remote/extensions/davidanson.vscode-markdownlint-0.54.0/bundle.js:37:12216)
    at R (/home/vscode/.vscode-remote/extensions/davidanson.vscode-markdownlint-0.54.0/bundle.js:37:14818)

When opening these in Codespaces: https://github.com/pamelafox/django-quiz-app/ https://github.com/pamelafox/simple-flask-server-example/ https://github.com/pamelafox/flask-db-quiz-example/

DavidAnson commented 4 months ago

Duplicate of external issue #264, sorry. Steps to fix are linked there.

pamelafox commented 4 months ago

Ah got it! I had the setting in my settings, and I had setting sync on. Removed the setting as described there. Thanks!