Bug 634087

Summary: GEdit crashes when editing vala files
Product: [Fedora] Fedora Reporter: aitkiar <aitkiar>
Component: gedit-valaAssignee: Michel Lind <michel>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: low    
Version: 13CC: michel
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: gedit-vala-0.10.2-1.fc14 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-09-30 06:11:00 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description aitkiar 2010-09-15 07:53:12 UTC
Description of problem:
Each time I try to use code-completion on a Vala document gedit crashes. Using other editors like valaide or monodevelop have similar consesuences. I think the problem is related to SDL, because when i try to use other packages code-completion works.

Version-Release number of selected component (if applicable):


How reproducible:
Just try editing a vala file with vala toys and code-completion activated in Gedit. Then try typing "SDL." ( without the quotes ) and let the autocompletion start.

Steps to Reproduce:
1.
2.
3.
  
Actual results:
GEdit and Valaide crashes. Monodevelop shows an error message and continue working but without code completion.

Expected results:
A list of available things in package SDL.

Additional info:
I tried this on a debian testing virtual machine with the same results.

Comment 1 Michel Lind 2010-09-15 08:30:15 UTC
If ValaIDE and monodevelop are also affected, it might be a bug in Vala's SDL binding. What version of Vala and gedit-vala did you try?

Comment 2 aitkiar 2010-09-15 09:14:51 UTC
My machine is up to date with the fedora repos so I guess they are the last ones. Yum list installed show this:

gedit-vala.x86_64                          0.6.1-1.fc13               @anaconda-InstallationRepo-201005130101.x86_64
vala.x86_64                                0.9.3-1.fc13               @updates  
vala-devel.x86_64                          0.9.3-1.fc13               @updates  
vala-doc.x86_64                            0.9.3-1.fc13               @updates  
vala-tools.x86_64                          0.9.3-1.fc13               @updates
gedit.x86_64                               1:2.30.2-1.fc13            @anaconda-InstallationRepo-201005130101.x86_64
gedit-debuginfo.x86_64                     1:2.30.2-1.fc13            @fedora-debuginfo
gedit-plugins.x86_64                       2.29.4-1.fc13              @anaconda-InstallationRepo-201005130101.x86_64

Comment 3 Michel Lind 2010-09-15 10:33:13 UTC
I'm on my F-14 machine right now, and on it with the gedit-vala 0.9.3 in updates-testing, gedit no longer crashes. It still does not auto-complete, though. I'll check at the vala mailing list.

In Debian testing, presumably you use the same set-up? If you could provide the version information for the affected components there, that'd be really helpful.

Comment 4 Michel Lind 2010-09-15 11:05:29 UTC
This problem is specific to vala toys for gEdit (gedit-vala) and, it appears, valide. I installed another Vala editing mode, valencia, and using it the SDL module is auto-completed just fine.

Filed a report against vtg here:
http://code.google.com/p/vtg/issues/list?cursor=155

Comment 5 aitkiar 2010-09-15 12:26:52 UTC
These are my debian package versions. There's no gedit-vala-toys package for debian, so here I only tried ValaIDE and monodevelop.

libvala0                             0.8.1-2                             
vala-doc                             0.8.1-2
vala-utils                           0.8.1-2
valac                                0.8.1-2
valac-dbg                            0.8.1-2
valide                               0.7.0-1
valide-common                        0.7.0-1

I'll try compiling valencia plugin and disabling vala-toys in gedit until F14 is released.

Comment 6 Michel Lind 2010-09-15 12:54:11 UTC
There's a Fedora package for valencia (it has not been reviewed yet) here:

http://salimma.fedorapeople.org/specs/gnome/gedit-valencia-0.3.0-2.fc14.src.rpm

so please give it a try and let me know if it works for you.

Comment 7 aitkiar 2010-09-15 15:10:36 UTC
I can't compile the fedora package since not the dependencies are available in f13. This is the error when I use rpmbuild --rebuild

Package vala-0.10 was not found in the pkg-config search path.
Perhaps you should add the directory containing `vala-0.10.pc'
to the PKG_CONFIG_PATH environment variable
No package 'vala-0.10' found
make: *** [libvalencia.so] Error 1


However, downloading the source from valencia homepage and compiling have worked and now i have code completion in gedit.

Comment 8 Michel Lind 2010-09-15 15:58:42 UTC
Thanks; I'll need to re-test the patch on an F-13 machine. Basically vala < 0.9.5 and vala >= 0.9.5 provide different package names, and the patch that's currently in the package attempts to handle both cases. Obviously it does not.

Comment 9 Michel Lind 2010-09-20 16:42:27 UTC
Update: upstream has released version 0.10.1 which fixes this issue, but at the moment it fails to compile on 64-bit Linux; still investigating.

http://code.google.com/p/vtg/issues/detail?id=157

Comment 10 Michel Lind 2010-09-21 10:06:22 UTC
Fixed for F-14 and above. Unfortunately the version that fixes this needs several components that are newer than what we ship in F-13 (vala and gtksourceview2) so I'd recommend F-13 users to move to gedit-valencia once that is reviewed:

https://bugzilla.redhat.com/show_bug.cgi?id=518892

Comment 11 Fedora Update System 2010-09-21 10:10:12 UTC
gedit-vala-0.10.2-1.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/gedit-vala-0.10.2-1.fc14

Comment 12 Fedora Update System 2010-09-21 18:16:40 UTC
gedit-vala-0.10.2-1.fc14 has been pushed to the Fedora 14 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update gedit-vala'.  You can provide feedback for this update here: https://admin.fedoraproject.org/updates/gedit-vala-0.10.2-1.fc14

Comment 13 Fedora Update System 2010-09-30 06:10:56 UTC
gedit-vala-0.10.2-1.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.