GNOME Bugzilla – Bug 776367
When building gedit, I get an error: enum id='org.gnome.gedit.GeditNotebookShowTabsModeType'> not (yet) defined
Last modified: 2020-11-24 10:08:48 UTC
It seems that when I compile my own gedit, and try to run glib-compile-schemas I get the following errors: /opt/share/glib-2.0/schemas/org.gnome.gedit.gschema.xml:176:1 Error on line 176 char 1: <enum id='org.gnome.gedit.GeditNotebookShowTabsModeType'> not (yet) defined.. This entire file has been ignored. /opt/share/glib-2.0/schemas/org.gnome.gedit.plugins.filebrowser.gschema.xml:29:1 Error on line 29 char 1: <flags id='org.gnome.gedit.plugins.filebrowser.GeditFileBrowserStoreFilterMode'> not (yet) defined.. This entire file has been ignored. /opt/share/glib-2.0/schemas/org.gnome.gedit.plugins.time.gschema.xml:4:1 Error on line 4 char 1: <enum id='org.gnome.gedit.plugins.time.GeditTimePluginPromptType'> not (yet) defined.. This entire file has been ignored. I am not sure why, I tried to grep around and try to find where else GeditNotebookShowTabsModeType would be defined... It seems that from my grepping of git log, that that is automatically generated since 2010... I'm not sure what else to provide.
Seems it's due to org.gnome.gedit.enums.xml not being installed/built. I'll try to see if I can find out why that file did not build
Created attachment 342442 [details] The build log of gedit in verbose mode
Hi I have remembered that in my build script I placed a workaround attempt to have make continue, I am sorry about not noting that
Am I the only one that can replicate this issue?
Are there any more logs that I could provide?
It seems that this still occurs. Is there any information I am missing?
I was able to work around it by running glib-mkenums --comments '<!-- @comment@ -->' --fhead "<schemalist>" --vhead " <@type@ id='org.gnome.gedit.plugins.time.@EnumName@'>" --vprod " <value nick='@valuenick@' value='@valuenum@'/>" --vtail " </@type@>" --ftail "</schemalist>" plugins/time/gedit-time-plugin.c > $INSTALLDIR/share/glib-2.0/schemas/org.gnome.gedit.plugins.time.enums.xml glib-mkenums --comments '<!-- @comment@ -->' --fhead "<schemalist>" --vhead " <@type@ id='org.gnome.gedit.plugins.filebrowser.@EnumName@'>" --vprod " <value nick='@valuenick@' value='@valuenum@'/>" --vtail " </@type@>" --ftail "</schemalist>" plugins/filebrowser/gedit-file-browser-error.h plugins/filebrowser/gedit-file-browser-store.h plugins/filebrowser/gedit-file-browser-view.h > $INSTALLDIR/share/glib-2.0/schemas/org.gnome.gedit.plugins.filebrowser.enums.xml glib-mkenums --comments '<!-- @comment@ -->' --fhead "<schemalist>" --vhead " <@type@ id='org.gnome.gedit.@EnumName@'>" --vprod " <value nick='@valuenick@' value='@valuenum@'/>" --vtail " </@type@>" --ftail "</schemalist>" gedit/gedit-notebook.h gedit/gedit-file-chooser-dialog.h gedit/gedit-commands.h gedit/gedit-debug.h gedit/gedit-print-job.h gedit/gedit-open-document-selector-store.h gedit/gedit-tab.h gedit/gedit-app.h gedit/gedit-open-document-selector-helper.h gedit/gedit-window.h > $INSTALLDIR/share/glib-2.0/schemas/org.gnome.gedit.enums.xml
Hi, I can't reproduce this bug. Have you tried again recently with master?
Since I last tested it, it seems the most recent commits are just translation changes... ...I have been using the three glib-mkenum commands in my scripts as the workaround ...Is there any way I can provide you with better diagnosis?
I hit this today
Might be related to bug #793459. I can only reproduce this when I replace gedit's insane autogen.sh with our standard one, using intltoolize but not gettextize (and certainly not autopoint).
Well I think we understand this now, you must be running autoreconf or other tools manually, besides the standard autogen.sh, right? That won't work for gedit, you need to use autogen.sh.
Closing this bug report as no further information has been provided. Please feel free to reopen this bug report if you can provide the information that was asked for in a previous comment. Thanks!