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.

Wrong prettier.ignorePath provided

See original GitHub issue

I am getting this error:

Wrong prettier.ignorePath provided in your settings. The path (e:\docs\dev\onmap_v6\yo\.prettierignore) does not exist.

The problem is that the path exists.

Here is my configuration:

"prettier.ignorePath": "e:\\docs\\dev\\onmap_v6\\yo\\.prettierignore"

The path exists:

dir e:\docs\dev\onmap_v6\yo\.prettierignore
Directory of e:\docs\dev\onmap_v6\yo
23/03/2018  11:44                99 .prettierignore

It’s on Windows 10 with prettier plugin 1.2.2 and the latest VSCode insider:

Version 1.22.0-insider Commit b75321329388d74e34f79dcfcb789246e31836a8 Date 2018-03-22T06:16:52.928Z Shell 1.7.12 Renderer 58.0.3029.110 Node 7.9.0 Architecture x64

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
warpdesigncommented, Apr 13, 2020

I had a quick look and could not reproduce: I tried to specify a prettierignore file with Windows style separators and it was used as expected:

“prettier.ignorePath”: “C:\\Users\\warpd\\Dev\\react-explorer\\.prettierignore”,

With latest VSCode 1.44.0 and prettier-vscode 4.2.0.

Closing the issue.

0reactions
github-actions[bot]commented, Jul 12, 2020

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

Ignoring Code - Prettier
Use .prettierignore to ignore (i.e. not reformat) certain files and folders completely. Use “prettier-ignore” comments to ignore parts of files.
Read more >
How to setup a different path for ignored types for prettier file ...
First of all - my File Watcher Settings were wrong. Correct version: Program: $ProjectFileDir$\node_modules\.bin\prettier
Read more >
prettier ignore specific rule | The AI Search Engine You Control
To exclude files from formatting, create a .prettierignore file at the root ... This option allows you to provide a path to your...
Read more >
Prettier: support .prettierignore : WEB-32711 - YouTrack
This is because the console 'prettier' tool does not lookup ignore files up the hierarchy, it only looks for them in the current...
Read more >
prettier-eslint-cli - npm
(can use --no-eslint-ignore to disable this) [boolean] [default: true] --prettier-ignore Only format matching files even if they are not ...
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