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.

[Question] Is it possible to know why JsPrettier is not triggering when it should

See original GitHub issue

My JsPrettier config:

image
{
  "auto_format_on_save": true,
  "auto_format_on_save_excludes": [
    "*/node_modules/*",
  ],
  "prettier_cli_path": "/opt/homebrew/bin/prettier",
}

I then open a file like this and press save and nothing happens.

image

If I try to run this command, also nothing happens:

image

I don’t get why though because the location to prettier is correct. If I do this in my terminal it works:

/opt/homebrew/bin/prettier --help
Usage: prettier [options] [file/dir/glob ...]

By default, output is written to stdout.
Stdin is read if it is piped to Prettier and no files are given.

Any way to debug the issue?

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
jonlabellecommented, Jun 11, 2022

Apparently your node binary path isn’t being resolved.

Try explicitly setting it here.

0reactions
github-actions[bot]commented, Oct 11, 2022

This issue has been automatically locked due to inactivity. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to properly re-configure JSPrettier after an update with a ...
When I open the console to see what the error is it says: The system cannot find the path specified. (CR). The settings...
Read more >
JsPrettier Sublime Error 'Couldn't Resolve Parser "babel"'
I've reinstalled both plugins now and am still getting the same error. Currently working in a project with create-react-app. JsPrettier version ...
Read more >
How to configure Prettier and VSCode - Gleb Bahmutov
If you click on the "Prettier" extension word in the status bar, it should open the Prettier output tab. It shows what Prettier...
Read more >
JsPrettier is a Sublime Text Plug-in for Prettier, the ... - GitHub
When the setting is empty, the plug-in will attempt to find Prettier by: Locally installed prettier relative to active view. Locally installed prettier...
Read more >
Prettier + Format On Save = Never worry about ... - Scott Sauber
I find when using Prettier, along with the Format On Save option in VS Code, I don't think about how to format my...
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