xuhdev/SingleCompile — Issue #6: Handling errors in interpreted languages.
Author: johntyree
Created: 2012-03-03 10:47:33+00:00
State: open

At the moment, it appears that interpreted languages don't have any real error handling and worse, don't indicate whether or not they had nonzero return values.

Example: Make a haskell/python file. Stick a bug in it on purpose. Run it.

It appears to run, but there is no indication that the interpreter failed. Quickfix window is empty as well. The errors do appear if you ViewResultAfterRun, but this isn't the default behavior and is almost certainly not how you'd want to discover errors anyway.

This is particularly annoying with runhaskell, as it produces an error list identical to ghc and works fine as a "compiler" too.

Seems to me like we should catch the error from the interpreter and treat it as a failed "compile", then clear the result buffer. What do you think?