-
-
Notifications
You must be signed in to change notification settings - Fork 95
Unable to set tabWidth #241
Comments
@joshagudo This is a super annoying atom bug that we've been seeing a lot. Can you check your actual CSON file and manually ensure that the |
@robwise manually updating it from |
Can you copy and paste everything under |
|
This is really leaving me scratching my head—these settings look perfectly fine. |
This might be a long shot, but can you try the fix in this comment? #169 (comment) |
@robwise unfortunately no luck even after clearing state - with tabWidth in
here is my entire
|
Apparently the @joshagudo Can you check the contents of |
@darahak sorry for the late response. I've only got 0.37.0 and 0.38.0 (having just updated). Still the same behaviour unfortunately. |
@joshagudo Is there any error in DevTools that could give us more details? |
I figured it out. I'm facepalming so hard. In our options, If not, during the whole format process, the string is never converted before it's passed to Prettier (the validation error comes from there). @robwise Things we have to do in addition to fixing the bug:
|
@darahak But we convert it to a number if set to "auto" here?: https://github.com/prettier/prettier-atom/blob/master/src/executePrettier/buildPrettierOptions.js#L28-L30 |
Yes, the Atom config directly returns a number. But not really a conversion as it overrides our setting value. |
Getting an error trying to set the tab width to 2.
Atom version = 1.18.0
prettier-atom = 0.37.0
The text was updated successfully, but these errors were encountered: