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

after new release stdin does not repsect .stylua.toml by default #928

Closed
glepnir opened this issue Nov 19, 2024 · 2 comments · Fixed by #931
Closed

after new release stdin does not repsect .stylua.toml by default #928

glepnir opened this issue Nov 19, 2024 · 2 comments · Fixed by #931
Labels
bug Something isn't working

Comments

@glepnir
Copy link

glepnir commented Nov 19, 2024

unless must set config-path .. before no need

image

@JohnnyMorganz
Copy link
Owner

Looks like a mistake in

None => {
, we forget to check the current directory if stdin file path was not provided. Thanks for reporting!

As a work around, you can use --stdin-filepath to specify the file path for the file you're formatting. It can even be a dummy file: --stdin-filepath ./dummy should in theory lookup config in the current working directory

@JohnnyMorganz JohnnyMorganz added the bug Something isn't working label Nov 19, 2024
@glepnir
Copy link
Author

glepnir commented Nov 21, 2024

sure but hope can fix in next release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants