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 resolution broken?

See original GitHub issue

I am aware that as of #39, prettier-vscode should resolve to the locally installed version of prettier, but in my configuration that does not seem to be the case. I have prettier 1.13.2 installed in my project, with the new rules for parentheses in math expressions, but when I use the editor.formatOnSave feature of VSCode, these get replaced with the way prettier was handling them in 1.12.1 and below. It looks like prettier-vscode is using the internal prettier module, despite #39? And due to #470, prettier-vscode’s prettier is still at 1.12.1.

I was trying to find some debugging information to provide better information for this issue, but wasn’t able to find any. What can I do to understand / log what’s going on with my configuration?

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
CiGitcommented, Jun 6, 2018

If the formatter is not called, try disabling other extensions 😃

0reactions
github-actions[bot]commented, Apr 13, 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

How can I solve the prettier/prettier problem - Stack Overflow
Try running npx prettier --write . on your project's directory. This command will tell prettier to fix simple errors (such as this one)...
Read more >
Prettier 1.19: Long awaited Vue option, TypeScript 3.7 and ...
This is still broken if the key is a complex expression, but it has been fixed in these cases: // Input class Foo...
Read more >
Vue.js | WebStorm Documentation - JetBrains
That means project is initialized, project's plugins are resolved, dependencies are added, and all WebStorm features are available.
Read more >
Proposal: Changes to JavaScript Coding Standards for Full ...
The good news is that switching to the original Prettier will resolve all of the above! It quickly became noticeable that the automatic...
Read more >
How I solved and debugged my Webpack issue through trial ...
src/index.js' }, output: { path: path.resolve(__dirname, 'dist'), filename: '[name]. ... The only problem here: why does his setup work?
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