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.

Cspell does not find any files

See original GitHub issue

Info

Kind of Issue

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

Which Tool or library

  • [ X] 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.13.4

Issue with supporting library?

  • [X ] No
  • 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
  • [ X] Windows
  • Other

version:

OS version if applicable. 7

Bug Description

Cspell does not find any files

To Reproduce

Steps to reproduce the behavior:

  1. Define package.json script: “cspell”: “cspell lint --no-progress --show-suggestions ‘**’”,
  2. Install cspell globally
  3. Add cspell location to PATH
  4. Execute npm run cspell

Result:

CSpell: Files checked: 0, Issues found: 0 in 0 files npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! …: cspell lint --show-suggestions -v '**' --config cspell.json npm ERR! Exit status 1

Expected behavior

Cspell finds projects files and processes them.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
Jason3Scommented, Jan 27, 2022

Thanks for answers. I don’t know from where the code was used unfortunately. One quick question: if I use double quotes, will it work on MacOS and Linux as well?

Yes, double quotes works just fine on the MacOS and Linux. So do the single quotes, which is why I asked about the original example.

  • cspell '**' will work just fine on the Mac and in Linux, it just fails on Windows.
  • cspell "**" will work on all of them.
1reaction
Jason3Scommented, Jan 27, 2022

@tomaszs,

As @nschonni said, single quotes ' do not work on windows. You must use ". Did you copy example code?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting Started with CSpell
In the steps below we will create a cspell configuration file and setup a single custom ... --no-must-find-files Do not error if no...
Read more >
VS Code: cspell checker stopped working, getting 'command ...
I used Code Spell Checker in VS Code for many months, and it's stopped working. I'm using 'Code Spell Checker' and 'Polish -...
Read more >
Turn spell check on or off - Microsoft Support
To turn spell check off in Word, Click File > Options > Proofing, ... You're typing along, you make a mistake, and you...
Read more >
Use the Grammar and Spell Check feature - Adobe Support
If the user manually rectifies a misspelled word, the spell check is required to re-run on the updated content of the current file....
Read more >
Visual Studio Spell Checker (VS2022 and Later)
It can also spell check an entire solution, project, or selected items. ... tool window to find and fix spelling errors in the...
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