diff options
| author | letouzey | 2011-04-21 16:16:12 +0000 |
|---|---|---|
| committer | letouzey | 2011-04-21 16:16:12 +0000 |
| commit | eb02dc13ff49491172268930bb4834cbbadceb9d (patch) | |
| tree | 2cb61877df2c73591eec7d4be44788df639c4d75 /toplevel/ide_slave.ml | |
| parent | 12cf5007bbc2b8c6af5cd9cb2cb7fc882b40f623 (diff) | |
Coqide: better handling of stdout/stderr in win32
Now that coqide is a console-free win32 app, writing to
nonexistent stdout/stderr lead to Sys_error. To avoid that:
- We reroute coqide's stdout/stderr to either a pipe that will stay
unread (by default), or to a temp log file (in debug mode).
- When doing create_process, avoid referring to Unix.stderr:
anything printed by coqtop to its stderr will be merged in the
regular channel.
- On the coqtop side, remove the awkward fix consisting in a \r printed
on stderr apparently to fix coqide.byte. This fix is probably obsolete
since the separation of coqide and coqtop as distinct processes.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@14047 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'toplevel/ide_slave.ml')
| -rw-r--r-- | toplevel/ide_slave.ml | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/toplevel/ide_slave.ml b/toplevel/ide_slave.ml index e2d22472a0..a39e9c4292 100644 --- a/toplevel/ide_slave.ml +++ b/toplevel/ide_slave.ml @@ -261,10 +261,6 @@ let interp (verbosely,s) = let pa = parsable_of_string s in try let (loc,vernac) = Vernac.parse_sentence (pa,None) in - (* Temporary hack to make coqide.byte work (WTF???) - now with - * less screen - * * pollution *) - Pervasives.prerr_string " \r"; Pervasives.flush stderr; if is_vernac_debug_command vernac then user_error_loc loc (str "Debug mode not available within CoqIDE"); if is_vernac_navigation_command vernac then |
