jplaut / vim-arduino-ino

MIT License
94 stars 21 forks source link

Capturing errors? #5

Open jgarbers opened 9 years ago

jgarbers commented 9 years ago

Hi! I was delighted to find this plugin, but I'm wondering if it's possible to capture errors generated during the build process and present them in the quick fix window, as I've seen with some other tools. Is that something that would need to be added to this plugin explicitly? Or is there some other feature or plugin I'd need to enable and/or integrate? Thanks!

jplaut commented 7 years ago

In the InvokeArduinoCli function, errors are logged in Vim using the PrintStatus function. If you want to log the errors externally (to a file, for instance), you could change the InvokeArduinoCli function to perform that logging. I didn't want to include that directly in this plugin, but you can feel free to change it as you see fit. If you feel so inclined, you could also create a PR that accepts a config variable to allow for different logging methods.