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

Fix buildifier #733

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

samyak-jain
Copy link

It seems that trying to lint using stdin here is broken. I am not sure what's causing it but using a filename instead of stdin seems to fix this issue.

Funnily enough, trying to use to use stdin in the CLI works perfectly fine when I do: ~/.local/share/nvim/mason/bin/buildifier -lint warn -mode check -warnings all -format json -type build < BUILD.bazel

However, something about the way nvim-lint is calling it seems to cause buildifier to segfault.

@mfussenegger
Copy link
Owner

If stdin is supported by buildifier when running in a terminal/shell then this is not the right fix but a workaround.

What's the root cause of it not working?

I suspect when @aignas created the PR to add the linter it worked for them?

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

Successfully merging this pull request may close these issues.

2 participants