FS#59447 - [sushi] Sushi crashes on startup when gtksourceview4 is installed

Attached to Project: Arch Linux
Opened by Pedro Nariyoshi (nariox) - Wednesday, 25 July 2018, 17:11 GMT
Last edited by Jan de Groot (JGC) - Friday, 23 August 2019, 21:03 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jan de Groot (JGC)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
When gtksourceview4 is installed, 'imports.gi.GtkSource' returns 4 instead of 3 and crashes. Specifically, it produces the following text:
* (sushi-start:13432): Gjs-WARNING **: 12:54:30.248: JS ERROR: Error: Requiring Sushi, version none: Requiring namespace 'GtkSource' version '3.0', but '4' is already loaded

Additional info:
* sushi 3.28.3-1

Steps to reproduce:
* Start sushi by pressing Space on nautilus OR call sushi from the terminal

Steps to fix:
* Modify text.js to require GtkSource=3.0 (or whatever version it was compiled with)

I've written a patch that does that, although it might be just as easy to simply add this line to your text.js:
* imports.gi.versions.GtkSource = "3.0";
This task depends upon

Closed by  Jan de Groot (JGC)
Friday, 23 August 2019, 21:03 GMT
Reason for closing:  Fixed
Additional comments about closing:  Your change is in 3.32.1-1 (included upstream).

Loading...