question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ERROR: Exception while linting with markdownlint-cli2 using ignores in a configuration file

See original GitHub issue

After the latest update, I’m getting this error in the Output panel:

[10:13:42 PM] ERROR: Exception while linting with markdownlint-cli2:
EntryNotFound (FileSystemError): Unable to resolve non-existing file '/Users/borekb/dev/shoptet/sofa/!**/node_modules/**'
    at _handleError (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:94:160087)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)

This is my .markdownlint-cli2.js (that used to work before):

require('./.pnp.cjs').setup();

const path = require('path');

module.exports = {
  config: {
    MD007: {
      indent: 4,
    },
    MD013: false,
    MD014: false,
    MD040: false,
    MD029: false,
    MD033: false,
    MD026: false,
    MD009: { br_spaces: 0 },
    MD031: { list_items: false },
    'graphql-examples': {
      schema: path.join(__dirname, 'packages/graphql/schema.graphql'),
      globs: [`${__dirname}/docs/docs/**/*.md{,x}`],
    },
  },
  ignores: ['**/node_modules/**', '**/.next/**', '**/dist/**'],
  customRules: ['@shoptet-private/markdownlint-graphql-examples'],
};

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:16 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
DavidAnsoncommented, Sep 27, 2021

This (the original issue, not the problem with network shares which I hope is an extreme edge case I’ll look into shortly) should be fixed in 0.44.3. There’s no associated fix commit because I did something shady in order to get the fix out sooner. I’m leaving this issue open and will resolve it with the proper commit soon.

0reactions
borekbcommented, Sep 28, 2021

@DavidAnson Can confirm that the behavior in VSCode is now correct, thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Markdownlint - Visual Studio Marketplace
Extension for Visual Studio Code - Markdown linting and style checking for Visual Studio Code.
Read more >
markdownlint - npm
A Node.js style checker and lint tool for Markdown/CommonMark files.. Latest version: 0.26.2, last published: 4 months ago. Start using ...
Read more >
markdownlint-cli2 - UNPKG
1, # markdownlint-cli2. 2. 3, > A fast, flexible, configuration-based command-line interface for linting. 4, > Markdown/CommonMark files with the ...
Read more >
If one is good, two must be better [markdownlint-cli2 is a new ...
Configuration should be flexible. Command line arguments are never as expressive as data or code, so all configuration for markdownlint-cli2 ...
Read more >
Documentation testing | GitLab
The ui-docs-links lint job uses haml-lint to test that all documentation ... Vale configuration and markdownlint configuration is under source control in ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found