New gedit goodies
September 3rd, 2011 — Jesse van den KieboomJust a quick update of what I’m currently working on:
That’s right, that’s clang integrated in gedit (with the very nice libclang). For now only error reporting is implemented but libclang will also gives us the AST (allowing fancy stuff like static analysis, referencing, symbol browsing, etc.). In addition, there will be auto completion in the near future.
You can’t test this, you can’t find the code yet anywhere, this is just to tease you.

September 3rd, 2011 at 02:38
\o/
I suppose it does autoupdate while your editing?
September 3rd, 2011 at 02:56
Indeed it does. It reparses asynchronously and handles currently unsaved buffers etc.
September 3rd, 2011 at 04:01
Exciting! Please do let us know when it’s ready to play with
September 3rd, 2011 at 07:49
thank you thank you thank you thank you thank you!
September 3rd, 2011 at 09:02
Do you think the code for real-time parsing could be easily reused for languages like Python and JavaScript?
It’s looking awesome already. Perhaps some donations will be called for when it’s available for testing.
September 3rd, 2011 at 10:16
This looks really really impressive.
But what of Anjuta? If that’s the “official IDE” of the Gnome project, then doesn’t this sort of thing belong there, rather than in a “simple” text editor?
September 3rd, 2011 at 10:47
Symbolic icons would be better here. I’d recommend dialog-error-symbolic and dialog-information-symbolic.
September 3rd, 2011 at 10:47
Awesome, like always.
September 3rd, 2011 at 11:29
[...] this is not as awesome as the post from jesse, but I think it is worth to tell about it. With the new addition in GTK+ for reporting the position [...]
September 3rd, 2011 at 12:08
I don’t know about those actually, what’s the difference?
September 3rd, 2011 at 12:17
I like gedit so I scratched my itch. If you like anjuta then implement it there. Also note that gedit development is coupled to gtksourceview and we use to pioneer functionality in gedit before implementation in gsv. Anjuta also uses gsv, so… Then of course this is implemented as a plugin and doesnt use much gedit specific things.
September 3rd, 2011 at 12:18
Yes this is planned. At least for python I think I know how to implement it. For JavaScript I will have to find out how to do it still
September 3rd, 2011 at 12:50
Jesse, the difference between symbolic and normal icons you mean? Symbolic icons introduce less visual noise, so they’re better in contexts where they are close to competing visual elements (like here with the text). They’re recommended for use in lists, inside entry fields or in raised buttons. They can be found in the gnome-icon-theme-symbolic repository and there are guidelines on the wiki: http://live.gnome.org/GnomeShell/Design/Whiteboards/SymbolicIcons
I maybe wouldn’t use icons for the info and warning lines, btw. It’s a bit icon overload and you’re just repeating what the text is telling you anyway.
September 4th, 2011 at 07:05
Thanks for your work on this, Jesse!
j1mc
September 4th, 2011 at 19:05
Nice work.
I was currently working on the auto-completion with libclang but it seems I can throw my work away and just wait
September 4th, 2011 at 22:38
The underlines look funny. (text is displayed higher)
but it looks pretty cool, and I can’t wait for the first release of this goodness.
September 5th, 2011 at 01:10
I was just fiddling a bit with the visualization and I raised the text a bit, that has already been changed now.
September 5th, 2011 at 01:13
I would be more than happy to get help of course! We should see how to integrate both our work, feel free to drop by on irc in #gedit
September 7th, 2011 at 23:53
That’s looking really awesome!
September 9th, 2011 at 14:30
Impressive. Let us know about the evolution of this plugin.