After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 776367 - When building gedit, I get an error: enum id='org.gnome.gedit.GeditNotebookShowTabsModeType'> not (yet) defined
When building gedit, I get an error: enum id='org.gnome.gedit.GeditNotebookSh...
Status: RESOLVED INCOMPLETE
Product: gedit
Classification: Applications
Component: general
git master
Other Linux
: Normal normal
: ---
Assigned To: Gedit maintainers
Gedit maintainers
Depends on:
Blocks:
 
 
Reported: 2016-12-22 01:36 UTC by bluescreen_avenger
Modified: 2020-11-24 10:08 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
The build log of gedit in verbose mode (24.17 KB, text/plain)
2016-12-24 04:03 UTC, bluescreen_avenger
Details

Description bluescreen_avenger 2016-12-22 01:36:57 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.
Comment 1 bluescreen_avenger 2016-12-23 20:12:53 UTC
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
Comment 2 bluescreen_avenger 2016-12-24 04:03:21 UTC
Created attachment 342442 [details]
The build log of gedit in verbose mode
Comment 3 bluescreen_avenger 2016-12-24 04:05:06 UTC
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
Comment 4 bluescreen_avenger 2017-01-09 04:06:01 UTC
Am I the only one that can replicate this issue?
Comment 5 bluescreen_avenger 2017-02-14 01:56:16 UTC
Are there any more logs that I could provide?
Comment 6 bluescreen_avenger 2017-04-19 23:51:34 UTC
It seems that this still occurs. Is there any information I am missing?
Comment 7 bluescreen_avenger 2017-06-17 01:45:03 UTC
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
Comment 8 George White 2017-08-01 21:22:02 UTC
Hi, I can't reproduce this bug. Have you tried again recently with master?
Comment 9 bluescreen_avenger 2017-08-01 22:45:12 UTC
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?
Comment 10 Michael Catanzaro 2018-02-14 20:15:41 UTC
I hit this today
Comment 11 Michael Catanzaro 2018-02-14 20:28:47 UTC
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).
Comment 12 Michael Catanzaro 2018-04-25 01:35:35 UTC
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.
Comment 13 Sébastien Wilmet 2020-11-24 10:08:48 UTC
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!