bcomnes / sublime-standard-format

:sparkles: Runs standard --fix against the javascript in your ST3 window on save or manually.
https://packagecontrol.io/packages/StandardFormat
MIT License
60 stars 21 forks source link

Not formating #77

Closed pmjam closed 3 years ago

pmjam commented 3 years ago

Suddenly, I am facing an issue where it is not formatting on save.

The following code is not being formatted:

const test =        'abc'

Console:

b"standard: Use JavaScript Standard Style (https://standardjs.com)\nstandard:   <text>:1:7: 'test' is assigned a value but never used.\n"
standard-format error: standard: Use JavaScript Standard Style (https://standardjs.com)
standard:   <text>:1:7: 'test' is assigned a value but never used.
b"standard: Use JavaScript Standard Style (https://standardjs.com)\nstandard:   <text>:1:7: 'test' is assigned a value but never used.\n"

But the following is formatted:

const test =        'abc'
console.log(test)

If I run the standard command on the command line it formats both codes.

Do you have any idea why?

pmjam commented 3 years ago

I downloaded v6.2.1 then it worked.

bcomnes commented 3 years ago

We made some changes recently and may have a regression. v6.2.1 was the last version before the updates.

I have it reproduced locally, will fix.

bcomnes commented 3 years ago

Ok just released 6.4.1. Let me know if that works for you. Just tested locally.

pmjam commented 3 years ago

Sublime automatically updated, it worked. Thanks!!