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.

Configuration Error: Failed to resolve file: "current directory here"

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:

Issue with supporting library?

  • 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
  • Windows
  • Other

version:

Ubuntu 20.04

Bug Description

With any command I give to cspell (except for things like cspell --version), it fails with a “Failed to resolve file” error.

$ cspell README.md
Configuration Error: Failed to resolve file: "/home/aaronfranke/workspace/myprojectfolderhere"
CSpell: Files checked: 0, Issues found: 0 in 0 files

$ cspell "src/**/*.c"
Configuration Error: Failed to resolve file: "/home/aaronfranke/workspace/myprojectfolderhere"
CSpell: Files checked: 0, Issues found: 0 in 0 files

$ cat README.md | cspell stdin
Configuration Error: Failed to resolve file: "/home/aaronfranke/workspace/myprojectfolderhere"
CSpell: Files checked: 0, Issues found: 0 in 0 files

To Reproduce

Steps to reproduce the behavior:

  1. Install cspell with sudo npm install -g cspell
  2. Run any of the above commands.
  3. See error

Expected behavior

Instead of an error, it should work.

Screenshots

Screenshot from 2021-02-15 12-01-41

Additional context

Ubuntu 20.04 64-bit with cspell 5.2.4 installed with sudo npm install -g cspell, npm 6.14.11

cspell.json

N/A, no custom settings used.

Example Repository (Optional)

N/A, happens on even just a single file.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
Jason3Scommented, Feb 15, 2021

It is expecting to find a configuration file. It should not be necessary, but it seems like the last release introduced this bug.

Workaround: Try: echo "{}" > cspell.json.

1reaction
aaronfrankecommented, Feb 15, 2021
$ node -v
v12.20.2
Read more comments on GitHub >

github_iconTop Results From Across the Web

I can not import with absolute path in Storybook · Issue #3916
My .storybook/webpack.config.js file is described as follows. Is there a problem here? const genDefaultConfig = require('@storybook ...
Read more >
PyCharm current working directory - python - Stack Overflow
Change: Run > Edit Configurations > Working directory, which sets the working directory for a specific project. (This is on a Mac).
Read more >
11 Ways to Fix "The System Cannot Find The Path Specified ...
1. Run Command Prompt as an Administrator ... Windows utilities cannot access all files and folders available on your device. Administrative ...
Read more >
Data Management Load File Path Error: Creating a directory ...
Although user is entering \\<SERVERNAME>\c$\temp\ for the load file path, the error message shows the username is being appended to the path ( ......
Read more >
"Windows cannot access the specified device, path, or file ...
Troubleshooting error message: Windows cannot access the specified device, path, or file. You may not have the appropriate permission to access the item....
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