2016-07-22 57 views
1

我一直在使用gedit的大部分C++以及php编辑几个月,语法高亮工作正常。就在最近,我去查看我的一个.cpp文件,并且语法高亮失败。我尝试了多个其他文件,现在语法突出显示都失败了。我收到以下错误时,gedit中运行: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
  • 我重新启动了多次希望这会修复本身,但没有运气

我将不胜感激关于这个问题的任何帮助或想法。

回答

0

终于搞清楚了我的问题后,大量的搞乱它。我正在处理涉及编辑我的LD_LIBRARY_PATH环境变量的程序,因此我在.cshrc中添加了几行以添加几个共享库。我做了一定要追加我新添加的库到变量,但无论出于何种原因,这仍然搞砸了Gedit的语法突出显示的能力。从我的.cshrc脚本中取出setenv命令后,我重新启动,Gedit的语法突出显示恢复正常。

我听说使用LD_LIBRARY_PATH被认为是不好的做法。现在我有第一手的经验可以出错。