Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JsPrettier ERROR #68

Closed
kumarsatish876 opened this issue Sep 8, 2017 · 2 comments
Closed

JsPrettier ERROR #68

kumarsatish876 opened this issue Sep 8, 2017 · 2 comments

Comments

@kumarsatish876
Copy link

kumarsatish876 commented Sep 8, 2017

Reporting an Issue

When reporting an issue, please include the following information in your post:

  • JsPrettier flags this in sublime 3.
    JsPrettier ERROR
    Prettier reported the following error:
    Ignored unknown option: --no-config
    Process finished with exit code 0

  • [ 1.6.1] Prettier version

  • [ 1.15.2] JsPrettier Plug-in Version

  • [{
    "auto_format_on_save": true,

    "prettier_options": {
    "printWidth": 140,
    "singleQuote": true,
    "trailingComma": "none",
    "bracketSpacing": true,
    "semi": true
    }
    }] The contents of your User/JsPrettier.sublime-settings file

Generated Prettier command line arguments

JsPrettier DEBUG - Prettier CLI Command

/usr/local/bin/prettier
--stdin
--no-config
--print-width 140
--single-quote true
--trailing-comma none
--bracket-spacing true
--jsx-bracket-same-line false
--parser babylon
--semi true
--tab-width 2
--use-tabs true

@chrislaue
Copy link

@kumarsatish876: I was experiencing the exact same thing - found this issue.

I've actually solved the issue in my environment - I uninstalled prettier globally (I was running 1.5.3 initially) - reinstalled globally (1.6.1) - attempted a format and file formatted as expected.

Should note that I also uninstalled and reinstalled JSPrettier in sublime - but that did not solve the issue.

As an experiment - I just downgraded to 1.5.3, and I can replicate the issue. Upgrading prettier to 1.6.0 and above... the problem disappears.

Maybe this is helpful 🤷‍♂️

@lock
Copy link

lock bot commented Aug 1, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Aug 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants