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.

Prettier plugin stopped working / respecting configured tabSize

See original GitHub issue

I can’t tell whether it’s VSCode that stopped using the Prettier plugin when I invoke Format Document on my Javascript files or if it’s the Prettier plugin that itself stopped respecting my settings for tabWidth: 4, but in any case it suddenly has stopped working. This has worked fine for months but all of a sudden stopped working.

Steps taken

  • Run Format Document on a Javascript file

Expected results

  • Prettier will format the code, respecting my tabWidth (4 spaces) and other settings

Actual results

  • The code is formatted (by Prettier or not, I don’t know), and the tabWidth is set to 2.

Troubleshooting I’ve tried

  • I tried uninstalling the plugin and reinstalling to no avail.
  • I have nothing configured in workspace settings, in user settings, I have:
    "prettier.tabWidth": 4,
    "prettier.singleQuote": true,
    "prettier.jsxBracketSameLine": true,
    "prettier.trailingComma": "all",

Any ideas for troubleshooting steps that I should go through to narrow down the issue?

Versions

macOS 10.12.6 VSCode v1.29.1 (bc24f98b5f70467bc689abf41cc5550ca637088e) Prettier-VSCode 1.7.2 Node: v10.14.1

Issue Analytics

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

github_iconTop GitHub Comments

3reactions
christianscheuercommented, Dec 15, 2018

Am I the only one seeing this or is this repo just dead/unmaintained?

1reaction
timothyallancommented, Dec 23, 2018

My printWidth setting just stopped working as well after months of working flawlessly. This was with 1.7.3. screen shot 2018-12-22 at 9 11 49 pm

Rolling back to 1.7.2 fixed it however. Have you tried rolling back a version?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Prettier is not indenting as specified - Stack Overflow
For Prettier Extension: Go to the extension - cog icon after uninstall button - choose Extension Settings and then Prettier: Tab width.
Read more >
How can I change the prettier settings?
I have not installed anything. I am using the WebStorm IDE and with the latest update, it is available using CTRL + SHIFT...
Read more >
detected local configuration (i.e. .prettierrc or .editorconfig), vs ...
2. Alter Prettier options in Visual Studio Code settings: Go to the Visual Studio Code Setting by File > Preferences > Settings or...
Read more >
Editor Integration - Prettier
If your editor does not support Prettier, you can instead run Prettier with a file watcher. Note! It's important to install Prettier locally...
Read more >
indent - ESLint - Pluggable JavaScript Linter
Some problems reported by this rule are automatically fixable by the ... set to 2 will indent case clauses with 4 spaces with...
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