vscode-markdownlint: ERROR: Exception while linting with markdownlint-cli2 using ignores in a configuration file
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'],
};
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 16 (8 by maintainers)
Commits related to this issue
- Update dependency: markdownlint-cli2 to 0.3.2 (fixes #195). — committed to DavidAnson/vscode-markdownlint by DavidAnson 3 years ago
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.