pydev-code Mailing List for PyDev for Eclipse (Page 45)
Brought to you by:
fabioz
You can subscribe to this list here.
2004 |
Jan
|
Feb
|
Mar
(14) |
Apr
(18) |
May
(12) |
Jun
(34) |
Jul
(31) |
Aug
(37) |
Sep
(22) |
Oct
(2) |
Nov
|
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2005 |
Jan
(1) |
Feb
(4) |
Mar
(9) |
Apr
(1) |
May
|
Jun
(2) |
Jul
(24) |
Aug
(3) |
Sep
(5) |
Oct
(3) |
Nov
(3) |
Dec
(5) |
2006 |
Jan
(5) |
Feb
(23) |
Mar
(5) |
Apr
(80) |
May
(26) |
Jun
(13) |
Jul
(13) |
Aug
(4) |
Sep
(31) |
Oct
(24) |
Nov
(6) |
Dec
(2) |
2007 |
Jan
(7) |
Feb
|
Mar
(26) |
Apr
(3) |
May
(8) |
Jun
(6) |
Jul
(11) |
Aug
(2) |
Sep
(4) |
Oct
|
Nov
(9) |
Dec
(3) |
2008 |
Jan
(7) |
Feb
(1) |
Mar
(6) |
Apr
(7) |
May
(9) |
Jun
(14) |
Jul
(9) |
Aug
(6) |
Sep
(10) |
Oct
(5) |
Nov
(8) |
Dec
(5) |
2009 |
Jan
(8) |
Feb
(10) |
Mar
(10) |
Apr
(1) |
May
(3) |
Jun
(5) |
Jul
(10) |
Aug
(3) |
Sep
(12) |
Oct
(6) |
Nov
(22) |
Dec
(12) |
2010 |
Jan
(10) |
Feb
(17) |
Mar
(5) |
Apr
(9) |
May
(8) |
Jun
(2) |
Jul
(4) |
Aug
(12) |
Sep
(1) |
Oct
(1) |
Nov
(8) |
Dec
|
2011 |
Jan
(14) |
Feb
(8) |
Mar
(3) |
Apr
(11) |
May
(6) |
Jun
(5) |
Jul
(10) |
Aug
(7) |
Sep
|
Oct
(4) |
Nov
(4) |
Dec
(8) |
2012 |
Jan
|
Feb
(8) |
Mar
(10) |
Apr
(5) |
May
(4) |
Jun
(10) |
Jul
|
Aug
(2) |
Sep
(2) |
Oct
(11) |
Nov
(1) |
Dec
|
2013 |
Jan
(1) |
Feb
(2) |
Mar
(11) |
Apr
(10) |
May
(7) |
Jun
(9) |
Jul
(13) |
Aug
(20) |
Sep
(4) |
Oct
(18) |
Nov
(5) |
Dec
(7) |
2014 |
Jan
(3) |
Feb
(5) |
Mar
(7) |
Apr
(5) |
May
(10) |
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(7) |
Oct
(1) |
Nov
(1) |
Dec
(1) |
2015 |
Jan
(1) |
Feb
(1) |
Mar
(8) |
Apr
(3) |
May
(1) |
Jun
(2) |
Jul
(1) |
Aug
(2) |
Sep
(1) |
Oct
(3) |
Nov
(5) |
Dec
(1) |
2016 |
Jan
(26) |
Feb
(10) |
Mar
(4) |
Apr
|
May
(4) |
Jun
(3) |
Jul
|
Aug
(1) |
Sep
|
Oct
(1) |
Nov
(4) |
Dec
(3) |
2017 |
Jan
(3) |
Feb
|
Mar
(9) |
Apr
(2) |
May
|
Jun
(1) |
Jul
|
Aug
(9) |
Sep
(1) |
Oct
|
Nov
(2) |
Dec
|
2018 |
Jan
|
Feb
(2) |
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
(4) |
Oct
(2) |
Nov
(1) |
Dec
(3) |
2019 |
Jan
(4) |
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
(4) |
Aug
|
Sep
|
Oct
(3) |
Nov
|
Dec
|
2020 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
(4) |
Jul
|
Aug
|
Sep
(2) |
Oct
|
Nov
|
Dec
(11) |
2021 |
Jan
(3) |
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2022 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
(3) |
Sep
|
Oct
|
Nov
|
Dec
|
2023 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
2024 |
Jan
|
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(3) |
Oct
|
Nov
|
Dec
|
From: Fabio Z. <fa...@in...> - 2004-08-26 19:13:03
|
Hi Grig, I think it is a great idea to integrate pyUnit into the plugin (I would really like it as I use pyUnit all the time...) So, how do you think this integration should be done? Which features would you want to have integrated? I think that you could work with Dana, as he is doing the new project wizard and python nature (I think that this features are all related)... []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 Grig Gheorghiu Sent: quinta-feira, 26 de agosto de 2004 15:56 To: pyd...@li... Subject: [Pydev-code] Integrating pyUnit in pydev Hi, all I emailed Aleks back and forth a couple of times on this topic and he pointed me to this list. This is my original message to Aleks: "Aleks, First of all, I want to thank you for your work on pydev. I've been using it very productively since I saw it mentioned in the IBM Devworks article on 'Python development with Eclipse and Ant'. I'm also very interested in unit testing, and I like a lot the integration of jUnit in Eclipse. I'm thinking it would be cool to integrate Python's pyUnit (which is actually part of the distribution) in Eclipse, maybe as part of pydev. I have no experience whatsoever in writing Eclipse plugins, but there's always a first time for everything. If you think this is a good idea, maybe we can collaborate in order to bring it to light." Any feedback from Fabio and the other developers is appreciated. Please let me know if this has already been done, or if it's of no interest to the group. Thanks, Grig ------------------------------------------------------- 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: Grig G. <gr...@gh...> - 2004-08-26 18:56:16
|
Hi, all I emailed Aleks back and forth a couple of times on this topic and he pointed me to this list. This is my original message to Aleks: "Aleks, First of all, I want to thank you for your work on pydev. I've been using it very productively since I saw it mentioned in the IBM Devworks article on 'Python development with Eclipse and Ant'. I'm also very interested in unit testing, and I like a lot the integration of jUnit in Eclipse. I'm thinking it would be cool to integrate Python's pyUnit (which is actually part of the distribution) in Eclipse, maybe as part of pydev. I have no experience whatsoever in writing Eclipse plugins, but there's always a first time for everything. If you think this is a good idea, maybe we can collaborate in order to bring it to light." Any feedback from Fabio and the other developers is appreciated. Please let me know if this has already been done, or if it's of no interest to the group. Thanks, Grig |
From: Dana M. <dan...@ya...> - 2004-08-25 18:29:29
|
I got pulled in severa ldifferent directiosn this past coule weeks, but I am working it, your preferences sounds excellent --- Fabio Zadrozny <fa...@in...> wrote: > Hi All, > > just added a preferences page for code completion - so that we can > enable/disable autoactivation / seconds to autoactivate and / choose > in > which characters to autoactivate... > > Hey Dana, how is the python project wizard / nature? > > []s > > Fabio Zadrozny > ------------------------------------------------------ > Software Developer > ESSS - Engineering Simulation and Scientific Software > www.esss.com.br > > > > > ------------------------------------------------------- > 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!? Win 1 of 4,000 free domain names from Yahoo! Enter now. http://promotions.yahoo.com/goldrush |
From: Fabio Z. <fa...@in...> - 2004-08-25 18:27:12
|
Hi All, just added a preferences page for code completion - so that we can enable/disable autoactivation / seconds to autoactivate and / choose in which characters to autoactivate... Hey Dana, how is the python project wizard / nature? []s Fabio Zadrozny ------------------------------------------------------ Software Developer ESSS - Engineering Simulation and Scientific Software www.esss.com.br |
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: 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 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: Aleks T. <a...@to...> - 2004-08-16 20:02:11
|
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 19:44:48
|
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-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: 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-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-11 19:19:25
|
--- Fabio Zadrozny <fa...@in...> wrote: > Dana, > > The code completion for ' and " and ( is not really a code > completion as > we are doing, I think it is implemented easier as a new keybinding, > so that > putting ' already closes it (and puts the mouse in the correct > position), as > for " and (. > Yes, I understand already. I did not mean to lump everything together under the concept of "code completion". I rather misstated that. I will implement the appropriate thing for apostrophe and double apostrophe. The case for open-parenthesis when related to a method _is_ code completion however. In the line shown below, we should offer the user assistance twice, once for the dot and once for the open-parenthesis: Class foo: def bar(self, value): True f = foo() # ~~~~~~~~~~ here we should offer two code suggestions: ~~~ #V V f.bar( Anyway, I understand you aprroach for apostrophe and double apostrophe. and I will add those. I am going to start to look at coding a specific Python 'nature' and an associated project wizard. One of the guys who codes Python for me is complaining about the lack of those things and the fact that he has to go to edit-actions for Run and Debug, so I guess we ought to create a nature. > I also think it is much faster this way... It is basically what I did > for > backspace, so that it grabs backspace and deletes a custom number of > characters, you would grab the ' keystroke and make it add '' > > If it is well implemented, doing it for 1 is the same as doing it for > all... > The worse part is putting that keybindings in the plugin.xml... Or > maybe you > don't even have to put it in the plugin.xml, just put them in > PyEdit.createActions... (editing xml sucks)... > > []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: quarta-feira, 11 de agosto de 2004 15:04 > To: pyd...@li... > Subject: [Pydev-code] Autocompletion - couple adds > > Fabio, > Very nice refactoring! > I just checked in a fresher version of: > o org.python.pydev\src\org\python\pydev\editorPyEditConfiguration > (new > revision: 1.17) > This simply shortens the autoactivation delay interval for zippier > performance > > o org\python\pydev\editor\codecompletion\{PyCodeCompletion, > PythonCompletionProcessor}.java > to reapply autoactivation on "(" > o org.python.pydev/plugin.xml > new revision: 1.32; > this adds a couple new (possibly useful) templates > > Something that just occurs to me is that we ought to also do some > other > useful 'completions' as well - for example, in the JDE, when you type > in the > single apostrophe character ('), a mathing one is emitted right > behind it; > when you type in the double apostrophe character (") , a mathing one > is > emitted right behind it; I will look to addingthat tonight. > Best, > > ===== > _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ > _/ 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 > > > ------------------------------------------------------- > 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-11 19:07:50
|
Dana, The code completion for ' and " and ( is not really a code completion as we are doing, I think it is implemented easier as a new keybinding, so that putting ' already closes it (and puts the mouse in the correct position), as for " and (. I also think it is much faster this way... It is basically what I did for backspace, so that it grabs backspace and deletes a custom number of characters, you would grab the ' keystroke and make it add '' If it is well implemented, doing it for 1 is the same as doing it for all... The worse part is putting that keybindings in the plugin.xml... Or maybe you don't even have to put it in the plugin.xml, just put them in PyEdit.createActions... (editing xml sucks)... []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: quarta-feira, 11 de agosto de 2004 15:04 To: pyd...@li... Subject: [Pydev-code] Autocompletion - couple adds Fabio, Very nice refactoring! I just checked in a fresher version of: o org.python.pydev\src\org\python\pydev\editorPyEditConfiguration (new revision: 1.17) This simply shortens the autoactivation delay interval for zippier performance o org\python\pydev\editor\codecompletion\{PyCodeCompletion, PythonCompletionProcessor}.java to reapply autoactivation on "(" o org.python.pydev/plugin.xml new revision: 1.32; this adds a couple new (possibly useful) templates Something that just occurs to me is that we ought to also do some other useful 'completions' as well - for example, in the JDE, when you type in the single apostrophe character ('), a mathing one is emitted right behind it; when you type in the double apostrophe character (") , a mathing one is emitted right behind it; I will look to addingthat tonight. Best, ===== _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ _/ 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 ------------------------------------------------------- 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-11 18:30:29
|
--- Fabio Zadrozny <fa...@es...> wrote: > Hi Dana, > > As I said previously, I have some issues on the current state of the > code > completion... > > First of all, I want to say that it works great for the imports (I > think you > already know why, but I will explain it here because I think that the > rest > of the list might want to know how things work... And maybe even go > and > correct it)... > > The way code completion is done is through an python Interactive > Interpreter. That means that it is basically a shell, and that we get > output > from it... The good thing is that imports in the top of the code > always have > instant evaluation on a shell, however, having a class requires some > really > rigorous indentation. What I mean is: > > I I have a class that's written: > class A: > def a(self): > pass > a = A() > > It won't be able to evaluate correctly in the interactive > interpreter, > because we need extra lines after the class, so, in the declaration > below it > will be correct (even that it appears that it is the same, in the > interactive interpreter, it is not because of the line above a = > A()). > > class A: > def a(self): > pass > > a = A() > > So, if we follow this approach, we have to give it the file really > correct > (for the interpreter), so that it can get code completions (it also > strange > that we're not able to get the values when defining self in a class, > but I > didn't really get into it... If you have any ideas, you could post it > to the > list...) > > E.g. > class C(object): > > def __init__(self): > self.a = 1 > self.b = 2 > > def foo(self): > self. <-- does not get me any code completion > Yes, you're absolutely right. I am sure that we gets lots of comments and/or bug reports saying "code completion does not work on my code." The Pyalamode interactive interpreter shell, on which I based code completion will actually report back a syntax error for code shown in your first example, and thus forces a person to write code that observes all the indent-dedent rules strictly The reason behind the strict coding rule is that we read in the entire buffer in CPython, up to the activation character and we eval each line separately. We actually throw a syntax exception in the external CPython interpreter on that particular code, but I swallow the output to sys.stdout that doesn't look like an autocompletion tip. > > Another thing is that writing a temporary file so that the > interpreter can > get it is not a good approach. The code at tipper.py has in the main: > > if __name__ == '__main__': > import sys,os > f = open (sys.argv[1]) > theDoc = f.read() > GenerateTip(theDoc) > > So, as we have the CPython process in Java anyway, we can do that > ourselves, > without having to write to a temporary file so that it can interpret > the > code we have. You could call the GenerateTip yourself with a string > with the > code. It could be much faster than writing to a temp file. > So, I will investigate doing that too. Your addition of a cache is very nice though and means we only pay a first time penalty right now. > Well, I think that's it, I know these may be tricky issues, and the > imports > code completion is already a major contribution (and as I said > before, it > works very well...) > > Ah, I also made some changes in the code completion and refactored > the > classes, so that the responsibilities were separated, and the code > completions could be gotten not only on '.', but also with a > qualifier... - > the version in cvs has a bug because it doesn't recalculate qlen - I > already > changed that in my machine, but I still couldn't commit that because > for > some reson, I cannot synchronize with sourcefoge... (I think it is > down...) > > Well, to complete.... nice work!! > Right, sourceforge was unavailable for a while. I had same problem > []s > > Fabio Zadrozny > ------------------------------------------------------ > Software Developer > ESSS - Engineering Simulation and Scientific Software www.esss.com.br > > > > ------------------------------------------------------- > 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 - 100MB free storage! http://promotions.yahoo.com/new_mail |
From: Dana M. <dan...@ya...> - 2004-08-11 18:04:24
|
Fabio, Very nice refactoring! I just checked in a fresher version of: o org.python.pydev\src\org\python\pydev\editorPyEditConfiguration (new revision: 1.17) This simply shortens the autoactivation delay interval for zippier performance o org\python\pydev\editor\codecompletion\{PyCodeCompletion, PythonCompletionProcessor}.java to reapply autoactivation on "(" o org.python.pydev/plugin.xml new revision: 1.32; this adds a couple new (possibly useful) templates Something that just occurs to me is that we ought to also do some other useful 'completions' as well - for example, in the JDE, when you type in the single apostrophe character ('), a mathing one is emitted right behind it; when you type in the double apostrophe character (") , a mathing one is emitted right behind it; I will look to addingthat tonight. Best, ===== _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ _/ 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: Fabio Z. <fa...@es...> - 2004-08-11 15:17:15
|
Hi Dana, As I said previously, I have some issues on the current state of the code completion... First of all, I want to say that it works great for the imports (I think you already know why, but I will explain it here because I think that the rest of the list might want to know how things work... And maybe even go and correct it)... The way code completion is done is through an python Interactive Interpreter. That means that it is basically a shell, and that we get output from it... The good thing is that imports in the top of the code always have instant evaluation on a shell, however, having a class requires some really rigorous indentation. What I mean is: I I have a class that's written: class A: def a(self): pass a = A() It won't be able to evaluate correctly in the interactive interpreter, because we need extra lines after the class, so, in the declaration below it will be correct (even that it appears that it is the same, in the interactive interpreter, it is not because of the line above a = A()). class A: def a(self): pass a = A() So, if we follow this approach, we have to give it the file really correct (for the interpreter), so that it can get code completions (it also strange that we're not able to get the values when defining self in a class, but I didn't really get into it... If you have any ideas, you could post it to the list...) E.g. class C(object): def __init__(self): self.a = 1 self.b = 2 def foo(self): self. <-- does not get me any code completion Another thing is that writing a temporary file so that the interpreter can get it is not a good approach. The code at tipper.py has in the main: if __name__ == '__main__': import sys,os f = open (sys.argv[1]) theDoc = f.read() GenerateTip(theDoc) So, as we have the CPython process in Java anyway, we can do that ourselves, without having to write to a temporary file so that it can interpret the code we have. You could call the GenerateTip yourself with a string with the code. It could be much faster than writing to a temp file. Well, I think that's it, I know these may be tricky issues, and the imports code completion is already a major contribution (and as I said before, it works very well...) Ah, I also made some changes in the code completion and refactored the classes, so that the responsibilities were separated, and the code completions could be gotten not only on '.', but also with a qualifier... - the version in cvs has a bug because it doesn't recalculate qlen - I already changed that in my machine, but I still couldn't commit that because for some reson, I cannot synchronize with sourcefoge... (I think it is down...) Well, to complete.... nice work!! []s Fabio Zadrozny ------------------------------------------------------ Software Developer ESSS - Engineering Simulation and Scientific Software www.esss.com.br |
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: 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 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: 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 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 |
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: 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: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 |