Thread: [Pydev-code] PyDev editor behavior
Brought to you by:
fabioz
From: Bill W. <ww...@bb...> - 2004-08-05 12:26:29
|
Folks, I've been using pydev (latest CVS) in the past few days and have noticed some strange behavior and I wonder if it's intentional or a bug. It seems that the key combination <SHIFT><SPACE> causes a kill-line rather than a space like it does in the Java editor. I type that accidentally quite a bit and find it annoying. Is this done on purpose? Thanks, Bill |
From: Fabio Z. <fa...@in...> - 2004-08-05 13:07:33
|
Well, it seems so... As a workaround for now, you can go on workbench->keys and remove the shift+space combination (I find that annoying too, but I just removed the keybinding on my machine ). I will do it for the plugin too - if that's okay with you Parhaum. []s Fabio Zadrozny ------------------------------------------------------ Software Developer ESSS - Engineering Simulation and Scientific Software www.esss.com.br -----Original Message----- From: pyd...@li... [mailto:pyd...@li...] On Behalf Of Bill Wright Sent: quinta-feira, 5 de agosto de 2004 09:26 To: pyd...@li... Subject: [Pydev-code] PyDev editor behavior Folks, I've been using pydev (latest CVS) in the past few days and have noticed some strange behavior and I wonder if it's intentional or a bug. It seems that the key combination <SHIFT><SPACE> causes a kill-line rather than a space like it does in the Java editor. I type that accidentally quite a bit and find it annoying. Is this done on purpose? Thanks, Bill ------------------------------------------------------- This SF.Net email is sponsored by OSTG. Have you noticed the changes on Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, one more big change to announce. We are now OSTG- Open Source Technology Group. Come see the changes on the new OSTG site. www.ostg.com _______________________________________________ Pydev-code mailing list Pyd...@li... https://lists.sourceforge.net/lists/listinfo/pydev-code |
From: Bill W. <ww...@bb...> - 2004-08-05 15:12:25
|
Ah, I see! It's supposed to strip trailing whitespace. I didn't know about the workspace->keys thing. I removed that key sequence and it's all better now. Thanks! Bill Fabio Zadrozny wrote: >Well, it seems so... > >As a workaround for now, you can go on workbench->keys and remove the >shift+space combination (I find that annoying too, but I just removed the >keybinding on my machine ). > >I will do it for the plugin too - if that's okay with you Parhaum. > >[]s > >Fabio Zadrozny >------------------------------------------------------ >Software Developer >ESSS - Engineering Simulation and Scientific Software >www.esss.com.br > > >-----Original Message----- >From: pyd...@li... >[mailto:pyd...@li...] On Behalf Of Bill Wright >Sent: quinta-feira, 5 de agosto de 2004 09:26 >To: pyd...@li... >Subject: [Pydev-code] PyDev editor behavior > >Folks, > >I've been using pydev (latest CVS) in the past few days and have noticed >some strange behavior and I wonder if it's intentional or a bug. It seems >that the key combination <SHIFT><SPACE> causes a kill-line rather than a >space like it does in the Java editor. I type that accidentally quite a bit >and find it annoying. Is this done on purpose? > >Thanks, >Bill > > > >------------------------------------------------------- >This SF.Net email is sponsored by OSTG. Have you noticed the changes on >Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, one >more big change to announce. We are now OSTG- Open Source Technology Group. >Come see the changes on the new OSTG site. www.ostg.com >_______________________________________________ >Pydev-code mailing list >Pyd...@li... >https://lists.sourceforge.net/lists/listinfo/pydev-code > > > >------------------------------------------------------- >This SF.Net email is sponsored by OSTG. Have you noticed the changes on >Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, >one more big change to announce. We are now OSTG- Open Source Technology >Group. Come see the changes on the new OSTG site. www.ostg.com >_______________________________________________ >Pydev-code mailing list >Pyd...@li... >https://lists.sourceforge.net/lists/listinfo/pydev-code > > > |
From: Parhaum T. <pto...@ho...> - 2004-08-06 02:56:10
|
Bah. Sorry about that, I thought I ran tests on it and only realized that it was killing the line in some cases... I apologize, I was going to fix that up once I'm back in California. Didn't know the keystroke combo was conflicting, either. - Parhaum ----- Original Message ----- From: "Fabio Zadrozny" <fa...@in...> To: <pyd...@li...> Sent: Thursday, August 05, 2004 9:11 AM Subject: RE: [Pydev-code] PyDev editor behavior > Well, it seems so... > > As a workaround for now, you can go on workbench->keys and remove the > shift+space combination (I find that annoying too, but I just removed the > keybinding on my machine ). > > I will do it for the plugin too - if that's okay with you Parhaum. > > []s > > Fabio Zadrozny > ------------------------------------------------------ > Software Developer > ESSS - Engineering Simulation and Scientific Software > www.esss.com.br > > > -----Original Message----- > From: pyd...@li... > [mailto:pyd...@li...] On Behalf Of Bill Wright > Sent: quinta-feira, 5 de agosto de 2004 09:26 > To: pyd...@li... > Subject: [Pydev-code] PyDev editor behavior > > Folks, > > I've been using pydev (latest CVS) in the past few days and have noticed > some strange behavior and I wonder if it's intentional or a bug. It seems > that the key combination <SHIFT><SPACE> causes a kill-line rather than a > space like it does in the Java editor. I type that accidentally quite a bit > and find it annoying. Is this done on purpose? > > Thanks, > Bill > > > > ------------------------------------------------------- > This SF.Net email is sponsored by OSTG. Have you noticed the changes on > Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, one > more big change to announce. We are now OSTG- Open Source Technology Group. > Come see the changes on the new OSTG site. www.ostg.com > _______________________________________________ > Pydev-code mailing list > Pyd...@li... > https://lists.sourceforge.net/lists/listinfo/pydev-code > > > > ------------------------------------------------------- > This SF.Net email is sponsored by OSTG. Have you noticed the changes on > Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, > one more big change to announce. We are now OSTG- Open Source Technology > Group. Come see the changes on the new OSTG site. www.ostg.com > _______________________________________________ > Pydev-code mailing list > Pyd...@li... > https://lists.sourceforge.net/lists/listinfo/pydev-code > > |
From: Fabio Z. <fa...@in...> - 2004-08-06 17:22:36
|
Hi All, I've just added the templates preferences pages and the templates support to our plugin. If anyone wants to add more templates to the default templates, that would be a great idea... []s Fabio Zadrozny ------------------------------------------------------ Software Developer ESSS - Engineering Simulation and Scientific Software www.esss.com.br |
From: Dana M. <dan...@ya...> - 2004-08-09 22:46:40
|
Hi all I just added autocompletion using a spawned CPython interpreter only (replaces the old jython strategy). The affected files are: org.python.pydev\src\org\python\pydev\editor\PyEditConfiguration.java org.python.pydev\src\org\python\pydev\editor\PythonCompletionProcessor.java and pretty much all the python source files. org.python.pydev\PySrc\:: debug.py inspect.py introspect.py jintrospect.py tipper.py Let me know if something is a problem. let me know if yo ulike the autocompletion style It should sutocomplete on the occurence of '.' or '(' in the workbench code If there are any robustness problems. The one which I know aout _potentially_ biting us is that I assume the existence of a Python interpreter somewhere in the user's path, thus I don't attempt to do full discovery of wher ethe python interpreter actually lives, rather I simply exec the string: "python <abs-path-of-org.python.pydev\PySrc>\tipper.py <tmp-file-containing-the-editor-content>" If it doesn't exist on the user path, autocmpletion simply won't work I plan next to do a set of CTRL-SPACE completions a la the JDT: so for example, if the user types: iff <CTRL><SPACE> we might emit the text (on user selection): "if condition: action else: action" ===== _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ _/ Dana Moore _/ _/ BBN Technologies LLC _/ _/ M: 240.350.4196 _/ _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ __________________________________ Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! http://promotions.yahoo.com/new_mail |
From: Aleks T. <a...@to...> - 2004-08-10 00:46:58
|
Hi Dana, I am one of those that does not have python in his system path. Mine is set inside .bashrc. You should use the interpreter set by the debugger, or implement an additional completion interpreter preference. My choice would be to use the debugger one, since that covers 99% case. There is also an interpreter verification routine you can use to check if interpreter is there. In my tree, PythonCompletionProcessor fails to compile: throw new CoreException(PydevPlugin.makeStatus(IStatus.ERROR, "Can't find python debug script", null)); How will autocompletion work? Will it be triggered automatically after every '.', or does user have to launch it? My preference is that user needs to act to turn it out. I am not too happy with the CPython solution, it is heavyweight, and the "python on path" problem cannot be solved nicely. Also, please before the final checking try to: - remove all the problem warnings - remove the System.out.printfs Looking forward to trying it out, Aleks PS: I just came back from a family vacation, back to hacking. Dana Moore wrote: > Hi all > I just added autocompletion using a spawned CPython interpreter only > (replaces the old jython strategy). > The affected files are: > org.python.pydev\src\org\python\pydev\editor\PyEditConfiguration.java > org.python.pydev\src\org\python\pydev\editor\PythonCompletionProcessor.java > and pretty much all the python source files. > org.python.pydev\PySrc\:: > debug.py > inspect.py > introspect.py > jintrospect.py > tipper.py > Let me know if something is a problem. > let me know if yo ulike the autocompletion style > It should sutocomplete on the occurence of '.' or '(' in the workbench > code > If there are any robustness problems. The one which I know aout > _potentially_ biting us is that I assume the existence of a Python > interpreter somewhere in the user's path, thus I don't attempt to do > full discovery of wher ethe python interpreter actually lives, rather I > simply exec the string: > "python <abs-path-of-org.python.pydev\PySrc>\tipper.py > <tmp-file-containing-the-editor-content>" > If it doesn't exist on the user path, autocmpletion simply won't work > > I plan next to do a set of CTRL-SPACE completions a la the JDT: > so for example, if the user types: iff <CTRL><SPACE> > we might emit the text (on user selection): > "if condition: > action > else: > action" |
From: Dana M. <dan...@ya...> - 2004-08-10 02:03:29
|
I forgot to check in PydevPlugin; sorry. It should compile fine now. --- Aleks Totic <a...@to...> wrote: > Hi Dana, > I am one of those that does not have python in his system path. > Mine is set inside .bashrc. You should use the interpreter set by > the debugger, or implement an additional completion interpreter > preference. My choice would be to use the debugger one, since > that covers 99% case. There is also an interpreter verification > routine you can use to check if interpreter is there. > Hmmm, so are you saying that "python" doesn't work from a normal command line shell? Because if it does, then my scheme works fine. On my linux system where I dot a .bashrc, this seems to work fine. I have not tried on Mac OSX, but should be able to as soon as I take delivery of my Mac. > In my tree, PythonCompletionProcessor fails to compile: > > throw new CoreException(PydevPlugin.makeStatus(IStatus.ERROR, > "Can't find python debug script", null)); > See above comment. Should build clean now. > How will autocompletion work? Will it be triggered automatically > after every '.', or does user have to launch it? My preference is > that user needs to act to turn it out. I am not too happy with > the CPython solution, it is heavyweight, and the "python on path" > problem cannot be solved nicely. > Right now it's on by default and can't be turned off just like in the Java IDE, the Semantic Web (SWeDe) IDE, IDLE for Python, JEdit, BOA Constructor, Komodo,( others??) I _suppose_ we could turn it off, but will anyone actually want that? Currently, we trigger on '.' and '(' and it really looks great. Actually, wrt the to "python on path" point, if a user does not have python, autocompletion will just silently not work. Further, if they do not have python, they may not be that interested in editing Python anyway. As far as the weight of this solution, It runs without any perceivable delay on my laptop, which is a a 1.8 Ghz Centrino (ecept for the built in 500 msec built in delay) Hmmm, Is there actually some preferable design solution to the need to interpret code in orde to autocomplete a runtime interpreted language? I implemented a Jython version, and that worked less nicely than we would have liked. Do you want to scrap this implementation too and reinstate that one again? > Also, please before the final checking try to: > - remove all the problem warnings > - remove the System.out.printfs > Done.The only warnings remaining in either of the files I checked in are a deprecation for "The type IAutoIndentStrategy is deprecated" I didn't implement that and I am loathe to mod that tonight, lest it break your or Fabio's code, since I think one of you must have provided that implementation. Looks like we can use (and extend) IAutoEditStrategy directly. We do have 12 other warnings, but they look like something we can fix later. > Looking forward to trying it out, > Yeah, it finally looks production quality :-) > Aleks > > PS: I just came back from a family vacation, back to hacking. > > Dana Moore wrote: > > > Hi all > > I just added autocompletion using a spawned CPython interpreter > only > > (replaces the old jython strategy). > > The affected files are: > > > org.python.pydev\src\org\python\pydev\editor\PyEditConfiguration.java > > > org.python.pydev\src\org\python\pydev\editor\PythonCompletionProcessor.java > > and pretty much all the python source files. > > org.python.pydev\PySrc\:: > > debug.py > > inspect.py > > introspect.py > > jintrospect.py > > tipper.py > > Let me know if something is a problem. > > let me know if yo ulike the autocompletion style > > It should sutocomplete on the occurence of '.' or '(' in the > workbench > > code > > If there are any robustness problems. The one which I know aout > > _potentially_ biting us is that I assume the existence of a Python > > interpreter somewhere in the user's path, thus I don't attempt to > do > > full discovery of wher ethe python interpreter actually lives, > rather I > > simply exec the string: > > "python <abs-path-of-org.python.pydev\PySrc>\tipper.py > > <tmp-file-containing-the-editor-content>" > > If it doesn't exist on the user path, autocmpletion simply won't > work > > > > I plan next to do a set of CTRL-SPACE completions a la the JDT: > > so for example, if the user types: iff <CTRL><SPACE> > > we might emit the text (on user selection): > > "if condition: > > action > > else: > > action" > > > > > ------------------------------------------------------- > SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank > Media > 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 > Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. > http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 > _______________________________________________ > Pydev-code mailing list > Pyd...@li... > https://lists.sourceforge.net/lists/listinfo/pydev-code > ===== _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ _/ Dana Moore _/ _/ BBN Technologies LLC _/ _/ M: 240.350.4196 _/ _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ _______________________________ Do you Yahoo!? Express yourself with Y! Messenger! Free. Download now. http://messenger.yahoo.com |
From: Aleks T. <a...@to...> - 2004-08-11 23:16:04
|
Hi guys, I think I'll have to hand off the coding reins to Dana & Fabio now. I am no longer actively working on pydev, and the stuff you guys have written requires more than a glance to understand fully. Fabio has better understanding of it than I do. Where do we go from here? I'd like for some pydev release in the near future to be stable and useful enough to be called 1.0. Many of the open source projects fail to reach this stage, and users are left with something that almost works. I'd really like to leave a 1.0 behind, something that users can count on. Code completion worries me from the support standpoint. It is a marvel that it works on an untyped language. There are several gotchas that users might experience: python not in path, and issues Fabio discovered. Would you be willing to help users understand these issues better by writing something down, on the website, and/or in the docs. Also Fabio, could you jot down some docs for templates? The website, and the Eclipse docs are in the org.python.pydev.help project. >>Also, please before the final checking try to: >>- remove all the problem warnings >>- remove the System.out.printfs >> > > Done.The only warnings remaining in either of the files I checked in > are a deprecation for "The type IAutoIndentStrategy is deprecated" I > didn't implement that and I am loathe to mod that tonight, lest it > break your or Fabio's code, since I think one of you must have provided > that implementation. Looks like we can use (and extend) > IAutoEditStrategy directly. We do have 12 other warnings, but they look > like something we can fix later. IAutoIndentStategy can't be replaced right now. It is another Eclipse's gotcha. I'd love to pack up and create a release in the next few weeks. Just tell me when you think your features are ready. Cool to see the project taking off without me, Aleks Dana Moore wrote: > I forgot to check in PydevPlugin; sorry. It should compile fine now. > --- Aleks Totic <a...@to...> wrote: > > >>Hi Dana, >>I am one of those that does not have python in his system path. >>Mine is set inside .bashrc. You should use the interpreter set by >>the debugger, or implement an additional completion interpreter >>preference. My choice would be to use the debugger one, since >>that covers 99% case. There is also an interpreter verification >>routine you can use to check if interpreter is there. >> > > > Hmmm, so are you saying that "python" doesn't work from a normal > command line shell? Because if it does, then my scheme works fine. > On my linux system where I dot a .bashrc, this seems to work fine. I > have not tried on Mac OSX, but should be able to as soon as I take > delivery of my Mac. > > >>In my tree, PythonCompletionProcessor fails to compile: >> >>throw new CoreException(PydevPlugin.makeStatus(IStatus.ERROR, >> "Can't find python debug script", null)); >> > > See above comment. Should build clean now. > > >>How will autocompletion work? Will it be triggered automatically >>after every '.', or does user have to launch it? My preference is >> that user needs to act to turn it out. I am not too happy with >>the CPython solution, it is heavyweight, and the "python on path" >>problem cannot be solved nicely. >> > > Right now it's on by default and can't be turned off just like in the > Java IDE, the Semantic Web (SWeDe) IDE, IDLE for Python, JEdit, BOA > Constructor, Komodo,( others??) I _suppose_ we could turn it off, but > will anyone actually want that? > Currently, we trigger on '.' and '(' and it really looks great. > > Actually, wrt the to "python on path" point, if a user does not have > python, autocompletion will just silently not work. Further, if they do > not have python, they may not be that interested in editing Python > anyway. > As far as the weight of this solution, It runs without any perceivable > delay on my laptop, which is a a 1.8 Ghz Centrino (ecept for the built > in 500 msec built in delay) > > Hmmm, Is there actually some preferable design solution to the need to > interpret code in orde to autocomplete a runtime interpreted language? > I implemented a Jython version, and that worked less nicely than we > would have liked. Do you want to scrap this implementation too and > reinstate that one again? > > > >>Looking forward to trying it out, >> > > Yeah, it finally looks production quality :-) > > >>Aleks >> >>PS: I just came back from a family vacation, back to hacking. >> >>Dana Moore wrote: >> >> >>>Hi all >>>I just added autocompletion using a spawned CPython interpreter >> >>only >> >>>(replaces the old jython strategy). >>>The affected files are: >>> >> >>org.python.pydev\src\org\python\pydev\editor\PyEditConfiguration.java >> > org.python.pydev\src\org\python\pydev\editor\PythonCompletionProcessor.java > >>>and pretty much all the python source files. >>>org.python.pydev\PySrc\:: >>>debug.py >>>inspect.py >>>introspect.py >>>jintrospect.py >>>tipper.py >>>Let me know if something is a problem. >>>let me know if yo ulike the autocompletion style >>>It should sutocomplete on the occurence of '.' or '(' in the >> >>workbench >> >>>code >>>If there are any robustness problems. The one which I know aout >>>_potentially_ biting us is that I assume the existence of a Python >>>interpreter somewhere in the user's path, thus I don't attempt to >> >>do >> >>>full discovery of wher ethe python interpreter actually lives, >> >>rather I >> >>>simply exec the string: >>>"python <abs-path-of-org.python.pydev\PySrc>\tipper.py >>><tmp-file-containing-the-editor-content>" >>>If it doesn't exist on the user path, autocmpletion simply won't >> >>work >> >>>I plan next to do a set of CTRL-SPACE completions a la the JDT: >>>so for example, if the user types: iff <CTRL><SPACE> >>>we might emit the text (on user selection): >>>"if condition: >>> action >>>else: >>> action" |
From: Dana M. <dan...@ya...> - 2004-08-13 20:10:25
|
Fabio and Aleks, Just wanted to mention that there is a preso at: http://conferences.oreillynet.com/presentations/os2004/moore_python.pdf that gives some of the highlights of the current release Also, you were probabaly aware of the article at: http://www-106.ibm.com/developerworks/library/os-ecant/?ca=drs-tp2604 that presents details of the current release at a nice level as well ===== _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ _/ Dana Moore _/ BBN Technologies LLC _/ M: 240.350.4196 _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage! http://promotions.yahoo.com/new_mail |
From: Aleks T. <a...@to...> - 2004-08-13 20:46:55
|
Nice presentation at OsCon. I've created a press section on the web site with these references. Aleks Dana Moore wrote: > Fabio and Aleks, > Just wanted to mention that there is a preso at: > > http://conferences.oreillynet.com/presentations/os2004/moore_python.pdf > > that gives some of the highlights of the current release > > Also, you were probabaly aware of the article at: > http://www-106.ibm.com/developerworks/library/os-ecant/?ca=drs-tp2604 > that presents details of the current release at a nice level as well |
From: Fabio Z. <fa...@in...> - 2004-08-16 19:44:48
Attachments:
PythonShell.java
|
Hi all, I'm trying to figure out how to do the code completion usable (in my machine it is very annoying having to wait for the completion, so, I'm trying to remove the places that I think really let it slow: creating a file for the process to get and spawning a Python process each time). In order to do it, I should spawn a process and then communicate with it to get the info I want. It should be easy, but I'm having the following problem: when I spawn the process, I can write to its outputstream without any problem, but it only responds once I close the outputstream. The code below explains it better (I think....) Check the comments in main().... I'm also putting a file attached with the code, if someone wants to know all I'm doing... Aleks, I tried to use what you've done in the debug, but it seemed to me that it adds a lot of overhead to what I want to do, so, it would (I think) become unusable, but maybe you can explain the concepts you used so that I can try to do it in a lightweight manner.... /** * @throws IOException */ public void startIt() throws IOException { if (p != null){ p.destroy(); } p = Runtime.getRuntime().exec("python"); //get the process //get outputs / inputs in = new BufferedReader(new InputStreamReader(p.getInputStream())); eIn = new BufferedReader(new InputStreamReader(p.getErrorStream())); stream = new BufferedOutputStream(p.getOutputStream()); } public static void main(String[] args) throws IOException, InterruptedException { final PythonShell s = new PythonShell(); new Thread(){ public void run(){ try { //print the output in this Thread s.printStdOutput(); s.printErrorOutput(); } catch (Exception e) { e.printStackTrace(); } } }.start(); for(int i=0;i<2;i++){ String str = "print 'aaaaaa'\n"; s.stream.write(str.getBytes()); s.stream.flush(); } /* s.stream.close(); */ // if I uncomment this line it executes the code in python, // otherwise it doesn't. // The bad thing is: if I do close it, I can't // write to it anymore and the code below will crash. // and I have to go and create a new process. for(int i=0;i<2;i++){ String str = "print 'aaaaaa'\n"; s.stream.write(str.getBytes()); s.stream.flush(); } } []s Fabio Zadrozny ------------------------------------------------------ Software Developer ESSS - Engineering Simulation and Scientific Software www.esss.com.br -----Original Message----- From: pyd...@li... [mailto:pyd...@li...] On Behalf Of Aleks Totic Sent: sexta-feira, 13 de agosto de 2004 17:47 To: pyd...@li... Subject: Re: [Pydev-code] OsCon Presentation on PyDev Nice presentation at OsCon. I've created a press section on the web site with these references. Aleks Dana Moore wrote: > Fabio and Aleks, > Just wanted to mention that there is a preso at: > > http://conferences.oreillynet.com/presentations/os2004/moore_python.pd > f > > that gives some of the highlights of the current release > > Also, you were probabaly aware of the article at: > http://www-106.ibm.com/developerworks/library/os-ecant/?ca=drs-tp2604 > that presents details of the current release at a nice level as well ------------------------------------------------------- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 _______________________________________________ Pydev-code mailing list Pyd...@li... https://lists.sourceforge.net/lists/listinfo/pydev-code |
From: Aleks T. <a...@to...> - 2004-08-16 20:02:11
Attachments:
Attached Message
|
You need the '-u' switch when launching python. I've chatted with Dana about doing this. I've attached an email that has some good pointers, about what I did for the debugger. Aleks Fabio Zadrozny wrote: > Hi all, > > I'm trying to figure out how to do the code completion usable (in my machine > it is very annoying having to wait for the completion, so, I'm trying to > remove the places that I think really let it slow: creating a file for the > process to get and spawning a Python process each time). > > In order to do it, I should spawn a process and then communicate with it to > get the info I want. It should be easy, but I'm having the following > problem: when I spawn the process, I can write to its outputstream without > any problem, but it only responds once I close the outputstream. The code > below explains it better (I think....) > > Check the comments in main().... > > I'm also putting a file attached with the code, if someone wants to know all > I'm doing... > > Aleks, I tried to use what you've done in the debug, but it seemed to me > that it adds a lot of overhead to what I want to do, so, it would (I think) > become unusable, but maybe you can explain the concepts you used so that I > can try to do it in a lightweight manner.... > > > /** > * @throws IOException > */ > public void startIt() throws IOException { > > if (p != null){ > p.destroy(); > } > > p = Runtime.getRuntime().exec("python"); //get the process > > //get outputs / inputs > in = new BufferedReader(new InputStreamReader(p.getInputStream())); > eIn = new BufferedReader(new InputStreamReader(p.getErrorStream())); > stream = new BufferedOutputStream(p.getOutputStream()); > } > > > > public static void main(String[] args) throws IOException, > InterruptedException { > final PythonShell s = new PythonShell(); > > new Thread(){ > public void run(){ > try { > //print the output in this Thread > s.printStdOutput(); > s.printErrorOutput(); > } catch (Exception e) { > e.printStackTrace(); > } > } > }.start(); > > for(int i=0;i<2;i++){ > String str = "print 'aaaaaa'\n"; > s.stream.write(str.getBytes()); > s.stream.flush(); > } > > > /* s.stream.close(); */ // if I uncomment this line it executes the > code in python, > // otherwise it > doesn't. > // The bad thing is: > if I do close it, I can't > // write to it > anymore and the code below will crash. > // and I have to go > and create a new process. > > for(int i=0;i<2;i++){ > String str = "print 'aaaaaa'\n"; > s.stream.write(str.getBytes()); > s.stream.flush(); > } > > } > > > []s > > Fabio Zadrozny > ------------------------------------------------------ > Software Developer > ESSS - Engineering Simulation and Scientific Software > www.esss.com.br > > > -----Original Message----- > From: pyd...@li... > [mailto:pyd...@li...] On Behalf Of Aleks Totic > Sent: sexta-feira, 13 de agosto de 2004 17:47 > To: pyd...@li... > Subject: Re: [Pydev-code] OsCon Presentation on PyDev > > Nice presentation at OsCon. I've created a press section on the web site > with these references. > > Aleks > > Dana Moore wrote: > >>Fabio and Aleks, >>Just wanted to mention that there is a preso at: >> >>http://conferences.oreillynet.com/presentations/os2004/moore_python.pd >>f >> >>that gives some of the highlights of the current release >> >>Also, you were probabaly aware of the article at: >>http://www-106.ibm.com/developerworks/library/os-ecant/?ca=drs-tp2604 >>that presents details of the current release at a nice level as well > > > > > ------------------------------------------------------- > SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk > Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off > Retail on Ink & Toner - Free Shipping and Free Gift. > http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 > _______________________________________________ > Pydev-code mailing list > Pyd...@li... > https://lists.sourceforge.net/lists/listinfo/pydev-code > > > ------------------------------------------------------------------------ > > /* > * Created on Aug 16, 2004 > * > * @author Fabio Zadrozny > */ > package org.python.pydev.editor.codecompletion; > > import java.io.BufferedOutputStream; > import java.io.BufferedReader; > import java.io.IOException; > import java.io.InputStreamReader; > import java.net.Socket; > > /** > * @author Fabio Zadrozny > */ > public class PythonShell { > > public Process p; > > public BufferedReader in; > > public BufferedReader eIn; > > BufferedOutputStream stream ; > > public PythonShell() throws IOException { > startIt(); > } > > /** > * @throws IOException > */ > public void startIt() throws IOException { > > if (p != null){ > p.destroy(); > } > > p = Runtime.getRuntime().exec("python"); > > in = new BufferedReader(new InputStreamReader(p.getInputStream())); > > > eIn = new BufferedReader(new InputStreamReader(p > .getErrorStream())); > > stream = new BufferedOutputStream(p.getOutputStream()); > } > > > public void printStdOutput() throws IOException{ > String str = ""; > while(true){ > //it blocks here. > while ((str = in.readLine()) != null) { > System.out.println("output: " + str); > } > } > } > public void printErrorOutput() throws IOException{ > String str = ""; > while(true){ > while ((str = eIn.readLine()) != null) { > System.out.println("error output: " + str); > } > } > } > > public static void main(String[] args) throws IOException, InterruptedException { > final PythonShell s = new PythonShell(); > > new Thread(){ > public void run(){ > try { > //print the output in this Thread > s.printStdOutput(); > s.printErrorOutput(); > } catch (Exception e) { > e.printStackTrace(); > } > } > }.start(); > > for(int i=0;i<2;i++){ > String str = "print 'aaaaaa'\n"; > s.stream.write(str.getBytes()); > s.stream.flush(); > } > > > /* s.stream.close(); */ // if I uncomment this line it executes the code in python, > // otherwise it doesn't. > > for(int i=0;i<2;i++){ > String str = "print 'aaaaaa'\n"; > s.stream.write(str.getBytes()); > s.stream.flush(); > } > > } > > } |
From: Fabio Z. <fa...@in...> - 2004-08-16 20:55:18
|
Even with the -u switch I couldn't get it to work... Anyway, I've done some improvements on the rest... Now, when you lauch the process you don't write and read a file anymore .... That's a 60% increase in the speed, but it still can get kind of slow sometimes.... []s Fabio Zadrozny ------------------------------------------------------ Software Developer ESSS - Engineering Simulation and Scientific Software www.esss.com.br -----Original Message----- From: pyd...@li... [mailto:pyd...@li...] On Behalf Of Aleks Totic Sent: segunda-feira, 16 de agosto de 2004 17:01 To: pyd...@li... Subject: Re: [Pydev-code] Process spawn doubt You need the '-u' switch when launching python. I've chatted with Dana about doing this. I've attached an email that has some good pointers, about what I did for the debugger. Aleks Fabio Zadrozny wrote: > Hi all, > > I'm trying to figure out how to do the code completion usable (in my > machine it is very annoying having to wait for the completion, so, I'm > trying to remove the places that I think really let it slow: creating > a file for the process to get and spawning a Python process each time). > > In order to do it, I should spawn a process and then communicate with > it to get the info I want. It should be easy, but I'm having the > following > problem: when I spawn the process, I can write to its outputstream > without any problem, but it only responds once I close the > outputstream. The code below explains it better (I think....) > > Check the comments in main().... > > I'm also putting a file attached with the code, if someone wants to > know all I'm doing... > > Aleks, I tried to use what you've done in the debug, but it seemed to > me that it adds a lot of overhead to what I want to do, so, it would > (I think) become unusable, but maybe you can explain the concepts you > used so that I can try to do it in a lightweight manner.... > > > /** > * @throws IOException > */ > public void startIt() throws IOException { > > if (p != null){ > p.destroy(); > } > > p = Runtime.getRuntime().exec("python"); //get the process > > //get outputs / inputs > in = new BufferedReader(new InputStreamReader(p.getInputStream())); > eIn = new BufferedReader(new InputStreamReader(p.getErrorStream())); > stream = new BufferedOutputStream(p.getOutputStream()); > } > > > > public static void main(String[] args) throws IOException, > InterruptedException { > final PythonShell s = new PythonShell(); > > new Thread(){ > public void run(){ > try { > //print the output in this Thread > s.printStdOutput(); > s.printErrorOutput(); > } catch (Exception e) { > e.printStackTrace(); > } > } > }.start(); > > for(int i=0;i<2;i++){ > String str = "print 'aaaaaa'\n"; > s.stream.write(str.getBytes()); > s.stream.flush(); > } > > > /* s.stream.close(); */ // if I uncomment this line it > executes the code in python, > // otherwise it > doesn't. > // The bad thing is: > if I do close it, I can't > // write to it > anymore and the code below will crash. > // and I have to go > and create a new process. > > for(int i=0;i<2;i++){ > String str = "print 'aaaaaa'\n"; > s.stream.write(str.getBytes()); > s.stream.flush(); > } > > } > > > []s > > Fabio Zadrozny > ------------------------------------------------------ > Software Developer > ESSS - Engineering Simulation and Scientific Software www.esss.com.br > > > -----Original Message----- > From: pyd...@li... > [mailto:pyd...@li...] On Behalf Of Aleks > Totic > Sent: sexta-feira, 13 de agosto de 2004 17:47 > To: pyd...@li... > Subject: Re: [Pydev-code] OsCon Presentation on PyDev > > Nice presentation at OsCon. I've created a press section on the web > site with these references. > > Aleks > > Dana Moore wrote: > >>Fabio and Aleks, >>Just wanted to mention that there is a preso at: >> >>http://conferences.oreillynet.com/presentations/os2004/moore_python.pd >>f >> >>that gives some of the highlights of the current release >> >>Also, you were probabaly aware of the article at: >>http://www-106.ibm.com/developerworks/library/os-ecant/?ca=drs-tp2604 >>that presents details of the current release at a nice level as well > > > > > ------------------------------------------------------- > SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media > 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save > 50% off Retail on Ink & Toner - Free Shipping and Free Gift. > http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 > _______________________________________________ > Pydev-code mailing list > Pyd...@li... > https://lists.sourceforge.net/lists/listinfo/pydev-code > > > ---------------------------------------------------------------------- > -- > > /* > * Created on Aug 16, 2004 > * > * @author Fabio Zadrozny > */ > package org.python.pydev.editor.codecompletion; > > import java.io.BufferedOutputStream; > import java.io.BufferedReader; > import java.io.IOException; > import java.io.InputStreamReader; > import java.net.Socket; > > /** > * @author Fabio Zadrozny > */ > public class PythonShell { > > public Process p; > > public BufferedReader in; > > public BufferedReader eIn; > > BufferedOutputStream stream ; > > public PythonShell() throws IOException { > startIt(); > } > > /** > * @throws IOException > */ > public void startIt() throws IOException { > > if (p != null){ > p.destroy(); > } > > p = Runtime.getRuntime().exec("python"); > > in = new BufferedReader(new > InputStreamReader(p.getInputStream())); > > > eIn = new BufferedReader(new InputStreamReader(p > .getErrorStream())); > > stream = new BufferedOutputStream(p.getOutputStream()); > } > > > public void printStdOutput() throws IOException{ > String str = ""; > while(true){ > //it blocks here. > while ((str = in.readLine()) != null) { > System.out.println("output: " + str); > } > } > } > public void printErrorOutput() throws IOException{ > String str = ""; > while(true){ > while ((str = eIn.readLine()) != null) { > System.out.println("error output: " + str); > } > } > } > > public static void main(String[] args) throws IOException, InterruptedException { > final PythonShell s = new PythonShell(); > > new Thread(){ > public void run(){ > try { > //print the output in this Thread > s.printStdOutput(); > s.printErrorOutput(); > } catch (Exception e) { > e.printStackTrace(); > } > } > }.start(); > > for(int i=0;i<2;i++){ > String str = "print 'aaaaaa'\n"; > s.stream.write(str.getBytes()); > s.stream.flush(); > } > > > /* s.stream.close(); */ // if I uncomment this line it executes the code in python, > // otherwise it doesn't. > > for(int i=0;i<2;i++){ > String str = "print 'aaaaaa'\n"; > s.stream.write(str.getBytes()); > s.stream.flush(); > } > > } > > } |
From: Dana M. <dan...@ya...> - 2004-08-16 20:59:11
|
Fabio, are you planning to incorporate this and check it in, or do you want me to work with Aleks suggestions and yours to improve the operation? -Dana --- Fabio Zadrozny <fa...@in...> wrote: > Even with the -u switch I couldn't get it to work... > > Anyway, I've done some improvements on the rest... Now, when you > lauch the > process you don't write and read a file anymore .... That's a 60% > increase > in the speed, but it still can get kind of slow sometimes.... > > []s > > Fabio Zadrozny > ------------------------------------------------------ > Software Developer > ESSS - Engineering Simulation and Scientific Software > www.esss.com.br > > > -----Original Message----- > From: pyd...@li... > [mailto:pyd...@li...] On Behalf Of Aleks > Totic > Sent: segunda-feira, 16 de agosto de 2004 17:01 > To: pyd...@li... > Subject: Re: [Pydev-code] Process spawn doubt > > You need the '-u' switch when launching python. > > I've chatted with Dana about doing this. I've attached an email that > has > some good pointers, about what I did for the debugger. > > Aleks > > Fabio Zadrozny wrote: > > Hi all, > > > > I'm trying to figure out how to do the code completion usable (in > my > > machine it is very annoying having to wait for the completion, so, > I'm > > trying to remove the places that I think really let it slow: > creating > > a file for the process to get and spawning a Python process each > time). > > > > In order to do it, I should spawn a process and then communicate > with > > it to get the info I want. It should be easy, but I'm having the > > following > > problem: when I spawn the process, I can write to its outputstream > > without any problem, but it only responds once I close the > > outputstream. The code below explains it better (I think....) > > > > Check the comments in main().... > > > > I'm also putting a file attached with the code, if someone wants to > > > know all I'm doing... > > > > Aleks, I tried to use what you've done in the debug, but it seemed > to > > me that it adds a lot of overhead to what I want to do, so, it > would > > (I think) become unusable, but maybe you can explain the concepts > you > > used so that I can try to do it in a lightweight manner.... > > > > > > /** > > * @throws IOException > > */ > > public void startIt() throws IOException { > > > > if (p != null){ > > p.destroy(); > > } > > > > p = Runtime.getRuntime().exec("python"); //get the process > > > > //get outputs / inputs > > in = new BufferedReader(new > InputStreamReader(p.getInputStream())); > > eIn = new BufferedReader(new > InputStreamReader(p.getErrorStream())); > > stream = new BufferedOutputStream(p.getOutputStream()); > > } > > > > > > > > public static void main(String[] args) throws IOException, > > InterruptedException { > > final PythonShell s = new PythonShell(); > > > > new Thread(){ > > public void run(){ > > try { > > //print the output in this Thread > > s.printStdOutput(); > > s.printErrorOutput(); > > } catch (Exception e) { > > e.printStackTrace(); > > } > > } > > }.start(); > > > > for(int i=0;i<2;i++){ > > String str = "print 'aaaaaa'\n"; > > s.stream.write(str.getBytes()); > > s.stream.flush(); > > } > > > > > > /* s.stream.close(); */ // if I uncomment this line it > > executes the code in python, > > // otherwise it > > doesn't. > > // The bad thing is: > > if I do close it, I can't > > // write to it > > anymore and the code below will crash. > > // and I have to go > > and create a new process. > > > > for(int i=0;i<2;i++){ > > String str = "print 'aaaaaa'\n"; > > s.stream.write(str.getBytes()); > > s.stream.flush(); > > } > > > > } > > > > > > []s > > > > Fabio Zadrozny > > ------------------------------------------------------ > > Software Developer > > ESSS - Engineering Simulation and Scientific Software > www.esss.com.br > > > > > > -----Original Message----- > > From: pyd...@li... > > [mailto:pyd...@li...] On Behalf Of Aleks > > Totic > > Sent: sexta-feira, 13 de agosto de 2004 17:47 > > To: pyd...@li... > > Subject: Re: [Pydev-code] OsCon Presentation on PyDev > > > > Nice presentation at OsCon. I've created a press section on the web > > > site with these references. > > > > Aleks > > > > Dana Moore wrote: > > > >>Fabio and Aleks, > >>Just wanted to mention that there is a preso at: > >> > >>http://conferences.oreillynet.com/presentations/os2004/moore_python.pd > >>f > >> > >>that gives some of the highlights of the current release > >> > >>Also, you were probabaly aware of the article at: > >>http://www-106.ibm.com/developerworks/library/os-ecant/?ca=drs-tp2604 > >>that presents details of the current release at a nice level as > well > > > > > > > > > > ------------------------------------------------------- > > SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank > Media > > 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 > Save > > 50% off Retail on Ink & Toner - Free Shipping and Free Gift. > > http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 > > _______________________________________________ > > Pydev-code mailing list > > Pyd...@li... > > https://lists.sourceforge.net/lists/listinfo/pydev-code > > > > > > > ---------------------------------------------------------------------- > > -- > > > > /* > > * Created on Aug 16, 2004 > > * > > * @author Fabio Zadrozny > > */ > > package org.python.pydev.editor.codecompletion; > > > > import java.io.BufferedOutputStream; > > import java.io.BufferedReader; > > import java.io.IOException; > > import java.io.InputStreamReader; > === message truncated === ===== _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ _/ Dana Moore _/ BBN Technologies LLC _/ M: 240.350.4196 _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ __________________________________ Do you Yahoo!? Y! Messenger - Communicate in real time. Download now. http://messenger.yahoo.com |
From: Fabio Z. <fa...@in...> - 2004-08-16 21:21:50
|
Dana, I've already checked it in (... So, if you want to implement some kind of spawn factory that works in a thread and assures you always have some spawn or something, that's probably as fast as we can get on our enviroment, but the worst (at least that's what I think) was having to read / write a file everytime... Actually, in my production enviroment, code completion is not really useful (only for some of the imports I do it works without problems), so, in my machine, I disabled the autocompletion on '.', because it almost never brought me anything... :-( I was thinking there could be an option to do this. (I was almost considering just passing the imports to the code completion...) Anyway, I use a plugin to do text based completion and the templates feature really helps me a lot too... It's not a replacement, but at least I'm happier working with our plugin :-) []s Fabio Zadrozny ------------------------------------------------------ Software Developer ESSS - Engineering Simulation and Scientific Software www.esss.com.br -----Original Message----- From: pyd...@li... [mailto:pyd...@li...] On Behalf Of Dana Moore Sent: segunda-feira, 16 de agosto de 2004 17:58 To: pyd...@li... Subject: RE: [Pydev-code] Process spawn doubt Fabio, are you planning to incorporate this and check it in, or do you want me to work with Aleks suggestions and yours to improve the operation? -Dana --- Fabio Zadrozny <fa...@in...> wrote: > Even with the -u switch I couldn't get it to work... > > Anyway, I've done some improvements on the rest... Now, when you lauch > the process you don't write and read a file anymore .... That's a 60% > increase in the speed, but it still can get kind of slow sometimes.... > > []s > > Fabio Zadrozny > ------------------------------------------------------ > Software Developer > ESSS - Engineering Simulation and Scientific Software www.esss.com.br > > > -----Original Message----- > From: pyd...@li... > [mailto:pyd...@li...] On Behalf Of Aleks > Totic > Sent: segunda-feira, 16 de agosto de 2004 17:01 > To: pyd...@li... > Subject: Re: [Pydev-code] Process spawn doubt > > You need the '-u' switch when launching python. > > I've chatted with Dana about doing this. I've attached an email that > has some good pointers, about what I did for the debugger. > > Aleks > > Fabio Zadrozny wrote: > > Hi all, > > > > I'm trying to figure out how to do the code completion usable (in > my > > machine it is very annoying having to wait for the completion, so, > I'm > > trying to remove the places that I think really let it slow: > creating > > a file for the process to get and spawning a Python process each > time). > > > > In order to do it, I should spawn a process and then communicate > with > > it to get the info I want. It should be easy, but I'm having the > > following > > problem: when I spawn the process, I can write to its outputstream > > without any problem, but it only responds once I close the > > outputstream. The code below explains it better (I think....) > > > > Check the comments in main().... > > > > I'm also putting a file attached with the code, if someone wants to > > > know all I'm doing... > > > > Aleks, I tried to use what you've done in the debug, but it seemed > to > > me that it adds a lot of overhead to what I want to do, so, it > would > > (I think) become unusable, but maybe you can explain the concepts > you > > used so that I can try to do it in a lightweight manner.... > > > > > > /** > > * @throws IOException > > */ > > public void startIt() throws IOException { > > > > if (p != null){ > > p.destroy(); > > } > > > > p = Runtime.getRuntime().exec("python"); //get the process > > > > //get outputs / inputs > > in = new BufferedReader(new > InputStreamReader(p.getInputStream())); > > eIn = new BufferedReader(new > InputStreamReader(p.getErrorStream())); > > stream = new BufferedOutputStream(p.getOutputStream()); > > } > > > > > > > > public static void main(String[] args) throws IOException, > > InterruptedException { > > final PythonShell s = new PythonShell(); > > > > new Thread(){ > > public void run(){ > > try { > > //print the output in this Thread > > s.printStdOutput(); > > s.printErrorOutput(); > > } catch (Exception e) { > > e.printStackTrace(); > > } > > } > > }.start(); > > > > for(int i=0;i<2;i++){ > > String str = "print 'aaaaaa'\n"; > > s.stream.write(str.getBytes()); > > s.stream.flush(); > > } > > > > > > /* s.stream.close(); */ // if I uncomment this line it > > executes the code in python, > > // otherwise it > > doesn't. > > // The bad thing is: > > if I do close it, I can't > > // write to it > > anymore and the code below will crash. > > // and I have to go > > and create a new process. > > > > for(int i=0;i<2;i++){ > > String str = "print 'aaaaaa'\n"; > > s.stream.write(str.getBytes()); > > s.stream.flush(); > > } > > > > } > > > > > > []s > > > > Fabio Zadrozny > > ------------------------------------------------------ > > Software Developer > > ESSS - Engineering Simulation and Scientific Software > www.esss.com.br > > > > > > -----Original Message----- > > From: pyd...@li... > > [mailto:pyd...@li...] On Behalf Of Aleks > > Totic > > Sent: sexta-feira, 13 de agosto de 2004 17:47 > > To: pyd...@li... > > Subject: Re: [Pydev-code] OsCon Presentation on PyDev > > > > Nice presentation at OsCon. I've created a press section on the web > > > site with these references. > > > > Aleks > > > > Dana Moore wrote: > > > >>Fabio and Aleks, > >>Just wanted to mention that there is a preso at: > >> > >>http://conferences.oreillynet.com/presentations/os2004/moore_python.pd > >>f > >> > >>that gives some of the highlights of the current release > >> > >>Also, you were probabaly aware of the article at: > >>http://www-106.ibm.com/developerworks/library/os-ecant/?ca=drs-tp2604 > >>that presents details of the current release at a nice level as > well > > > > > > > > > > ------------------------------------------------------- > > SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank > Media > > 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 > Save > > 50% off Retail on Ink & Toner - Free Shipping and Free Gift. > > http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 > > _______________________________________________ > > Pydev-code mailing list > > Pyd...@li... > > https://lists.sourceforge.net/lists/listinfo/pydev-code > > > > > > > ---------------------------------------------------------------------- > > -- > > > > /* > > * Created on Aug 16, 2004 > > * > > * @author Fabio Zadrozny > > */ > > package org.python.pydev.editor.codecompletion; > > > > import java.io.BufferedOutputStream; import java.io.BufferedReader; > > import java.io.IOException; import java.io.InputStreamReader; > === message truncated === ===== _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ _/ Dana Moore _/ BBN Technologies LLC _/ M: 240.350.4196 _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ __________________________________ Do you Yahoo!? Y! Messenger - Communicate in real time. Download now. http://messenger.yahoo.com ------------------------------------------------------- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 _______________________________________________ Pydev-code mailing list Pyd...@li... https://lists.sourceforge.net/lists/listinfo/pydev-code |
From: Aleks T. <a...@to...> - 2004-08-10 00:36:55
|
Neat. I've never used templates before. How do I activate them in in the editor? Aleks Fabio Zadrozny wrote: > Hi All, > > I've just added the templates preferences pages and the templates support to > our plugin. > > If anyone wants to add more templates to the default templates, that would > be a great idea... |
From: Fabio Z. <fa...@in...> - 2004-08-10 11:09:45
|
Templates works in the same manner that autocompletion does, so, just Ctrl+Space and it should show the templates you defined in the templates page (on the pydev preferences, now, there should be a templates page, were you can add/edit/remove any template). []s Fabio Zadrozny ------------------------------------------------------ Software Developer ESSS - Engineering Simulation and Scientific Software www.esss.com.br -----Original Message----- From: pyd...@li... [mailto:pyd...@li...] On Behalf Of Aleks Totic Sent: segunda-feira, 9 de agosto de 2004 21:41 To: pyd...@li... Subject: Re: [Pydev-code] Templates Neat. I've never used templates before. How do I activate them in in the editor? Aleks Fabio Zadrozny wrote: > Hi All, > > I've just added the templates preferences pages and the templates > support to our plugin. > > If anyone wants to add more templates to the default templates, that > would be a great idea... ------------------------------------------------------- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 _______________________________________________ Pydev-code mailing list Pyd...@li... https://lists.sourceforge.net/lists/listinfo/pydev-code |
From: Fabio Z. <fa...@in...> - 2004-08-10 11:27:30
|
Well, I just checked it and it's not working (I had used the same = completion processor class Dana used, so, it is not working because templates were removed from the class... I will correct it and check it in...) []s Fabio Zadrozny ------------------------------------------------------ Software Developer ESSS - Engineering Simulation and Scientific Software www.esss.com.br -----Original Message----- From: pyd...@li... [mailto:pyd...@li...] On Behalf Of Fabio = Zadrozny Sent: ter=E7a-feira, 10 de agosto de 2004 08:14 To: pyd...@li... Subject: RE: [Pydev-code] Templates Templates works in the same manner that autocompletion does, so, just Ctrl+Space and it should show the templates you defined in the templates page (on the pydev preferences, now, there should be a templates page, = were you can add/edit/remove any template). []s Fabio Zadrozny ------------------------------------------------------ Software Developer ESSS - Engineering Simulation and Scientific Software www.esss.com.br -----Original Message----- From: pyd...@li... [mailto:pyd...@li...] On Behalf Of Aleks Totic Sent: segunda-feira, 9 de agosto de 2004 21:41 To: pyd...@li... Subject: Re: [Pydev-code] Templates Neat. I've never used templates before. How do I activate them in in the editor? Aleks Fabio Zadrozny wrote: > Hi All, >=20 > I've just added the templates preferences pages and the templates=20 > support to our plugin. >=20 > If anyone wants to add more templates to the default templates, that=20 > would be a great idea... ------------------------------------------------------- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media = 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 _______________________________________________ Pydev-code mailing list Pyd...@li... https://lists.sourceforge.net/lists/listinfo/pydev-code ------------------------------------------------------- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media = 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 _______________________________________________ Pydev-code mailing list Pyd...@li... https://lists.sourceforge.net/lists/listinfo/pydev-code |
From: Fabio Z. <fa...@in...> - 2004-08-10 11:43:55
|
Ok, now it should be working. Templates is what Dana said about something like user typing 'iff' Ctrl+space and it goes ... if a: pass else: pass The only thing not working right now is that it doesn't give the user indentation when doing it... That can be quite anoying sometimes, but I don't really have time to do it right now... (want to give it a try = Dana?) []s Fabio Zadrozny ------------------------------------------------------ Software Developer ESSS - Engineering Simulation and Scientific Software www.esss.com.br -----Original Message----- From: pyd...@li... [mailto:pyd...@li...] On Behalf Of Fabio = Zadrozny Sent: ter=E7a-feira, 10 de agosto de 2004 08:32 To: pyd...@li... Subject: RE: [Pydev-code] Templates Well, I just checked it and it's not working (I had used the same = completion processor class Dana used, so, it is not working because templates were removed from the class... I will correct it and check it in...) []s Fabio Zadrozny ------------------------------------------------------ Software Developer ESSS - Engineering Simulation and Scientific Software www.esss.com.br -----Original Message----- From: pyd...@li... [mailto:pyd...@li...] On Behalf Of Fabio = Zadrozny Sent: ter=E7a-feira, 10 de agosto de 2004 08:14 To: pyd...@li... Subject: RE: [Pydev-code] Templates Templates works in the same manner that autocompletion does, so, just Ctrl+Space and it should show the templates you defined in the templates page (on the pydev preferences, now, there should be a templates page, = were you can add/edit/remove any template). []s Fabio Zadrozny ------------------------------------------------------ Software Developer ESSS - Engineering Simulation and Scientific Software www.esss.com.br -----Original Message----- From: pyd...@li... [mailto:pyd...@li...] On Behalf Of Aleks Totic Sent: segunda-feira, 9 de agosto de 2004 21:41 To: pyd...@li... Subject: Re: [Pydev-code] Templates Neat. I've never used templates before. How do I activate them in in the editor? Aleks Fabio Zadrozny wrote: > Hi All, >=20 > I've just added the templates preferences pages and the templates=20 > support to our plugin. >=20 > If anyone wants to add more templates to the default templates, that=20 > would be a great idea... ------------------------------------------------------- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media = 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 _______________________________________________ Pydev-code mailing list Pyd...@li... https://lists.sourceforge.net/lists/listinfo/pydev-code ------------------------------------------------------- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media = 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 _______________________________________________ Pydev-code mailing list Pyd...@li... https://lists.sourceforge.net/lists/listinfo/pydev-code ------------------------------------------------------- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media = 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 _______________________________________________ Pydev-code mailing list Pyd...@li... https://lists.sourceforge.net/lists/listinfo/pydev-code |
From: Dana M. <dan...@ya...> - 2004-08-10 13:33:00
|
Fabio, I will look at this. Thanks (see my other email). Congratualtions for being out in front of us and providing a first cut at this capability. It's something I love having. -Dana --- Fabio Zadrozny <fa...@in...> wrote: > Ok, now it should be working. > > Templates is what Dana said about something like user typing 'iff' > Ctrl+space and it goes ... > > if a: > pass > else: > pass > > The only thing not working right now is that it doesn't give the user > indentation when doing it... That can be quite anoying sometimes, but > I > don't really have time to do it right now... (want to give it a try > Dana?) > > []s > > Fabio Zadrozny > ------------------------------------------------------ > Software Developer > ESSS - Engineering Simulation and Scientific Software > www.esss.com.br > > > -----Original Message----- > From: pyd...@li... > [mailto:pyd...@li...] On Behalf Of Fabio > Zadrozny > Sent: terça-feira, 10 de agosto de 2004 08:32 > To: pyd...@li... > Subject: RE: [Pydev-code] Templates > > Well, I just checked it and it's not working (I had used the same > completion > processor class Dana used, so, it is not working because templates > were > removed from the class... I will correct it and check it in...) > > []s > > Fabio Zadrozny > ------------------------------------------------------ > Software Developer > ESSS - Engineering Simulation and Scientific Software www.esss.com.br > > > -----Original Message----- > From: pyd...@li... > [mailto:pyd...@li...] On Behalf Of Fabio > Zadrozny > Sent: terça-feira, 10 de agosto de 2004 08:14 > To: pyd...@li... > Subject: RE: [Pydev-code] Templates > > Templates works in the same manner that autocompletion does, so, just > Ctrl+Space and it should show the templates you defined in the > templates > page (on the pydev preferences, now, there should be a templates > page, were > you can add/edit/remove any template). > > []s > > Fabio Zadrozny > ------------------------------------------------------ > Software Developer > ESSS - Engineering Simulation and Scientific Software www.esss.com.br > > > -----Original Message----- > From: pyd...@li... > [mailto:pyd...@li...] On Behalf Of Aleks > Totic > Sent: segunda-feira, 9 de agosto de 2004 21:41 > To: pyd...@li... > Subject: Re: [Pydev-code] Templates > > Neat. I've never used templates before. How do I activate them in in > the > editor? > > Aleks > > Fabio Zadrozny wrote: > > > Hi All, > > > > I've just added the templates preferences pages and the templates > > support to our plugin. > > > > If anyone wants to add more templates to the default templates, > that > > would be a great idea... > > > > ------------------------------------------------------- > SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank > Media 100pk > Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% > off > Retail on Ink & Toner - Free Shipping and Free Gift. > http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 > _______________________________________________ > Pydev-code mailing list > Pyd...@li... > https://lists.sourceforge.net/lists/listinfo/pydev-code > > > > ------------------------------------------------------- > SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank > Media 100pk > Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% > off > Retail on Ink & Toner - Free Shipping and Free Gift. > http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 > _______________________________________________ > Pydev-code mailing list > Pyd...@li... > https://lists.sourceforge.net/lists/listinfo/pydev-code > > > > ------------------------------------------------------- > SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank > Media 100pk > Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% > off > Retail on Ink & Toner - Free Shipping and Free Gift. > http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 > _______________________________________________ > Pydev-code mailing list > Pyd...@li... > https://lists.sourceforge.net/lists/listinfo/pydev-code > > > > ------------------------------------------------------- > SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank > Media > 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 > Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. > http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 > _______________________________________________ > Pydev-code mailing list > Pyd...@li... > https://lists.sourceforge.net/lists/listinfo/pydev-code > __________________________________ Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! http://promotions.yahoo.com/new_mail |
From: Dana M. <dan...@ya...> - 2004-08-10 14:40:09
|
Sorry if my check in removed that. I tried to be careful in diff/merging but maybe that swept away. I guess there's always a bit higher danger if two people are hacking the same module at the same time. My apologies is that's what happened. --- Fabio Zadrozny <fa...@in...> wrote: > Well, I just checked it and it's not working (I had used the same > completion > processor class Dana used, so, it is not working because templates > were > removed from the class... I will correct it and check it in...) > > []s > > Fabio Zadrozny > ------------------------------------------------------ > Software Developer > ESSS - Engineering Simulation and Scientific Software > www.esss.com.br > > > -----Original Message----- > From: pyd...@li... > [mailto:pyd...@li...] On Behalf Of Fabio > Zadrozny > Sent: terça-feira, 10 de agosto de 2004 08:14 > To: pyd...@li... > Subject: RE: [Pydev-code] Templates > > Templates works in the same manner that autocompletion does, so, just > Ctrl+Space and it should show the templates you defined in the > templates > page (on the pydev preferences, now, there should be a templates > page, were > you can add/edit/remove any template). > > []s > > Fabio Zadrozny > ------------------------------------------------------ > Software Developer > ESSS - Engineering Simulation and Scientific Software www.esss.com.br > > > -----Original Message----- > From: pyd...@li... > [mailto:pyd...@li...] On Behalf Of Aleks > Totic > Sent: segunda-feira, 9 de agosto de 2004 21:41 > To: pyd...@li... > Subject: Re: [Pydev-code] Templates > > Neat. I've never used templates before. How do I activate them in in > the > editor? > > Aleks > > Fabio Zadrozny wrote: > > > Hi All, > > > > I've just added the templates preferences pages and the templates > > support to our plugin. > > > > If anyone wants to add more templates to the default templates, > that > > would be a great idea... > > > > ------------------------------------------------------- > SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank > Media 100pk > Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% > off > Retail on Ink & Toner - Free Shipping and Free Gift. > http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 > _______________________________________________ > Pydev-code mailing list > Pyd...@li... > https://lists.sourceforge.net/lists/listinfo/pydev-code > > > > ------------------------------------------------------- > SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank > Media 100pk > Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% > off > Retail on Ink & Toner - Free Shipping and Free Gift. > http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 > _______________________________________________ > Pydev-code mailing list > Pyd...@li... > https://lists.sourceforge.net/lists/listinfo/pydev-code > > > > ------------------------------------------------------- > SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank > Media > 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 > Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. > http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 > _______________________________________________ > Pydev-code mailing list > Pyd...@li... > https://lists.sourceforge.net/lists/listinfo/pydev-code > ===== _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ _/ Dana Moore _/ _/ BBN Technologies LLC _/ _/ M: 240.350.4196 _/ _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - Send 10MB messages! http://promotions.yahoo.com/new_mail |
From: Fabio Z. <fa...@in...> - 2004-08-10 16:10:36
|
It's ok... It happens... Hey Dana, the autocompletion only works for '.' right? (I removed the = other from the code as I couldn=92t get them to work and it was annoying me = having to wait and having nothing shown). I also cached the results for code completion and made it work = partially... This means: If you have=20 Class Foo: def abbb(self): pass foo =3D Foo() foo.a <- shows abbb (it was only showing when it was in '.') And deleting a shows all functions available...and putting it again = shows only abbb. I has to cache the results because this could get really = slow. And congratulations...it's working very well... (I have some = observations on it, but I'll pass it to you later). []s Fabio Zadrozny ------------------------------------------------------ Software Developer ESSS - Engineering Simulation and Scientific Software www.esss.com.br -----Original Message----- From: pyd...@li... [mailto:pyd...@li...] On Behalf Of Dana Moore Sent: ter=E7a-feira, 10 de agosto de 2004 11:40 To: pyd...@li... Subject: RE: [Pydev-code] Templates Sorry if my check in removed that. I tried to be careful in diff/merging but maybe that swept away. I guess there's always a bit higher danger if two people are hacking the same module at the same time. My apologies is that's what happened. --- Fabio Zadrozny <fa...@in...> wrote: > Well, I just checked it and it's not working (I had used the same=20 > completion processor class Dana used, so, it is not working because=20 > templates were removed from the class... I will correct it and check=20 > it in...) >=20 > []s >=20 > Fabio Zadrozny > ------------------------------------------------------ > Software Developer > ESSS - Engineering Simulation and Scientific Software www.esss.com.br >=20 >=20 > -----Original Message----- > From: pyd...@li... > [mailto:pyd...@li...] On Behalf Of Fabio=20 > Zadrozny > Sent: terga-feira, 10 de agosto de 2004 08:14 > To: pyd...@li... > Subject: RE: [Pydev-code] Templates >=20 > Templates works in the same manner that autocompletion does, so, just > Ctrl+Space and it should show the templates you defined in the > templates > page (on the pydev preferences, now, there should be a templates page, = > were you can add/edit/remove any template). >=20 > []s >=20 > Fabio Zadrozny > ------------------------------------------------------ > Software Developer > ESSS - Engineering Simulation and Scientific Software www.esss.com.br >=20 >=20 > -----Original Message----- > From: pyd...@li... > [mailto:pyd...@li...] On Behalf Of Aleks=20 > Totic > Sent: segunda-feira, 9 de agosto de 2004 21:41 > To: pyd...@li... > Subject: Re: [Pydev-code] Templates >=20 > Neat. I've never used templates before. How do I activate them in in=20 > the editor? >=20 > Aleks >=20 > Fabio Zadrozny wrote: >=20 > > Hi All, > >=20 > > I've just added the templates preferences pages and the templates=20 > > support to our plugin. > >=20 > > If anyone wants to add more templates to the default templates, > that > > would be a great idea... >=20 >=20 >=20 > ------------------------------------------------------- > SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media = > 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save = > 50% off Retail on Ink & Toner - Free Shipping and Free Gift. > http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 > _______________________________________________ > Pydev-code mailing list > Pyd...@li... > https://lists.sourceforge.net/lists/listinfo/pydev-code >=20 >=20 >=20 > ------------------------------------------------------- > SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media = > 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save = > 50% off Retail on Ink & Toner - Free Shipping and Free Gift. > http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 > _______________________________________________ > Pydev-code mailing list > Pyd...@li... > https://lists.sourceforge.net/lists/listinfo/pydev-code >=20 >=20 >=20 > ------------------------------------------------------- > SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media = > 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save = > 50% off Retail on Ink & Toner - Free Shipping and Free Gift. > http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 > _______________________________________________ > Pydev-code mailing list > Pyd...@li... > https://lists.sourceforge.net/lists/listinfo/pydev-code >=20 =3D=3D=3D=3D=3D _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ _/ Dana Moore _/ _/ BBN Technologies LLC _/ _/ M: 240.350.4196 _/ _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ =09 __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - Send 10MB messages! http://promotions.yahoo.com/new_mail=20 ------------------------------------------------------- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media = 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 _______________________________________________ Pydev-code mailing list Pyd...@li... https://lists.sourceforge.net/lists/listinfo/pydev-code |
From: Dana M. <dan...@ya...> - 2004-08-10 16:41:31
|
--- Fabio Zadrozny <fa...@in...> wrote: > It's ok... It happens... > > Hey Dana, the autocompletion only works for '.' right? (I removed the > other > from the code as I couldnt get them to work and it was annoying me > having > to wait and having nothing shown). > That's weird. "(" works last night as well. so in your example iff I type "foo.", I get the '.' conpletions and if I further type "foo.abbb(" I will get ")" suggested as a completion. Perhaps a code regression between dawn and now :-) I will look at tonight after work and a guitar gig I have and check in a fix (but that definitely should work!) > I also cached the results for code completion and made it work > partially... > > This means: > > If you have > > > Class Foo: > > def abbb(self): > pass > > foo = Foo() > foo.a <- shows abbb (it was only showing when it was in '.') > And deleting a shows all functions available...and putting it again > shows > only abbb. I has to cache the results because this could get really > slow. > Ya, tht cache is a very smart idea and partially responds to the Aleks concern about the potential 'weight' of the solution. I/we should make that fully work. very nice. > And congratulations...it's working very well... (I have some > observations on > it, but I'll pass it to you later). > > []s > > Fabio Zadrozny > ------------------------------------------------------ > Software Developer > ESSS - Engineering Simulation and Scientific Software > www.esss.com.br > > > -----Original Message----- > From: pyd...@li... > [mailto:pyd...@li...] On Behalf Of Dana > Moore > Sent: terça-feira, 10 de agosto de 2004 11:40 > To: pyd...@li... > Subject: RE: [Pydev-code] Templates > > Sorry if my check in removed that. > I tried to be careful in diff/merging but maybe that swept away. > I guess there's always a bit higher danger if two people are hacking > the > same module at the same time. > My apologies is that's what happened. > > --- Fabio Zadrozny <fa...@in...> wrote: > > > Well, I just checked it and it's not working (I had used the same > > completion processor class Dana used, so, it is not working because > > > templates were removed from the class... I will correct it and > check > > it in...) > > > > []s > > > > Fabio Zadrozny > > ------------------------------------------------------ > > Software Developer > > ESSS - Engineering Simulation and Scientific Software > www.esss.com.br > > > > > > -----Original Message----- > > From: pyd...@li... > > [mailto:pyd...@li...] On Behalf Of Fabio > > Zadrozny > > Sent: terga-feira, 10 de agosto de 2004 08:14 > > To: pyd...@li... > > Subject: RE: [Pydev-code] Templates > > > > Templates works in the same manner that autocompletion does, so, > just > > Ctrl+Space and it should show the templates you defined in the > > templates > > page (on the pydev preferences, now, there should be a templates > page, > > were you can add/edit/remove any template). > > > > []s > > > > Fabio Zadrozny > > ------------------------------------------------------ > > Software Developer > > ESSS - Engineering Simulation and Scientific Software > www.esss.com.br > > > > > > -----Original Message----- > > From: pyd...@li... > > [mailto:pyd...@li...] On Behalf Of Aleks > > Totic > > Sent: segunda-feira, 9 de agosto de 2004 21:41 > > To: pyd...@li... > > Subject: Re: [Pydev-code] Templates > > > > Neat. I've never used templates before. How do I activate them in > in > > the editor? > > > > Aleks > > > > Fabio Zadrozny wrote: > > > > > Hi All, > > > > > > I've just added the templates preferences pages and the templates > > > > support to our plugin. > > > > > > If anyone wants to add more templates to the default templates, > > that > > > would be a great idea... > > > > > > > > ------------------------------------------------------- > > SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank > Media > > 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 > Save > > 50% off Retail on Ink & Toner - Free Shipping and Free Gift. > > http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 > > _______________________________________________ > > Pydev-code mailing list > > Pyd...@li... > > https://lists.sourceforge.net/lists/listinfo/pydev-code > > > > > > > > ------------------------------------------------------- > > SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank > Media > > 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 > Save > > 50% off Retail on Ink & Toner - Free Shipping and Free Gift. > > http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 > > _______________________________________________ > > Pydev-code mailing list > > Pyd...@li... > > https://lists.sourceforge.net/lists/listinfo/pydev-code > > > > > > > > ------------------------------------------------------- > > SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank > Media > > 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 > Save > > 50% off Retail on Ink & Toner - Free Shipping and Free Gift. > > http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 > > _______________________________________________ > > Pydev-code mailing list > > Pyd...@li... > > https://lists.sourceforge.net/lists/listinfo/pydev-code > > > > > ===== > _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ > _/ Dana Moore _/ > _/ BBN Technologies LLC _/ > _/ M: 240.350.4196 _/ > _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ > > > > __________________________________ > Do you Yahoo!? > New and Improved Yahoo! Mail - Send 10MB messages! > http://promotions.yahoo.com/new_mail > > > ------------------------------------------------------- > SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank > Media 100pk > Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% > off > Retail on Ink & Toner - Free Shipping and Free Gift. > http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 > _______________________________________________ > Pydev-code mailing list > Pyd...@li... > https://lists.sourceforge.net/lists/listinfo/pydev-code > > > > ------------------------------------------------------- > SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank > Media > === message truncated === ===== _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ _/ Dana Moore _/ _/ BBN Technologies LLC _/ _/ M: 240.350.4196 _/ _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage! http://promotions.yahoo.com/new_mail |
From: Dana M. <dan...@ya...> - 2004-08-10 13:31:35
|
templates rock! This is actually the thing I was going to try tackling next (I was calling them content assistants, which is the "correct" eclipse name for them, but you've already delivered them. I think it's the next great piece of the puzzle. Perhps what I should go off and do next is to fully develop a python "nature" and an associeted python "New Project" wizard. I think that the time to deliver that should be fairly short, since I know how to do it, ahving done a similar thing for our SWeDe project. I will also fix the "assume ther is a Python on-path somewhere assumption of the autocompletion stuff by grabbing the stated python interpreter preference from the debugger. If there is not one, then autocompletion will be turned off by default, just as Aleks wishes. As an aside, let me report that overall, I got a really enthusiastic response from the hundred or so people I showed it to at OsCon 2004 in Portland, OR. I had finished the autocompletion stuff but not checked it in so I showed that too. I did not show templates because I was out of sync with Fabio's delivery. Guido van Rossum attended the presentation and his reposnse was that this was really good looking stuff and ought to interest the corporate developer. A guy from a company which vends a similar product for roughly US$300, made some challenging remarks abuot what is missing from our work that is bundled in their proprietary product, and I thanked him kindly, suggesting that those "missing pieces" might be the genesis of new features for our open source effort. One guy asked whetehr we were going to incorporate gui building capabilities, and I said that I could not believe it's on Aleks' roadmap to do such a thing, but I would report the interest to the group. It's certainly not something that I personally would like to work on. Obviously the Eclipse people themselves are nt thinking about anything like that for their reference implementation of the Java Development Environment. Anyway, thanks for templates Fabio. They rock! --- Fabio Zadrozny <fa...@in...> wrote: > Templates works in the same manner that autocompletion does, so, just > Ctrl+Space and it should show the templates you defined in the > templates > page (on the pydev preferences, now, there should be a templates > page, were > you can add/edit/remove any template). > > []s > > Fabio Zadrozny > ------------------------------------------------------ > Software Developer > ESSS - Engineering Simulation and Scientific Software > www.esss.com.br > > > -----Original Message----- > From: pyd...@li... > [mailto:pyd...@li...] On Behalf Of Aleks > Totic > Sent: segunda-feira, 9 de agosto de 2004 21:41 > To: pyd...@li... > Subject: Re: [Pydev-code] Templates > > Neat. I've never used templates before. How do I activate them in in > the > editor? > > Aleks > > Fabio Zadrozny wrote: > > > Hi All, > > > > I've just added the templates preferences pages and the templates > > support to our plugin. > > > > If anyone wants to add more templates to the default templates, > that > > would be a great idea... > > > > ------------------------------------------------------- > SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank > Media 100pk > Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% > off > Retail on Ink & Toner - Free Shipping and Free Gift. > http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 > _______________________________________________ > Pydev-code mailing list > Pyd...@li... > https://lists.sourceforge.net/lists/listinfo/pydev-code > > > > ------------------------------------------------------- > SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank > Media > 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 > Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. > http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 > _______________________________________________ > Pydev-code mailing list > Pyd...@li... > https://lists.sourceforge.net/lists/listinfo/pydev-code > __________________________________ Do you Yahoo!? Take Yahoo! Mail with you! Get it on your mobile phone. http://mobile.yahoo.com/maildemo |