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

Some files in the same directory tree are auto-formatted, others aren't #52

Open
insidewhy opened this issue Apr 1, 2020 · 3 comments
Labels
question Further information is requested

Comments

@insidewhy
Copy link

In my case lets say I have two tabs open.

One has the file:

FriendServer/modules/FriendModule/src/shared/datastores/couchdb/CouchDBStore.ts

The other has the file:

FriendServer/modules/FriendModule/src/shared/datastores/index.ts

Changes I make to the first file don't get run through prettier, changes I make to the second file do. I don't know why it just won't automatically format some files, seems arbitrary.

@insidewhy
Copy link
Author

If I edit the first file so that it contains the contents of the second file, and then save it... then it gets auto formatted. So something about the content of the actual file prevents this plugin from doing its job. Yet if I run the file through the prettier command-line it works fine.

@chemzqm chemzqm added invalid This doesn't seem right question Further information is requested and removed invalid This doesn't seem right labels Apr 1, 2020
@chemzqm
Copy link
Member

chemzqm commented Apr 1, 2020

Can't reproduce, checkout output of prettier.

@sethen
Copy link

sethen commented Aug 30, 2020

@insidewhy I am actually having this problem. What I found out was is that if I make a directory with nothing else in it and just the file, it formats it on save. If I have others files in the directory with it, it doesn't format on save. It's very strange.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants