Configuration Error: Failed to resolve file: "current directory here"
See original GitHub issueInfo
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:
- Install cspell with
sudo npm install -g cspell
- Run any of the above commands.
- See error
Expected behavior
Instead of an error, it should work.
Screenshots
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:
- Created 3 years ago
- Comments:5 (1 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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
.