【发布时间】:2016-11-26 08:47:22
【问题描述】:
几个月来,我的大部分 C++ 和 php 编辑都使用 gedit,语法突出显示工作正常。就在最近,我查看了我的一个 .cpp 文件,但语法突出显示失败。我尝试了多个其他文件,现在所有文件的语法突出显示都失败了。 gedit 运行时收到以下错误:
(gedit:9833): GLib-CRITICAL **: PCRE library is compiled without UTF8 support
(gedit:9833): GLib-CRITICAL **: g_regex_match_full: assertion `regex != NULL' failed
(gedit:9833): GLib-CRITICAL **: PCRE library is compiled without UTF8 support
(gedit:9833): GLib-CRITICAL **: g_regex_replace_eval: assertion `regex != NULL' failed
(gedit:9833): GLib-CRITICAL **: g_regex_unref: assertion `regex != NULL' failed
(gedit:9833): GLib-CRITICAL **: PCRE library is compiled without UTF8 support
(gedit:9833): GLib-CRITICAL **: g_regex_match_full: assertion `regex != NULL' failed
(gedit:9833): GLib-CRITICAL **: PCRE library is compiled without UTF8 support
(gedit:9833): GLib-CRITICAL **: g_regex_replace_eval: assertion `regex != NULL' failed
(gedit:9833): GLib-CRITICAL **: g_regex_unref: assertion `regex != NULL' failed
(gedit:9833): GLib-CRITICAL **: PCRE library is compiled without UTF8 support
(gedit:9833): GLib-CRITICAL **: g_regex_match_full: assertion `regex != NULL' failed
(gedit:9833): GLib-CRITICAL **: PCRE library is compiled without UTF8 support
(gedit:9833): GLib-CRITICAL **: g_regex_replace_eval: assertion `regex != NULL' failed
(gedit:9833): GLib-CRITICAL **: g_regex_unref: assertion `regex != NULL' failed
(gedit:9833): GtkSourceView-WARNING **: in file /usr/share/gtksourceview-2.0/language-specs/cpp.lang: style 'c:keyword' not defined
(gedit:9833): GtkSourceView-WARNING **: Failed to load '/usr/share/gtksourceview-2.0/language-specs/cpp.lang': style override used with wildcard context reference in language 'cpp' in ref 'def:line-continue'
这是一个非常令人沮丧的问题,最近才开始发生,我不知道为什么。
附加信息:
- 我没有 root 访问权限
- 我的机器运行的是 openSUSE 11.3
- gedit 版本:2.28.3
- pcretest 命令返回:PCRE 版本 7.6 2008-01-28
- 我已多次重启,希望这会自行修复,但没有运气
我将不胜感激任何有关此问题的帮助或想法。
【问题讨论】:
标签: linux syntax highlighting opensuse gedit