-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Vint linting does not work on some machines #81
Comments
@neersighted Could you paste the output of Vint on a file with some problems from your machine? I can check the lines against the regex, and see if there's some kind of issue there. |
Sure... Something funky is going on, as some quick print-debugging is showing that Here's some vint output on my system:
|
Here's the same thing with ale's formatting string:
|
Hmm, do you have |
If the answer to that is "no," do you have a good old Bourne Shell ( |
That is indeed the issue, when I override SHELL to bash, it works. |
Maybe the shebang line in the Bash wrapper script is to blame. What's the output of |
|
If you edit |
It does nothing, and it looks like |
I'm guessing something with the generated This is what I get on my system:
I'm wondering, why is there only one quote? |
...the missing quote fixed it. |
That quote is suspicious. @KabbAmine added that, and it was conspicuously only running if there was a single quote there. Which was... very odd. |
It works for me in bash and in fish with both quotes. I can send a PR with the quote fix, shebang change and mktemp change if you'd like. |
I pushed a commit now with just that fix for the quote. @KabbAmine Do you want to test Vint linting again on your machine? You had the issue originally with the quote. |
Ah, I recall now. Somehow... for some reason, the double quote appears in the echoed message if you add it. I'll see what I can do about that. |
For now, it's dinner and X-Files time. |
Check out the branch |
I also noticed separately that vint has a |
As a matter of fact, master works fine and fix-vint-issues does not. |
I don't see quotes with fish, zsh, or bash on master. |
Why don't we just use escaped singlequotes for the whole thing? And I'd prefer to keep the vint parsing based on GCC, if possible. The fewer lines of code, the better. |
The trouble is that somehow quotes can appear in the text. I get some lines like so: I don't quite understand how that's happening. |
Try logging everything to a file in your stdin-wrapper so you can look over the raw text? The layers of abstraction might be munging things. |
I think I have found the issue. NeoVim does not show the issue on my machine. I looked at the documentation for |
Curiously, the |
Sweet! I can confirm master functions for me in fish and bash. |
Lists are really the proper way to execute commands anyway, shell parsing makes things screwy when you use strings. |
Yeah. I don't know why Vim's documentation says Windows is different, but I'll just accept that. I'll consider this issue closed. |
Good job guys 👍 |
On some machines, Vint linting does not work.
The text was updated successfully, but these errors were encountered: