You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
EDIT: I just found out this is a problem with IJulia itself, not with Sublime-IJulia.
I am not sure how to enable logging of stdout for ccall()-ed libraries. For example, lets make ``test.c` be
#include <stdio.h>
void test()
{ int i=0;
for (i=0; i < 10; i++)
{
printf("hehe\r\n");
fflush(stdout);
system("sleep 0.5");
}
}
compite with gcc -shared test.c -o test.so -fPIC, and then call it with juia, from sublime-IJulia:
ccall( (:test, "./test.so"), None, () )
Instead of seeing a series of 'hehe', separated by a 500ms pause, I see nothing while the ccall is active, and then the whole bunch of stdout appearing instantly once the ccall returns. Is there any way to deal with this issue in a clean way?
Thanks.
The text was updated successfully, but these errors were encountered:
EDIT: I just found out this is a problem with IJulia itself, not with Sublime-IJulia.
I am not sure how to enable logging of stdout for ccall()-ed libraries. For example, lets make ``test.c` be
compite with
gcc -shared test.c -o test.so -fPIC
, and then call it with juia, from sublime-IJulia:Instead of seeing a series of 'hehe', separated by a 500ms pause, I see nothing while the ccall is active, and then the whole bunch of stdout appearing instantly once the ccall returns. Is there any way to deal with this issue in a clean way?
Thanks.
The text was updated successfully, but these errors were encountered: