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.

Hi guys,

I’m curious if there is anything missing in prettier-vscode to support plugins. After locally installing prettier and prettier-plugin-elm (which I developed myself 😃 ), the plugin works from the command line, but not in the editor. In particular, pressing option+shift+f while editing a markdown file, does not format ```elm code blocks. Running yarn prettier same-file.md from the terminal does this job perfectly.

What could be causing the issue? Can it be that the way prettier is spawned does not let it search for prettier-plugin-* in node_modules?

UPD: Same issue in https://github.com/prettier/prettier-atom/issues/395 (even the same id 😄)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:27
  • Comments:29 (19 by maintainers)

github_iconTop GitHub Comments

10reactions
ntottencommented, Aug 10, 2019

Added with #899

8reactions
kachkaevcommented, Oct 13, 2018

The latest versions of prettier-atom (>=0.55.0) finally use getFileInfo() to determine what files can be prettified and what not. This means that any prettier plugin is now supported in Atom 🎉 prettier-atom searches for the local version within a given project, then falls back to a globally installed one (npm install --global prettier prettier-plugin-XXX / yarn add --global prettier prettier-plugin-XXX) and if all this search has failed, picks prettier built into prettier-atom, which does not have any plugins attached. All works pretty nicely so far!

I’m sharing this because the new design of prettier-atom can serve as an inspiration for those who want to transform prettier-vscode. Most of the refactoring work was done in https://github.com/prettier/prettier-atom/pull/404.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Download Plugin] Support - WordPress.org
You must be logged in to create new topics. Download Plugin · Support Threads · Active Topics · Unresolved Topics · Reviews. Views....
Read more >
WordPress Plugins | WordPress.com Support
Get started by exploring our WordPress.com plugins showcase. Install a Plugin. This guide will show you how to install plugins on your site....
Read more >
15 Best Help-Desk Plugins for WordPress (And 5 Free Plugins)
This is one of the best WordPress support plugins on CodeCanyon. Live Chat is an open-source WordPress helpdesk. The WordPress technical support plugin...
Read more >
Awesome Support: The Best Helpdesk and Support Plugin For ...
Awesome Support is the most versatile and feature-rich help-desk plugin for WordPress. Get started for free and add premium features as your business...
Read more >
Fluent Support: Customer Support Plugin for WordPress
Fluent Support is a complete support ticketing solution for WordPress website. It is a complete helpdesk solution for fast and efficient support system....
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