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
Feature request: passing data to stdin for build commands #1013
Comments
What about a custom command for that purpose? |
On 29 April 2016 at 06:02, Colomban Wendling notifications@github.com
Is it safe to replace the file with the lint output?
|
Good point, it's not, yet one wants to see the output. So nevermind that suggestion, it wasn't worth anything. |
This doesn't seem likely to have a significant use-case. In general lint should not be run without previously compiling the source successfully. An erroneous source file is likely to cause lint to emit many false messages. But generally compiling requires a file, since compilers use the extension to decide what to do. |
@elextr I had something like JavaScript in mind actually. There have been times where I am working on something temporary, so there is no use saving to a temporary file, but I may still want to lint it to make sure there are no syntax or other errors. |
Well I guess "somebody" will have to design how to configure build commands to send the file to stdin, and also actually implement the functionality. |
No spoiler ahead, but a little time ago I was thinking of writing a all-purpose command spawner with all the missing features we currently have, including arbitrary placeholders, environment modifications, selectable stdin/stdout/stderr, etc. It should actually be fairly easy to implement the feature itself with the new spawn API we have, and it'd be a "mere matter" of writing a nice configurable UI for that. If I get time I'll try to work on that further. |
@b4n don't forget to parse the output for file:line so its possible to jump to it by clicking on the output |
a neat design for that would require being able to customize the available action, so have easy scriptability… we'll see. |
It would be nice to be able to pass the current document, selected text, etc. to the stdin of a build command. This would be particularly useful for cases where you don't have a new file saved yet, but still want to lint the document (or part of it) for example.
The text was updated successfully, but these errors were encountered: