You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@clerezza.apache.org by "Reto Bachmann-Gmür (JIRA)" <ji...@apache.org> on 2010/06/04 19:16:56 UTC
[jira] Commented: (CLEREZZA-114) Get rid of warning messages when
language graph is parsed on first start
[ https://issues.apache.org/jira/browse/CLEREZZA-114?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12875665#action_12875665 ]
Reto Bachmann-Gmür commented on CLEREZZA-114:
---------------------------------------------
did the following (with error being a file containing the error messages):
val l = (for (line <- Source.fromFile(new File("errors")).getLines();
val startPos = line.indexOf("line ")+5;
val endPos = line.indexOf(" column");
if (endPos > -1)) yield {
line.substring(startPos, endPos)
}).toList
val data = (for (line <- Source.fromFile(new File("lingvoj.rdf")).getLines()) yield {
line.substring(startPos, endPos)
}).toList
val removing = (for (pos <- l) yield {
data(Integer.parseInt(pos)-1)
}).toList
val rest = data -- removing
val out = new java.io.FileWriter("lingvoj.rdf")
for (line <- rest) {
out.write(line+"\n")
}
out.close()
obviously neither the most elegant nor the most efficient solution ;)
> Get rid of warning messages when language graph is parsed on first start
> ------------------------------------------------------------------------
>
> Key: CLEREZZA-114
> URL: https://issues.apache.org/jira/browse/CLEREZZA-114
> Project: Clerezza
> Issue Type: Task
> Reporter: Reto Bachmann-Gmür
> Assignee: Reto Bachmann-Gmür
>
> file issue/send mail to whoever is causing it.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.