|
From: | Éloi Rivard |
Subject: | Re: [Denemo-devel] A very strange bug. |
Date: | Wed, 13 Nov 2013 20:13:09 +0100 |
It is only related in the sense that both things are using libxml to
read xml. As I recall it libxml started spontaneously complaining during
the importxml routine (which loads .denemo files) and Jeremiah fixed it
in some way which I didn't follow. I just recalled that it had something
to do with an xml tag called "text" which is not a tag we use:
this looks like the bit Jeremiah added (importxml.c:2834)
/* ignore blanks between nodes that appear as "text" */
xmlKeepBlanksDefault (0);
It looks like somehow this is starting to happen in the xml parsing used
for the .commands files
HTH
Richard
On Wed, 2013-11-13 at 17:50 +0100, Éloi Rivard wrote:
> The only function that is not static in importxml is importXML(…), and
> it is used to load music, so I don't think it is related.
>
>
> 2013/11/13 Jeremiah Benham <address@hidden>
> The keymaps are stored in an xml file and AFAIK all xml
> reading is first done in importxml.c. If this is not the
> change you were refereeing to, then I am not sure what change
> is causing it.
>
>
> Jeremiah
>
>
>
>
>
> On Wed, Nov 13, 2013 at 10:37 AM, Éloi Rivard
> <address@hidden> wrote:
> I don't really understand. The warning I get is
> emitted from keymapio.c, from parseScripts, that is a
> function which parses the Denemo.commands file. Does
> it have some link with XML importxml.c ?
>
>
>
> 2013/11/13 Jeremiah Benham
> <address@hidden>
> It was a long time ago. I believe it was in
> src/importxml.c.
>
>
> Jeremiah
>
>
>
> On Wed, Nov 13, 2013 at 10:27 AM, Éloi Rivard
> <address@hidden> wrote:
> Where is this piece of code on
> Denemo ?
>
>
>
> 2013/11/13 Jeremiah Benham
> <address@hidden>
> I believe I placed this tag in
> there because darwin was not
> able to read the xml files
> otherwise. I am not sure why
> this was needed on darwin and
> not on linux or mingw. I found
> the solution on some random
> google search one day.
>
>
> Jeremiah
>
>
>
> On Wed, Nov 13, 2013 at 8:37
> AM, Richard Shann
> <address@hidden>
> wrote:
>
> On Wed, 2013-11-13 at
> 14:27 +0100, Éloi
> Rivard wrote:
>
> > Hi,
> >
> > I have seen a very
> strange bug:
> >
> > If I comment the
> line 290 from
> texteditors.c
> >
> gtk_source_buffer_set_language (GTK_SOURCE_BUFFER (buffer), language);
> > I have tons of this
> warnings:
> > ** (denemo:17954):
> WARNING **: Found XML
> tag text reading
> a .commands
> > file
>
>
> about this "text" tag
> (which doesn't exist),
> I recall that a new
> version
> of xml library
> triggered something
> like this (exactly
> this IIRC) which
> Jeremiah fixed by
> setting some variable
> before running the xml
> import
> routines (IIRC) -
> Jeremiah if you have a
> moment to comment,
> please do.
>
> Richard
>
>
>
>
>
>
> _______________________________________________
> Denemo-devel mailing
> list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/denemo-devel
>
>
>
>
>
>
>
> --
> Éloi Rivard - address@hidden
>
> « On perd plus à être indécis qu'à se
> tromper. »
>
>
>
>
>
>
> --
> Éloi Rivard - address@hidden
>
> « On perd plus à être indécis qu'à se tromper. »
>
>
>
>
>
>
> --
> Éloi Rivard - address@hidden
>
> « On perd plus à être indécis qu'à se tromper. »
>
[Prev in Thread] | Current Thread | [Next in Thread] |