linuxmint / xed

X-Apps [Text] Editor (Cross-DE, backward-compatible, GTK3, traditional UI)
GNU General Public License v2.0
447 stars 84 forks source link

xed displays errors when run in terminal #508

Open ChooChooAl opened 2 years ago

ChooChooAl commented 2 years ago

@clefebvre

Version 3.0.2
OS: Linux Mint 20.2 x86_64 Cinnamon
Kernel: 5.4.0-91-generic

xed itself is not having issues that I notice but when I call it from terminal to edit files I get the same errors every time. I just thought I'd pass it on in case it's the tip of the iceberg as the saying goes. Error when editing crontab: **alan: ~ $ crontab -e

(xed:15701): GtkSourceView-WARNING **: 09:03:21.379: no color named 'white'

(xed:15701): Gtk-CRITICAL **: 09:03:29.824: gtk_notebook_get_tab_label: assertion 'list != NULL' failed

(xed:15701): Gtk-CRITICAL : 09:03:29.852: gtk_notebook_get_tab_label: assertion 'list != NULL' failed crontab: installing new crontab

Steps to reproduce run xed filename from terminal Expected behaviour No errors reported to the screen. Other information I changed themes so I know it's not caused by that. The "white not found" made me think I had a theme issue.

ChooChooAl commented 2 years ago

Is this an xed issue or a gtk issue? (xed:2411): GtkSourceView-WARNING **: 16:27:10.097: no color named 'white'

JosephMcc commented 2 years ago

My guess is that it is an issue with theme that is being used for the code highlighting. Which one are you using?

ChooChooAl commented 2 years ago

A theme I wrote, a derivative of Mint-Y-Red. However as noted above, I've changed all of my options in settings->themes to a system Mint-X, rebooted, and xed still throws errors. (xed:3654): GtkSourceView-WARNING **: 20:32:53.090: no color named 'white'

(xed:3654): Gtk-CRITICAL **: 20:32:57.074: gtk_notebook_get_tab_label: assertion 'list != NULL' failed

(xed:3654): Gtk-CRITICAL **: 20:32:57.094: gtk_notebook_get_tab_label: assertion 'list != NULL' failed

JosephMcc commented 2 years ago

It has nothing to do with the Gtk theme you are using. I'm talking about the theme set in Xed under Edit->Preferences->Theme.

ChooChooAl commented 2 years ago

Well, I tried about 4 different, classic, Kate, Tango, +another and all did the same. Close this. I kinda thought it was simple. I know there are much bigger things in life. It's just tossing these messages both on the terminal and in .xsession-errors.
Xed still works and I have no trouble doing anything in xed.

GuidoBartoli commented 2 years ago

On Linux Mint 21 Cinnamon, even if the program works properly, launching xed from terminal still gives the following warnings and errors:

** (xed:155658): WARNING **: 11:46:15.377: Error initializing Python Plugin Loader: PyGObject initialization failed
ImportError: could not import gobject (error was: ModuleNotFoundError("No module named 'gi'"))

** (xed:155658): WARNING **: 11:46:15.377: Please check the installation of all the Python related packages required by libpeas and try again

(xed:155658): libpeas-WARNING **: 11:46:15.377: Loader 'python3' is not a valid PeasPluginLoader instance

** (xed:155658): WARNING **: 11:46:15.381: Failed to load builtin plugin: Text Size

** (xed:155658): WARNING **: 11:46:15.381: Failed to load builtin plugin: Open URI

** (xed:155658): WARNING **: 11:46:15.381: Failed to load builtin plugin: Join Lines

(xed:155658): Gtk-CRITICAL **: 11:46:31.537: gtk_action_group_get_action: assertion 'GTK_IS_ACTION_GROUP (action_group)' failed
Rigel2118 commented 3 weeks ago

I found that this error is likely due to running xed while conda base is activated. I tried to deactivate conda then run xed and the errors are gone.

ChooChooAl commented 3 weeks ago

I don't have anything 'conda*' installed.