Home My Page Projects Code Snippets Project Openings SML/NJ Bugs
Summary Activity Tracker Lists

[#179] ml-ulex writing debug messages to stdOut

Date:
2017-03-16 05:13
Priority:
3
State:
Closed
Submitted by:
Bug Submitter (webuser)
Assigned to:
John Reppy (jhr)
Machine Architecture:
None
Operating System:
Generic Unix
Component:
ML-Ulex
Resolution:
Fixed
Severity:
Minor
OS Version:
SML/NJ Version:
110.79
Keywords:
URL:
Transcript (of reproduction):
Source (for reproduction):
Summary:
ml-ulex writing debug messages to stdOut

Detailed description
Hi, my makefiles are a bit wacky,

as i've been both
a) automatic depenency generation,
b) generation of mlton mlb files from sources.cm

this tends to work ok, but when using
c) generated sources

we need to c -> b -> a to generate the dependency graph...
with ml-ulex debug output has been ending up in the mlb file.
Additional comments:
fix refers to the file ml-ulex/main.sml
changing the debug function to write to stderr

Sorry I don't have a minimal reproducer at the moment,
I'm guessing it should reproduce by running the Mlton cm2mlb
on lex using project

Fix:
fun debug s =
let val fd = TextIO.stdErr;
(* Flush probably unecessary *)
fun printerr s = (TextIO.output (fd, s); TextIO.output (fd, "\n"); TextIO.flushOut fd);
in printerr s end


Submitted via web form by matt rice <ratmice@gmail.com>

Comments:

Message  ↓
Date: 2017-04-07 17:48
Sender: John Reppy

Fixed for 110.81

Attached Files:

Changes

Field Old Value Date By
status_idOpen2017-04-07 17:48jhr
close_dateNone2017-04-07 17:48jhr
assigned_tonone2017-04-07 17:48jhr
detailsHi, my makefiles are a bit wacky, as i've been both a) automatic depenency generation, b) generation of mlton mlb files from sources.cm this tends to work ok, but when using c) generated sources we need to c -> b -> a to generate the dependency graph... with ml-ulex debug output has been ending up in the mlb file. Additional comments: fix refers to the file ml-ulex/main.sml changing the debug function to write to stderr Sorry I don't have a minimal reproducer at the moment, I'm guessing it should reproduce by running the Mlton cm2mlb on lex using project Fix: fun debug s = let val fd = TextIO.stdErr; (* Flush probably unecessary *) fun printerr s = (TextIO.output (fd, s); TextIO.output (fd, "\n"); TextIO.flushOut fd); in printerr s end Submitted via web form by matt rice <ratmice@gmail.com> 2017-04-07 17:48jhr
ResolutionNone2017-04-07 17:48jhr