Just 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.
\o/
I suppose it does autoupdate while your editing?
Indeed it does. It reparses asynchronously and handles currently unsaved buffers etc.
Exciting! Please do let us know when it’s ready to play with
thank you thank you thank you thank you thank you!
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.
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
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?
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.
Symbolic icons would be better here. I’d recommend dialog-error-symbolic and dialog-information-symbolic.
I don’t know about those actually, what’s the difference?
Awesome, like always. :)
Pingback: Nacho's Blog » Blog Archive » New things in gedit-cossa
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. :)
Thanks for your work on this, Jesse!
j1mc
Nice work.
I was currently working on the auto-completion with libclang but it seems I can throw my work away and just wait :-)
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
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.
I was just fiddling a bit with the visualization and I raised the text a bit, that has already been changed now.
That’s looking really awesome!
Impressive. Let us know about the evolution of this plugin.