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.

Matched files change from 5.3.1 to 5.3.2

See original GitHub issue

Info

Kind of Issue

  • runtime - command-line tools
  • building / compiling
  • security
  • change in behavior
  • crash / error

Which Tool or library

  • cspell – the command-line spelling tool
  • cspell-tools – used for building dictionary files
  • cspell-lib – library that does the actual spell checking.
  • cspell-trie – tool for working with trie files.

Which Version

Version: 5.3.2 and up

Issue with supporting library?

  • No
  • Unsure
  • cspell-glob – library for matching glob patterns
  • cspell-io – thin file i/o library
  • cspell-trie-lib - trie lib
  • cspell-trie2-lib - trie lib alternate format

OS:

  • Macos
  • Linux
  • Windows
  • Other

version: 11.2.3

OS version if applicable.

Bug Description

Describe the bug

I have been using cspell as a linting script for nearly a year now, and have configured it to process “hidden files”. However, since 5.3.2 the glob pattern doesn’t seem to match the files in the same way. I can’t tell if issue comes from the matching glob or the configured ignorePaths being treated differently.

To Reproduce

I have set up a repo to reproduce the issue and see the clean run as before the issue presented.

Steps to reproduce the behavior:

  1. Clone https://github.com/roydukkey/moist/tree/cspell/1114
  2. Run yarn test:before, for the expected behaviour
    • Expects something similar to:
      moist % yarn test:before
      yarn run v1.22.10
      $ npx cspell@5.3.1 --config './.vscode/cSpell.json' '**/{.*/**/,.*/**/.,,.}*'
      1/5 ./.editorconfig 377.32ms
      2/5 ./.vscode -
      3/5 ./.vscode/cSpell.json 20.71ms
      4/5 ./package.json 6.11ms
      5/5 ./README.md 8.95ms
      CSpell: Files checked: 4, Issues found: 0 in 0 files
      ✨  Done in 1.39s.
      
  3. Run yarn test:after, for the unexpected behaviour
    • Results like:
      moist % yarn test:after
      yarn run v1.22.10
      $ npx cspell@5.3.2 --config './.vscode/cSpell.json' '**/{.*/**/,.*/**/.,,.}*'
        1/128 ./.DS_Store 410.90ms
      /Users/roydukkey/Projects/moist/.DS_Store:2:20 - Unknown word (ebwspblob)
      /Users/roydukkey/Projects/moist/.DS_Store:2:33 - Unknown word (bplist)
      /Users/roydukkey/Projects/moist/.DS_Store:5:20 - Unknown word (Pathbar)
      /Users/roydukkey/Projects/moist/.DS_Store:6:22 - Unknown word (Srnlong)
      /Users/roydukkey/Projects/moist/.DS_Store:6:4372 - Unknown word (DSDB)
        2/128 ./.editorconfig 7.63ms
        3/128 ./.git -
        4/128 ./.git/COMMIT_EDITMSG 4.57ms
        5/128 ./.git/config 7.07ms
      /Users/roydukkey/Projects/moist/.git/config:2:2 - Unknown word (repositoryformatversion)
      /Users/roydukkey/Projects/moist/.git/config:3:2 - Unknown word (filemode)
      /Users/roydukkey/Projects/moist/.git/config:5:2 - Unknown word (logallrefupdates)
      /Users/roydukkey/Projects/moist/.git/config:6:2 - Unknown word (ignorecase)
      /Users/roydukkey/Projects/moist/.git/config:7:2 - Unknown word (precomposeunicode)
      /Users/roydukkey/Projects/moist/.git/config:8:2 - Unknown word (submodule)
      {...}
      /Users/roydukkey/Projects/moist/yarn.lock:92:1 - Unknown word (wrappy)
      CSpell: Files checked: 188, Issues found: 2424 in 51 files
      error Command failed with exit code 1.
      info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
      

Expected behavior

  1. This **/{.*/**/,.*/**/.,,.}* pattern to match all files, including hidden files.
  2. The ignorePaths configuration in ./.vscode/cSpell.json should properly exclude paths.

cspell.json

{
	"ignorePaths": [
		"node_modules",
		".git",
		"**/.DS_Store",
		"*.lock.json",
		"*-lock.json",
		"*.lock"
	],
	"dictionaries": [
	],
	// Before adding a word, see if there is already a dictionary in which it is contained.
	// http://github.com/streetsidesoftware/cspell-dicts
	"words": [
		"editorconfig",
		"roydukkey"
	]
}

Example Repository (Optional)

https://github.com/roydukkey/moist/tree/cspell/1114

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
roydukkeycommented, Apr 2, 2021

@Jason3S Indeed. I have update the repo with test:workaround and test:fixed command to verify.

0reactions
github-actions[bot]commented, Aug 14, 2021

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Motion release notes - Apple Support
Fixes an issue where the Match Move behavior's four-corner settings might be lost after converting a track to keyframes.
Read more >
Version 5.3 Release Notes - WHMCS Documentation
5.3.1 Clear Template/Browser Cache; 5.3.2 Important Changes to file locations ... be sure to rename the /whmcs/admin directory in the new files to...
Read more >
Chapter 5. New features in RHEL 8 Red Hat Enterprise Linux 8
This section documents the most notable changes in RPM packaging between Red ... another package that contains the matching files is installed or...
Read more >
PowerGREP Release Notes
PowerGREP allows you to use regular expressions to search through binary files. To match specific bytes or to replace with specific bytes, you...
Read more >
Publication 5258 (Rev. 10-2022) - IRS
Section 4 Transmitting IRS ACA Form Data File and Retrieving Acknowledgment via ... 5.3.2 | ACA Transmitter Business Header Elements .
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