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

What about the tools not reading from stdin? #28

Closed
KabbAmine opened this issue Oct 3, 2016 · 5 comments
Closed

What about the tools not reading from stdin? #28

KabbAmine opened this issue Oct 3, 2016 · 5 comments

Comments

@KabbAmine
Copy link
Contributor

I would like to add many linters that unfortunately do not read from stdin (csslint, sass-lint, vint...). Is there any plans or strategy to handle those kind of tools in ale?

In fact, I can easily add them to validator but I prefer to use a solution full vimscript as your plugin.

@w0rp
Copy link
Member

w0rp commented Oct 3, 2016

The best tools accept stdin input. For the tools that don't there is a Bash wrapper script which writes the output to a temporary file which can be used. Have a look at the Haskell GHC linter. That one uses the wrapper script at the moment.

@KabbAmine
Copy link
Contributor Author

The wrapper works as expected but it is not cross-platform. Anyway, I'll add some linters using the script meanwhile a better approach.

@w0rp
Copy link
Member

w0rp commented Oct 3, 2016

I might see if I can get a wrapper script written for Windows using Batch hacks, and then I would be able to support all of Windows, Linux, and Mac OSX. That would make me happy enough.

@KabbAmine
Copy link
Contributor Author

That would make everyone happy

@mosheavni
Copy link

The best tools accept stdin input. For the tools that don't there is a Bash wrapper script which writes the output to a temporary file which can be used. Have a look at the Haskell GHC linter. That one uses the wrapper script at the moment.

How can I find this wrapper script?
Thanks :)

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

No branches or pull requests

3 participants