View previous topic :: View next topic |
Author |
Message |
dhasenan
Joined: 03 Feb 2005 Posts: 73 Location: New York
|
Posted: Sun Jun 10, 2007 3:47 pm Post subject: Status of autocompletion? |
|
|
There seem to be some autocompletion functions in leds, from what I've read in the source. Certainly how it was designed, it should be relatively simple to implement autocompletion, and along with it have the object browser update itself while editing (which it currently doesn't).
Specifically, there's a function canAutoComplete, a getAutoCompleteList in CodeBlock, and a few other things. If the parsing is accurate (and it seems to be reasonable, from the outline view), then all that should be left to do is hooking up the events and updating the object list in memory.
Someone reasonably familiar with the LEDS codebase should be able to do this fairly quickly, I think. Is there a particular reason this hasn't been done, other than Ant being incredibly overworked? |
|
Back to top |
|
|
Ant
Joined: 06 Mar 2004 Posts: 306 Location: Canada
|
Posted: Mon Jun 11, 2007 6:55 pm Post subject: Re: Status of autocompletion? |
|
|
dhasenan wrote: | There seem to be some autocompletion functions in leds, from what I've read in the source. Certainly how it was designed, it should be relatively simple to implement autocompletion, and along with it have the object browser update itself while editing (which it currently doesn't).
Specifically, there's a function canAutoComplete, a getAutoCompleteList in CodeBlock, and a few other things. If the parsing is accurate (and it seems to be reasonable, from the outline view), then all that should be left to do is hooking up the events and updating the object list in memory.
Someone reasonably familiar with the LEDS codebase should be able to do this fairly quickly, I think. Is there a particular reason this hasn't been done, other than Ant being incredibly overworked? |
You're right on every thing.
and right to the point that what you describe use on work fine on previous versions.
Right now I'm trying to use GtkSourceView instead of Scintilla but it segfaults frequently...
I'm also planing to move leds to Tango, but that's a lot of work...
finally I think only you, me and AK use leds...
Ant |
|
Back to top |
|
|
okibi
Joined: 04 Jan 2007 Posts: 170
|
Posted: Tue Jun 12, 2007 5:19 am Post subject: |
|
|
I use leds at home, pn2 at work.
Gotta love leds!
Also, how is the GtkSourceView implementation going? What are you getting segfaults from? Just wondering as I wrote an XML editor using GtkSourceView with gtkD. |
|
Back to top |
|
|
dhasenan
Joined: 03 Feb 2005 Posts: 73 Location: New York
|
Posted: Tue Jun 12, 2007 5:18 pm Post subject: |
|
|
I think, if leds had autocompletion, it'd have a much larger userbase, given that no other D editor has autocompletion. And I think it probably already has a decent one, considering the size of the community.
Of course, a Windows port would also help, but that takes a much larger effort. (Though since GTK is available for Windows, I'm not sure how much larger an effort it would be.) |
|
Back to top |
|
|
okibi
Joined: 04 Jan 2007 Posts: 170
|
Posted: Wed Jun 13, 2007 5:09 am Post subject: |
|
|
I was under the impression that there already is a Windows port... |
|
Back to top |
|
|
Ant
Joined: 06 Mar 2004 Posts: 306 Location: Canada
|
|
Back to top |
|
|
Ant
Joined: 06 Mar 2004 Posts: 306 Location: Canada
|
Posted: Wed Jun 13, 2007 6:33 pm Post subject: |
|
|
okibi wrote: | I use leds at home, pn2 at work.
Gotta love leds!
Also, how is the GtkSourceView implementation going? What are you getting segfaults from? Just wondering as I wrote an XML editor using GtkSourceView with gtkD. |
It segfaults on saving, when leds execute a process to compile the unit being saved.
So I'm not sure if it's really the SourceView or... but doesn't happen with Scintilla.
let me try make the unit compile synchronous instead of spawning a phobos thread... , it worked, now I can't segfault it
now I can use my time on more productive goals...
Ant |
|
Back to top |
|
|
okibi
Joined: 04 Jan 2007 Posts: 170
|
Posted: Thu Jun 14, 2007 5:45 am Post subject: |
|
|
Well I'm glad you got it to work! Can't wait for the finished product!
Yeah, I only use leds on Linux. I don't do much programming on Windows so there is no need for me to get it. |
|
Back to top |
|
|
dhasenan
Joined: 03 Feb 2005 Posts: 73 Location: New York
|
Posted: Thu Jun 14, 2007 8:22 pm Post subject: |
|
|
Ah, I had missed the autocomplete option in preferences. Now I'm almost in love. |
|
Back to top |
|
|
Extrawurst
Joined: 14 Mar 2007 Posts: 41
|
Posted: Sun Jun 17, 2007 6:00 am Post subject: |
|
|
can someone please tell me how i use this windows-preview. the only thing i see in the zip file is a file without any extension which i dont know how to use?!
i would like to try leds on windows |
|
Back to top |
|
|
Ant
Joined: 06 Mar 2004 Posts: 306 Location: Canada
|
Posted: Sun Jun 17, 2007 6:20 am Post subject: |
|
|
Extrawurst wrote: |
can someone please tell me how i use this windows-preview. the only thing i see in the zip file is a file without any extension which i dont know how to use?!
i would like to try leds on windows |
That is the leds executable.
rename it to leds.exe (or leds_p4.exe) an go.
(please follow the project and target definition closelly from
http://leds.sourceforge.net/userManualPage.html
or you'll loose great part of leds power.
and that's not up to date so things moved around a bit)
Ant |
|
Back to top |
|
|
mirceade
Joined: 19 Jun 2007 Posts: 1
|
Posted: Tue Jun 19, 2007 5:16 am Post subject: |
|
|
I think the D thing is going to be big. It will be what python should have been. |
|
Back to top |
|
|
|