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:
Open
Submitted by:
Bug Submitter (webuser)
Assigned to:
Nobody (None)
Machine Architecture:
None
Operating System:
Generic Unix
Component:
ML-Ulex
Resolution:
None
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:

No Comments Have Been Posted

Attached Files:

Changes

No Changes Have Been Made to This Item