[slim-vim] Compile/load file bug

Brad Beveridge brad.beveridge at gmail.com
Tue Aug 8 09:44:52 CDT 2006


On 18/07/06, Brad Beveridge <brad.beveridge at gmail.com> wrote:
> So I added compile file to Slim-vim, the signature is
> (defun slime-compile-file (&optional load)
>
> So you can also load the current file by calling (slime-compile-file
> t).  But there is a weird bug.
> Assuming you have a valid file open in a buffer, calling
> (slime-compile-file) works fine, and you see compiler notes come back from SBCL.
> However, if your compiled file happens to contain something that will
> output to *standard-io*.... hmm, that's not true either.  Lemme see
> here...
>
> OK, this will break
> (defun test () (format t "hello from test2%"))
> (test)
>
> I don't know why, so for right now the solution is "don't do that!"
>
> Cheers
> Brad
>

Compile with file load is a bit busted if the compile/load generates a
lot of output, for example defining a function and then disassembling
it.  I suspect that the output routines to vim buffers are too slow,
something is getting backed up and failing - or it could be the vim
script that scrolls the buffer down.
Either way, if you don't redirect io (swank::*redirect-io*) then the
compile/load works.  And if you just load it works.  This is my
current bug, any thoughts on it would be great.

Cheers
Brad


More information about the slim-vim mailing list