pydev-code Mailing List for PyDev for Eclipse (Page 47)
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-07-19 19:29:19
|
Ok, just corrected it... give it a check to see if you agre... The last thing to do is the preferences (I'm only finishing that tomorrow). The code that doesn't work is: class C: pass #not gotten If you collapse class C, the #not gotten token should still appear... Fabio -----Original Message----- From: pyd...@li... [mailto:pyd...@li...] On Behalf Of Fabio Zadrozny Sent: segunda-feira, 19 de julho de 2004 16:27 To: pyd...@li... Subject: RE: [Pydev-code] Code Folding Humm... that's a good observation... I've just Ctrl+c / Ctrl+v code from somewhere else ... (NameEqualsMainNode) probably because of that the commenting works in some cases and in others not... I'm going to check and correct it... I've also added keybindings for it (Ctrl+- and Ctrl+=)... just commited. Fabio -----Original Message----- From: pyd...@li... [mailto:pyd...@li...] On Behalf Of Aleks Totic Sent: segunda-feira, 19 de julho de 2004 15:56 To: pyd...@li... Subject: Re: [Pydev-code] Code Folding Neat. I've just checked it out, it works well. I've thought of adding code folding to 3.0 port. I have one small request: can you add a preference for enabling/disabling code folding to pydev editor. Java editor has one, and it is nice to have for consistency. What's the test case that fails for comments folding? I've tried folding a method whose last line was a comment, and it worked. A question about pass & Str tokens: How did you determine their end location: setEnd(new Location(astNode.beginLine-1, astNode.beginColumn + 22)); That 22 number must have some meaning? Aleks Fabio Zadrozny wrote: > Hi All, I'm adding some code-folding capabilities to our plugin... > > It's still not complete... but it should be until tomorrow... (I've already > commited most of it, so, it's already usable) > > There's only one bug I think I'll be unable to correct... > > If some class / method ends with a comment, I'm unable to get the correct > code folding for it (since our model doesn't get comments parsed) > > I've added 'pass' and Str > Tokens to our model, so that I could make it work correctly with them... > > If someone has some problem in code-folding or some idea on how to implement > it to work correctly with comments... I'm accepting suggestions... > > []s ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click _______________________________________________ Pydev-code mailing list Pyd...@li... https://lists.sourceforge.net/lists/listinfo/pydev-code ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click _______________________________________________ Pydev-code mailing list Pyd...@li... https://lists.sourceforge.net/lists/listinfo/pydev-code |
From: Fabio Z. <fa...@in...> - 2004-07-19 19:24:00
|
Humm... that's a good observation... I've just Ctrl+c / Ctrl+v code from somewhere else ... (NameEqualsMainNode) probably because of that the commenting works in some cases and in others not... I'm going to check and correct it... I've also added keybindings for it (Ctrl+- and Ctrl+=)... just commited. Fabio -----Original Message----- From: pyd...@li... [mailto:pyd...@li...] On Behalf Of Aleks Totic Sent: segunda-feira, 19 de julho de 2004 15:56 To: pyd...@li... Subject: Re: [Pydev-code] Code Folding Neat. I've just checked it out, it works well. I've thought of adding code folding to 3.0 port. I have one small request: can you add a preference for enabling/disabling code folding to pydev editor. Java editor has one, and it is nice to have for consistency. What's the test case that fails for comments folding? I've tried folding a method whose last line was a comment, and it worked. A question about pass & Str tokens: How did you determine their end location: setEnd(new Location(astNode.beginLine-1, astNode.beginColumn + 22)); That 22 number must have some meaning? Aleks Fabio Zadrozny wrote: > Hi All, I'm adding some code-folding capabilities to our plugin... > > It's still not complete... but it should be until tomorrow... (I've already > commited most of it, so, it's already usable) > > There's only one bug I think I'll be unable to correct... > > If some class / method ends with a comment, I'm unable to get the correct > code folding for it (since our model doesn't get comments parsed) > > I've added 'pass' and Str > Tokens to our model, so that I could make it work correctly with them... > > If someone has some problem in code-folding or some idea on how to implement > it to work correctly with comments... I'm accepting suggestions... > > []s ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click _______________________________________________ Pydev-code mailing list Pyd...@li... https://lists.sourceforge.net/lists/listinfo/pydev-code |
From: Aleks T. <a...@to...> - 2004-07-19 19:14:24
|
Neat. I've just checked it out, it works well. I've thought of adding code folding to 3.0 port. I have one small request: can you add a preference for enabling/disabling code folding to pydev editor. Java editor has one, and it is nice to have for consistency. What's the test case that fails for comments folding? I've tried folding a method whose last line was a comment, and it worked. A question about pass & Str tokens: How did you determine their end location: setEnd(new Location(astNode.beginLine-1, astNode.beginColumn + 22)); That 22 number must have some meaning? Aleks Fabio Zadrozny wrote: > Hi All, I'm adding some code-folding capabilities to our plugin... > > It's still not complete... but it should be until tomorrow... (I've already > commited most of it, so, it's already usable) > > There's only one bug I think I'll be unable to correct... > > If some class / method ends with a comment, I'm unable to get the correct > code folding for it (since our model doesn't get comments parsed) > > I've added 'pass' and Str > Tokens to our model, so that I could make it work correctly with them... > > If someone has some problem in code-folding or some idea on how to implement > it to work correctly with comments... I'm accepting suggestions... > > []s |
From: Fabio Z. <fa...@in...> - 2004-07-19 18:12:50
|
Hi All, I'm adding some code-folding capabilities to our plugin... It's still not complete... but it should be until tomorrow... (I've already commited most of it, so, it's already usable) There's only one bug I think I'll be unable to correct... If some class / method ends with a comment, I'm unable to get the correct code folding for it (since our model doesn't get comments parsed) I've added 'pass' and Str Tokens to our model, so that I could make it work correctly with them... If someone has some problem in code-folding or some idea on how to implement it to work correctly with comments... I'm accepting suggestions... []s Fabio |
From: Fabio Z. <fa...@es...> - 2004-07-19 18:06:04
|
Hi All, I'm adding some code-folding capabilities to our plugin... It's still not complete... but it should be until tomorrow... (I've already commited most of it, so, it's already usable) There's only one bug I think I'll be unable to correct... If some class / method ends with a comment, I'm unable to get the correct code folding for it (since our model doesn't get comments parsed) I've added 'pass' and Str Tokens to our model, so that I could make it work correctly with them... If someone has some problem in code-folding or some idea on how to implement it to work correctly with comments... I'm accepting suggestions... []s Fabio |
From: Dana M. <dan...@ya...> - 2004-07-16 20:14:08
|
I know I could hunt this down _eventually_ but to speed up the process, here's my Q: so what I want to do is to execute a .py module by the usual Java means: private java.util.Vector autoComplete( java.lang.String theCode, java.lang.String theActivationToken) { Vector theList = new Vector(); ... String line; System.out.println("autoComplete: About to start"); Process p = Runtime.getRuntime().exec("python Pysrc/foo.py"); BufferedReader input = new BufferedReader (new InputStreamReader(p.getInputStream())); while ((line = input.readLine()) != null) { theList.add(line); } ... return theList; } SO HERE's the question. I want to be able to bundle the py src code as a resource to be used by the plugin. and from autocomplete I want to be able to find the file relative to the module containing the autocomplete method. A similar model is the case where you get images to cache for the plugin from a relative folder in the package, or where you ANT a build.xml in a folder relative to the code. DOES anyone have a model of referencing relative resources from a plugin that I can mimic? The ParsedLabelProvider.java in org.python.pydev/src/pydev/outline doesn't _quite_ get us to where we need to be. Is there anything else I can look at (in our code), (in other code)? Like I said, I know how to do the image thing, but I can't remember (or see what other wiring is needed s/t the plugin finds the file to be exec'd. Thanks -Dana ===== _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ _/ 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-07-16 17:57:00
|
I think it is a good choice... The only thing that maybe should be in your mind is not to spawn a different thread on each request... launch one and reload the module each time... I think that's it... (otherwise, it may end up being too slow) :-) Fabio -----Original Message----- From: pyd...@li... [mailto:pyd...@li...] On Behalf Of Dana Moore Sent: sexta-feira, 16 de julho de 2004 13:22 To: pyd...@li... Subject: Re: [Pydev-code] Tabs / indentation very cool so, I finally got a few moments to load E3.0, look at the completion business having to be dropped, and I am rethinking the entire use of Jython thing. Here's what I am thinking... suppose we (instead of inplace Jython interpreting the instrospection code,) we launch an actual CPython interpreter from the plugin, and get its results back into the plugin this way: 1. We get the jython stuff out of the way 2. When we do a "run this python application" capcbility we are going to do an external invocation of a real CPython interpreter anyway. What do you guys think? (Assuming that this is easily done in a short time) -Dana --- Fabio Zadrozny <fa...@in...> wrote: > Hi All, > > I've just changed the indentation to get always the python > indentation > (being on comments or not). > > I've also added an action for backspace. It has not been enough > tested or > even consider all approaches, but it should be better than the > default > approach (that is, if you use spaces and not tabs) - I haven't even > tested > it with tabs. > > Fabio > > > > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic Workshop > FREE Java Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 today. > http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click > _______________________________________________ > 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!? Read only the mail you want - Yahoo! Mail SpamGuard. http://promotions.yahoo.com/new_mail ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click _______________________________________________ Pydev-code mailing list Pyd...@li... https://lists.sourceforge.net/lists/listinfo/pydev-code |
From: Dana M. <dan...@ya...> - 2004-07-16 17:49:30
|
re my previous note. Did a quickie test of launching an external CPython preocess for doing the autocompletion. Looks viable and seems to be fairly fast. I will go for it Aleks and get it checked in as soon as I can. -Dana ===== _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ _/ Dana Moore _/ _/ BBN Technologies LLC _/ _/ M: 240.350.4196 _/ _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ __________________________________ Do you Yahoo!? Yahoo! Mail is new and improved - Check it out! http://promotions.yahoo.com/new_mail |
From: Dana M. <dan...@ya...> - 2004-07-16 16:22:20
|
very cool so, I finally got a few moments to load E3.0, look at the completion business having to be dropped, and I am rethinking the entire use of Jython thing. Here's what I am thinking... suppose we (instead of inplace Jython interpreting the instrospection code,) we launch an actual CPython interpreter from the plugin, and get its results back into the plugin this way: 1. We get the jython stuff out of the way 2. When we do a "run this python application" capcbility we are going to do an external invocation of a real CPython interpreter anyway. What do you guys think? (Assuming that this is easily done in a short time) -Dana --- Fabio Zadrozny <fa...@in...> wrote: > Hi All, > > I've just changed the indentation to get always the python > indentation > (being on comments or not). > > I've also added an action for backspace. It has not been enough > tested or > even consider all approaches, but it should be better than the > default > approach (that is, if you use spaces and not tabs) - I haven't even > tested > it with tabs. > > Fabio > > > > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic Workshop > FREE Java Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 today. > http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click > _______________________________________________ > 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!? Read only the mail you want - Yahoo! Mail SpamGuard. http://promotions.yahoo.com/new_mail |
From: Fabio Z. <fa...@in...> - 2004-07-16 15:51:18
|
Hi All, I've just changed the indentation to get always the python indentation (being on comments or not). I've also added an action for backspace. It has not been enough tested or even consider all approaches, but it should be better than the default approach (that is, if you use spaces and not tabs) - I haven't even tested it with tabs. Fabio |
From: Aleks T. <a...@to...> - 2004-07-15 18:46:55
|
Hi Fabio, I am a tab fan, and thought that tab substitution was unnecessary in comments. That's because in comments I wanted to draw pretty ASCII diagrams. Silly reasoning. Your logic has changed my mind. Fix it, check it in. Someone else filed a bug report about this too. Aleks Fabio Zadrozny wrote: > Aleks, > > I was checking the code and found that in comments, we are able to get tabs > instead of spaces, that's in PyEditConfiguration - we return the default > indent strategy instead of PyAutoIndentStrategy - is there any reason to do > that and not return PyAutoIndentStrategy? (I had a bug because of that... > made some commented code and after uncommenting it python complained...) |
From: Fabio Z. <fa...@in...> - 2004-07-15 15:31:16
|
Aleks, I was checking the code and found that in comments, we are able to get tabs instead of spaces, that's in PyEditConfiguration - we return the default indent strategy instead of PyAutoIndentStrategy - is there any reason to do that and not return PyAutoIndentStrategy? (I had a bug because of that... made some commented code and after uncommenting it python complained...) []s Fabio |
From: Aleks T. <a...@to...> - 2004-07-08 20:15:33
|
Hi, I was planning on releasing 0.5 this week, or Tuesday at the latest. How is that code-completion code drop looking? Aleks |
From: Aleks T. <a...@to...> - 2004-07-07 17:22:32
|
Dana Moore wrote: > Aleks, if I do a new check out the various packages from CVS, may I > assume that they will work w/ Eclipse 3.0? Yes. Aleks |
From: Dana M. <dan...@ya...> - 2004-07-07 13:31:50
|
Aleks, if I do a new check out the various packages from CVS, may I assume that they will work w/ Eclipse 3.0? Thx --- Aleks Totic <a...@to...> wrote: > Hi, > I've just finished porting pydev to Eclipse 3.0. The changes have > been checked in. Unfortunately, I had to cut some of your stuff > out to make it happen, hope you can put the code back in soon: > > 1) Parhaum's test: > - the tests Java files were in the same directory tree as the > plugin. I do not like having the test files in the same tree, as > I do not want to ship them when plugin is built. I've moved them > all into docs/tests. > > I am not a big fan of indiscriminate testing. Writing a proper > testing harness is hard, and requires maintenance. And for me, it > is no fun. So I do not write them. There is a smoke test suite I > run through before the release, and that's it. > > So, Parhaum, if you'd like to include the tests in the project, > please keep them separate from the main code line. I have an > org.python.pydev.test project where I keep my smoke tests, it > might be a good place for your test cases too. > > 2) Code completion by Dana: > - Here I ran into a library loading problem. pydev uses and > compiles jython's parser internally for syntax highlights & > outline. org.pydev.jython/jython.jar included some of the same > classes, but they were different versions. In 2.0, the class > loader did what we wanted. In 3.0, the class loader has changed, > and pydev editor was getting NoSuchMethod exceptions because it > was getting PythonGrammar out of jython.jar. So I removed > jython.jar from the classpath to get things going again. This > also meant that completion processor was turned off. > > How do we solve this one? There is no simple solution. I've > submitted my changes to Jython, and they've been accepted. Maybe > you can check out the pydev compatible jython tree, and check > that in instead, and remove our jython parser port from the editor? > > I've also fixed "Open External File" command. Files outside of > workspace can be opened, but not edited. Getting editing to work > was just too much coding, nice hobby project for someone for the > weekend. > > Porting was a little annoying as Eclipse's programming usually > is. Main changes involved moving the Plugin classes to the new > Bundle standard. > > I'd like to ship this early next week. Dana, do you have an ETA > on your changes? > > Aleks > > > ------------------------------------------------------- > This SF.Net email sponsored by Black Hat Briefings & Training. > Attend Black Hat Briefings & Training, Las Vegas July 24-29 - > digital self defense, top technical experts, no vendor pitches, > unmatched networking opportunities. Visit www.blackhat.com > _______________________________________________ > 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-07-02 16:56:24
|
Aleks, I have some time this weekend and it looks like Monday is a holiday here, so let me see what I can do. If 3.0 is our target, I guess I ought to DL the darn thing and start from there :-) Bill is pretty good at soving this kind of library-itis, so I might be able to get some of his cycles as well. I am in a nice TMobile hotspot, so I should be able to get a Eclipse 3.0 before my flight. Thanks for the very good update. --- Aleks Totic <a...@to...> wrote: > Hi, > I've just finished porting pydev to Eclipse 3.0. The changes have > been checked in. Unfortunately, I had to cut some of your stuff > out to make it happen, hope you can put the code back in soon: > > 1) Parhaum's test: > - the tests Java files were in the same directory tree as the > plugin. I do not like having the test files in the same tree, as > I do not want to ship them when plugin is built. I've moved them > all into docs/tests. > > I am not a big fan of indiscriminate testing. Writing a proper > testing harness is hard, and requires maintenance. And for me, it > is no fun. So I do not write them. There is a smoke test suite I > run through before the release, and that's it. > > So, Parhaum, if you'd like to include the tests in the project, > please keep them separate from the main code line. I have an > org.python.pydev.test project where I keep my smoke tests, it > might be a good place for your test cases too. > > 2) Code completion by Dana: > - Here I ran into a library loading problem. pydev uses and > compiles jython's parser internally for syntax highlights & > outline. org.pydev.jython/jython.jar included some of the same > classes, but they were different versions. In 2.0, the class > loader did what we wanted. In 3.0, the class loader has changed, > and pydev editor was getting NoSuchMethod exceptions because it > was getting PythonGrammar out of jython.jar. So I removed > jython.jar from the classpath to get things going again. This > also meant that completion processor was turned off. > > How do we solve this one? There is no simple solution. I've > submitted my changes to Jython, and they've been accepted. Maybe > you can check out the pydev compatible jython tree, and check > that in instead, and remove our jython parser port from the editor? > > I've also fixed "Open External File" command. Files outside of > workspace can be opened, but not edited. Getting editing to work > was just too much coding, nice hobby project for someone for the > weekend. > > Porting was a little annoying as Eclipse's programming usually > is. Main changes involved moving the Plugin classes to the new > Bundle standard. > > I'd like to ship this early next week. Dana, do you have an ETA > on your changes? > > Aleks > > > ------------------------------------------------------- > This SF.Net email sponsored by Black Hat Briefings & Training. > Attend Black Hat Briefings & Training, Las Vegas July 24-29 - > digital self defense, top technical experts, no vendor pitches, > unmatched networking opportunities. Visit www.blackhat.com > _______________________________________________ > 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!? Yahoo! Mail is new and improved - Check it out! http://promotions.yahoo.com/new_mail |
From: Aleks T. <a...@to...> - 2004-07-02 02:59:27
|
Hi, I've just finished porting pydev to Eclipse 3.0. The changes have been checked in. Unfortunately, I had to cut some of your stuff out to make it happen, hope you can put the code back in soon: 1) Parhaum's test: - the tests Java files were in the same directory tree as the plugin. I do not like having the test files in the same tree, as I do not want to ship them when plugin is built. I've moved them all into docs/tests. I am not a big fan of indiscriminate testing. Writing a proper testing harness is hard, and requires maintenance. And for me, it is no fun. So I do not write them. There is a smoke test suite I run through before the release, and that's it. So, Parhaum, if you'd like to include the tests in the project, please keep them separate from the main code line. I have an org.python.pydev.test project where I keep my smoke tests, it might be a good place for your test cases too. 2) Code completion by Dana: - Here I ran into a library loading problem. pydev uses and compiles jython's parser internally for syntax highlights & outline. org.pydev.jython/jython.jar included some of the same classes, but they were different versions. In 2.0, the class loader did what we wanted. In 3.0, the class loader has changed, and pydev editor was getting NoSuchMethod exceptions because it was getting PythonGrammar out of jython.jar. So I removed jython.jar from the classpath to get things going again. This also meant that completion processor was turned off. How do we solve this one? There is no simple solution. I've submitted my changes to Jython, and they've been accepted. Maybe you can check out the pydev compatible jython tree, and check that in instead, and remove our jython parser port from the editor? I've also fixed "Open External File" command. Files outside of workspace can be opened, but not edited. Getting editing to work was just too much coding, nice hobby project for someone for the weekend. Porting was a little annoying as Eclipse's programming usually is. Main changes involved moving the Plugin classes to the new Bundle standard. I'd like to ship this early next week. Dana, do you have an ETA on your changes? Aleks |
From: Dana M. <dan...@ya...> - 2004-06-30 23:09:05
|
--- Aleks Totic <a...@to...> wrote: > The only downside is that I have to redo some of the code to deal > with non-compatible changes. It is trickier than I thought. I've > already had 2 class-loading related bugs that took me a day to > resolve. > > Regarding your code completion code, will it be ready to ship & > be supported when 3.0 port is done? > Yes. I need to tinker with the Jython version a bit, and I was also going to allow the user to specify either Python or Jython as an interpreter. I wanted to get a new project wizard done too. I will start working on that on the plane ride back. It would be nice to get an execute capability done as well, but I haven't started thinking about it yet. > Aleks > > Dana Moore wrote: > > Aleks, I am at JavaOne this week. > > Are there some downsides to moving to 3.0 > > I thot plugin management has changed in a non-backward compatible > way. > > > > --- Aleks Totic <a...@to...> wrote: > > > >>Hi guys, > >>with the upcoming 3.0 release, I've been thinking about moving > >>our codebase to it. The editor works as is, and the debugger > >>would need some minor modifications. > >> > >>After moving the debugger to 3.0, I was going to do a new > >>release, probably late next week. > >> > >>Is there any code you'd like to be in the next release? Other > > > > ------------------------------------------------------- > This SF.Net email sponsored by Black Hat Briefings & Training. > Attend Black Hat Briefings & Training, Las Vegas July 24-29 - > digital self defense, top technical experts, no vendor pitches, > unmatched networking opportunities. Visit www.blackhat.com > _______________________________________________ > 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!? Read only the mail you want - Yahoo! Mail SpamGuard. http://promotions.yahoo.com/new_mail |
From: Aleks T. <a...@to...> - 2004-06-30 16:07:48
|
The only downside is that I have to redo some of the code to deal with non-compatible changes. It is trickier than I thought. I've already had 2 class-loading related bugs that took me a day to resolve. Regarding your code completion code, will it be ready to ship & be supported when 3.0 port is done? Aleks Dana Moore wrote: > Aleks, I am at JavaOne this week. > Are there some downsides to moving to 3.0 > I thot plugin management has changed in a non-backward compatible way. > > --- Aleks Totic <a...@to...> wrote: > >>Hi guys, >>with the upcoming 3.0 release, I've been thinking about moving >>our codebase to it. The editor works as is, and the debugger >>would need some minor modifications. >> >>After moving the debugger to 3.0, I was going to do a new >>release, probably late next week. >> >>Is there any code you'd like to be in the next release? Other |
From: Dana M. <dan...@ya...> - 2004-06-30 15:36:07
|
Aleks, I am at JavaOne this week. Are there some downsides to moving to 3.0 I thot plugin management has changed in a non-backward compatible way. --- Aleks Totic <a...@to...> wrote: > Hi guys, > with the upcoming 3.0 release, I've been thinking about moving > our codebase to it. The editor works as is, and the debugger > would need some minor modifications. > > After moving the debugger to 3.0, I was going to do a new > release, probably late next week. > > Is there any code you'd like to be in the next release? Other > comments? > > Aleks > > > ------------------------------------------------------- > This SF.Net email sponsored by Black Hat Briefings & Training. > Attend Black Hat Briefings & Training, Las Vegas July 24-29 - > digital self defense, top technical experts, no vendor pitches, > unmatched networking opportunities. Visit www.blackhat.com > _______________________________________________ > 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!? Yahoo! Mail - 50x more storage than other providers! http://promotions.yahoo.com/new_mail |
From: Aleks T. <a...@to...> - 2004-06-23 22:32:33
|
Hi guys, with the upcoming 3.0 release, I've been thinking about moving our codebase to it. The editor works as is, and the debugger would need some minor modifications. After moving the debugger to 3.0, I was going to do a new release, probably late next week. Is there any code you'd like to be in the next release? Other comments? Aleks |
From: Dana M. <dan...@ya...> - 2004-06-18 17:36:49
|
Parhaum, is not a problem at all. I will take a crack at it. best, D --- Parhaum Toofanian <pto...@ho...> wrote: > To be honest, I'm still just trying to figure out how things are > working as > they are. I'm suffering from not having experience with Python, > interpreters, or Eclipse, so it's slow going. > > - Parhaum > > ----- Original Message ----- > From: "Dana Moore" <dan...@ya...> > To: <pyd...@li...> > Sent: Friday, June 18, 2004 10:24 AM > Subject: RE: [Pydev-code] Autocompletion in PyDev. A first working > version > > > > Fabio, Good comments. > > > > I guess this means that we should work toward a user selectable > > autocompletion. We can build upon what we have now of course as an > > initial cut, and we can experiment with spawning a CPython > interpreter > > to run the same code introspection package. Is that how everyone > else > > reads it? > > > > Parthoum, if you would prefer look into how we might spawn a > CPython > > interpreter and run the same introspection code we are using now > (which > > is in the jythonlib.jar), I could actually move into trying the new > > project wizard. Can you let the group know if you'd like to attempt > > that effort as soon as you can, so that we can adjust our planning > > accordingly. > > > > Parthoum, I am looking at your thesis features list, and I would > like > > to help you get as much of tht done as possible; I notice that > > autocomplet is on it as well, so maybe it's a good plan for you to > get > > involved in that way. By the way, we still need to code > autocompletion > > for an opening round brace "(", I can look at that, in the > > PyCompletionProcessor code. The introspector I based this on > _should_ > > handle that case; I will find out why it's not :-) > > > > Regards, > > > > --- Fabio Zadrozny <fa...@in...> wrote: > > > Hi Dana, > > > > > > Well, I don't have PyAlaMode or PyAlaCarte installed (but I use > PyDev > > > full > > > time at work)... > > > > > > Anyway, I don't think I have to use them in order to demonstrate > that > > > python > > > gets c++ modules definitions... > > > > > > I have a c++ module called _coilib (It is actually a dll that has > an > > > interface with boost python). > > > > > > When I import it and call dir(_coilib), it returns to me all the > > > functions > > > the dll has without any problems (we would have to spawn a > process > > > and call > > > dir on the module to get the completion suggestions). > > > > > > And, well, thinking in the other way, if I'm developing with > Jython > > > and not > > > in CPython, I would like to import java.awt and see the code > > > completion for > > > that, so, I think, that having an option to develop in Jython or > in > > > CPython > > > would be the ideal thing... > > > > > > []s > > > > > > Fabio > > > > > > -----Original Message----- > > > From: pyd...@li... > > > [mailto:pyd...@li...] On Behalf Of Dana > > > Moore > > > Sent: quinta-feira, 17 de junho de 2004 13:25 > > > To: pyd...@li... > > > Subject: Re: [Pydev-code] Autocompletion in PyDev. A first > working > > > version > > > > > > --- Aleks Totic <a...@to...> wrote: > > > > Hi, > > > > > > > > I think Fabio's problem is that his python code requires Python > > > > version > 2.3. When Jython is used by pydev to parse this file, > > > > it fails, and autocompletion does not work. > > > > > > > > > > Aleks, that what I thought might be the problem at first; then I > > > considered that Jython is merely running a bit of CPython code > > > (actually developed on 2.3.x) So I then wondered whether his > argument > > > was valid or not. I mean: I understand that the jython > interpreter > > > itself is not 2.3 compliant but why should that matter if the > > > intrspection code _is_ -- That is is there anything from the > jython > > > runtime system that prevents us from doing as good a job as (say) > > > PyAlaMode. I noted the one thing which is Fabio's suggested > little > > > kludge to exec "class object:pass", but is there anything else??? > > > That's why I am asking Fabio to try out his part python/part C++ > code > > > in somethign like PyAlaMode or PyAlaCarte and let us know. > > > > > > > Conversely, if his code required Jython to run, autocompletion > > > > based upon CPython interpreter would fail to work. So no one > > > > solution would please both Jython & CPython developers. > > > > > > > > What's the right solution? > > > > > > > > If scripts can run in both Python & Jython environment, then > the > > > > user could have an option to pick one they are using. This > route > > > > involves additional work: You'd have to communicate with Python > > > > interpreter through stdio or sockets. Debugger does this, and > > > > almost works with Jython. Not quite, since its threading model > is > > > > different. > > > > > > > > Or different features can use different interpreters, and they > > > > just won't work for the other guy. This might sort itself out > as > > > > Jython catches up with CPython. If this is what we do, make > sure > > > > that you are clearly communicating to users what is happening. > So > > > > far: > > > > > > > > - debugger will work with CPython > > > > - auto-completion will work with Jython > > > > > > > > the users might get confused. > > > > > > > > This is where doing an IDE in a foreign language (Java) gets to > > > > be tricky. > > > > > > > > Good luck, > > > > > > > > Aleks > > > > > > > > > Is Jython's failure to be fully version compliant a problem? > If > > > > we're > > > > > just running a module to introspect code (which was actually > a > > > > direct > > > > > port from CPython) then does Jython's version skew actually > > > present > > > > a > > > > > problem? If it does, then perhaps one that can be worked > > > > separately; > > > > > perhaps Kevin Altis might have a comment or two on this > topic. > > > > > > > > > > > > > > >>So, basically, what I want to say is that it is good the way > it > > > is > > > > > > > > > > for Jython development, but when it comes to develop in > python, I > > > > think > > > > > that jython just hasn't arrived there yet... (still version > 2.1) > > > > and > > > > > for some things like dependency on c++ modules, it probably > > > never > > > > will > > > > > (and this has never been its purpose). > > > > > > > > > > Correct statements, both. Is there are better way to invoke > > > Python > > > > > introspection directly from Eclipse? I suppose we might spawn > a > > > > > separate command line thread "python introspector.py" and > pipe > > > the > > > > > result to standard out or a temp file and then read that > stream? > > > > > > > > > > > > > > > > > > >>Of course, we could let the user choose what to use, if we > want > === message truncated === ===== _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ _/ Dana Moore _/ _/ BBN Technologies LLC _/ _/ M: 240.350.4196 _/ _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ __________________________________ Do you Yahoo!? Yahoo! Mail - Helps protect you from nasty viruses. http://promotions.yahoo.com/new_mail |
From: Parhaum T. <pto...@ho...> - 2004-06-18 16:44:42
|
To be honest, I'm still just trying to figure out how things are working as they are. I'm suffering from not having experience with Python, interpreters, or Eclipse, so it's slow going. - Parhaum ----- Original Message ----- From: "Dana Moore" <dan...@ya...> To: <pyd...@li...> Sent: Friday, June 18, 2004 10:24 AM Subject: RE: [Pydev-code] Autocompletion in PyDev. A first working version > Fabio, Good comments. > > I guess this means that we should work toward a user selectable > autocompletion. We can build upon what we have now of course as an > initial cut, and we can experiment with spawning a CPython interpreter > to run the same code introspection package. Is that how everyone else > reads it? > > Parthoum, if you would prefer look into how we might spawn a CPython > interpreter and run the same introspection code we are using now (which > is in the jythonlib.jar), I could actually move into trying the new > project wizard. Can you let the group know if you'd like to attempt > that effort as soon as you can, so that we can adjust our planning > accordingly. > > Parthoum, I am looking at your thesis features list, and I would like > to help you get as much of tht done as possible; I notice that > autocomplet is on it as well, so maybe it's a good plan for you to get > involved in that way. By the way, we still need to code autocompletion > for an opening round brace "(", I can look at that, in the > PyCompletionProcessor code. The introspector I based this on _should_ > handle that case; I will find out why it's not :-) > > Regards, > > --- Fabio Zadrozny <fa...@in...> wrote: > > Hi Dana, > > > > Well, I don't have PyAlaMode or PyAlaCarte installed (but I use PyDev > > full > > time at work)... > > > > Anyway, I don't think I have to use them in order to demonstrate that > > python > > gets c++ modules definitions... > > > > I have a c++ module called _coilib (It is actually a dll that has an > > interface with boost python). > > > > When I import it and call dir(_coilib), it returns to me all the > > functions > > the dll has without any problems (we would have to spawn a process > > and call > > dir on the module to get the completion suggestions). > > > > And, well, thinking in the other way, if I'm developing with Jython > > and not > > in CPython, I would like to import java.awt and see the code > > completion for > > that, so, I think, that having an option to develop in Jython or in > > CPython > > would be the ideal thing... > > > > []s > > > > Fabio > > > > -----Original Message----- > > From: pyd...@li... > > [mailto:pyd...@li...] On Behalf Of Dana > > Moore > > Sent: quinta-feira, 17 de junho de 2004 13:25 > > To: pyd...@li... > > Subject: Re: [Pydev-code] Autocompletion in PyDev. A first working > > version > > > > --- Aleks Totic <a...@to...> wrote: > > > Hi, > > > > > > I think Fabio's problem is that his python code requires Python > > > version > 2.3. When Jython is used by pydev to parse this file, > > > it fails, and autocompletion does not work. > > > > > > > Aleks, that what I thought might be the problem at first; then I > > considered that Jython is merely running a bit of CPython code > > (actually developed on 2.3.x) So I then wondered whether his argument > > was valid or not. I mean: I understand that the jython interpreter > > itself is not 2.3 compliant but why should that matter if the > > intrspection code _is_ -- That is is there anything from the jython > > runtime system that prevents us from doing as good a job as (say) > > PyAlaMode. I noted the one thing which is Fabio's suggested little > > kludge to exec "class object:pass", but is there anything else??? > > That's why I am asking Fabio to try out his part python/part C++ code > > in somethign like PyAlaMode or PyAlaCarte and let us know. > > > > > Conversely, if his code required Jython to run, autocompletion > > > based upon CPython interpreter would fail to work. So no one > > > solution would please both Jython & CPython developers. > > > > > > What's the right solution? > > > > > > If scripts can run in both Python & Jython environment, then the > > > user could have an option to pick one they are using. This route > > > involves additional work: You'd have to communicate with Python > > > interpreter through stdio or sockets. Debugger does this, and > > > almost works with Jython. Not quite, since its threading model is > > > different. > > > > > > Or different features can use different interpreters, and they > > > just won't work for the other guy. This might sort itself out as > > > Jython catches up with CPython. If this is what we do, make sure > > > that you are clearly communicating to users what is happening. So > > > far: > > > > > > - debugger will work with CPython > > > - auto-completion will work with Jython > > > > > > the users might get confused. > > > > > > This is where doing an IDE in a foreign language (Java) gets to > > > be tricky. > > > > > > Good luck, > > > > > > Aleks > > > > > > > Is Jython's failure to be fully version compliant a problem? If > > > we're > > > > just running a module to introspect code (which was actually a > > > direct > > > > port from CPython) then does Jython's version skew actually > > present > > > a > > > > problem? If it does, then perhaps one that can be worked > > > separately; > > > > perhaps Kevin Altis might have a comment or two on this topic. > > > > > > > > > > > >>So, basically, what I want to say is that it is good the way it > > is > > > > > > > > for Jython development, but when it comes to develop in python, I > > > think > > > > that jython just hasn't arrived there yet... (still version 2.1) > > > and > > > > for some things like dependency on c++ modules, it probably > > never > > > will > > > > (and this has never been its purpose). > > > > > > > > Correct statements, both. Is there are better way to invoke > > Python > > > > introspection directly from Eclipse? I suppose we might spawn a > > > > separate command line thread "python introspector.py" and pipe > > the > > > > result to standard out or a temp file and then read that stream? > > > > > > > > > > > > > > >>Of course, we could let the user choose what to use, if we want > > to > > > > > > > > extend the plug-in to develop in jython, but I think that it must > > > > support python without dependency on jython. > > > > > > > > What's everyone else think? I suppose we could spawn Python as I > > > have > > > > suggested; we can certainly assume that the use _will_ have > > Python > > > on > > > > their system. therefore it's not entirely lame-brain to think > > about > > > > spawning Python to do this job, but I would rather fix the > > defects > > > in > > > > the current implementation rather than experiment with a new > > > solution, > > > > especially if PyAlaMode and other similar completion capabilities > > > yield > > > > no different result. > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference > > > Learn from the experts at JavaOne(SM), Sun's Worldwide Java > > Developer > > > Conference, June 28 - July 1 at the Moscone Center in San > > Francisco, > > > CA > > > REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code > > > NWMGYKND > > > _______________________________________________ > > > 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 > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference > > Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer > > Conference, June 28 - July 1 at the Moscone Center in San Francisco, > > CA > > REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code > > NWMGYKND > > _______________________________________________ > > Pydev-code mailing list > > Pyd...@li... > > https://lists.sourceforge.net/lists/listinfo/pydev-code > > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference > > Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer > > Conference, June 28 - July 1 at the Moscone Center in San Francisco, > > CA > > REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code > > NWMGYKND > > > === message truncated === > > > ===== > _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ > _/ Dana Moore _/ > _/ BBN Technologies LLC _/ > _/ M: 240.350.4196 _/ > _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ > > > > __________________________________ > Do you Yahoo!? > Yahoo! Mail - You care about security. So do we. > http://promotions.yahoo.com/new_mail > > > ------------------------------------------------------- > This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference > Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer > Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA > REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND > _______________________________________________ > Pydev-code mailing list > Pyd...@li... > https://lists.sourceforge.net/lists/listinfo/pydev-code > > |
From: Dana M. <dan...@ya...> - 2004-06-18 14:24:18
|
Fabio, Good comments. I guess this means that we should work toward a user selectable autocompletion. We can build upon what we have now of course as an initial cut, and we can experiment with spawning a CPython interpreter to run the same code introspection package. Is that how everyone else reads it? Parthoum, if you would prefer look into how we might spawn a CPython interpreter and run the same introspection code we are using now (which is in the jythonlib.jar), I could actually move into trying the new project wizard. Can you let the group know if you'd like to attempt that effort as soon as you can, so that we can adjust our planning accordingly. Parthoum, I am looking at your thesis features list, and I would like to help you get as much of tht done as possible; I notice that autocomplet is on it as well, so maybe it's a good plan for you to get involved in that way. By the way, we still need to code autocompletion for an opening round brace "(", I can look at that, in the PyCompletionProcessor code. The introspector I based this on _should_ handle that case; I will find out why it's not :-) Regards, --- Fabio Zadrozny <fa...@in...> wrote: > Hi Dana, > > Well, I don't have PyAlaMode or PyAlaCarte installed (but I use PyDev > full > time at work)... > > Anyway, I don't think I have to use them in order to demonstrate that > python > gets c++ modules definitions... > > I have a c++ module called _coilib (It is actually a dll that has an > interface with boost python). > > When I import it and call dir(_coilib), it returns to me all the > functions > the dll has without any problems (we would have to spawn a process > and call > dir on the module to get the completion suggestions). > > And, well, thinking in the other way, if I'm developing with Jython > and not > in CPython, I would like to import java.awt and see the code > completion for > that, so, I think, that having an option to develop in Jython or in > CPython > would be the ideal thing... > > []s > > Fabio > > -----Original Message----- > From: pyd...@li... > [mailto:pyd...@li...] On Behalf Of Dana > Moore > Sent: quinta-feira, 17 de junho de 2004 13:25 > To: pyd...@li... > Subject: Re: [Pydev-code] Autocompletion in PyDev. A first working > version > > --- Aleks Totic <a...@to...> wrote: > > Hi, > > > > I think Fabio's problem is that his python code requires Python > > version > 2.3. When Jython is used by pydev to parse this file, > > it fails, and autocompletion does not work. > > > > Aleks, that what I thought might be the problem at first; then I > considered that Jython is merely running a bit of CPython code > (actually developed on 2.3.x) So I then wondered whether his argument > was valid or not. I mean: I understand that the jython interpreter > itself is not 2.3 compliant but why should that matter if the > intrspection code _is_ -- That is is there anything from the jython > runtime system that prevents us from doing as good a job as (say) > PyAlaMode. I noted the one thing which is Fabio's suggested little > kludge to exec "class object:pass", but is there anything else??? > That's why I am asking Fabio to try out his part python/part C++ code > in somethign like PyAlaMode or PyAlaCarte and let us know. > > > Conversely, if his code required Jython to run, autocompletion > > based upon CPython interpreter would fail to work. So no one > > solution would please both Jython & CPython developers. > > > > What's the right solution? > > > > If scripts can run in both Python & Jython environment, then the > > user could have an option to pick one they are using. This route > > involves additional work: You'd have to communicate with Python > > interpreter through stdio or sockets. Debugger does this, and > > almost works with Jython. Not quite, since its threading model is > > different. > > > > Or different features can use different interpreters, and they > > just won't work for the other guy. This might sort itself out as > > Jython catches up with CPython. If this is what we do, make sure > > that you are clearly communicating to users what is happening. So > > far: > > > > - debugger will work with CPython > > - auto-completion will work with Jython > > > > the users might get confused. > > > > This is where doing an IDE in a foreign language (Java) gets to > > be tricky. > > > > Good luck, > > > > Aleks > > > > > Is Jython's failure to be fully version compliant a problem? If > > we're > > > just running a module to introspect code (which was actually a > > direct > > > port from CPython) then does Jython's version skew actually > present > > a > > > problem? If it does, then perhaps one that can be worked > > separately; > > > perhaps Kevin Altis might have a comment or two on this topic. > > > > > > > > >>So, basically, what I want to say is that it is good the way it > is > > > > > > for Jython development, but when it comes to develop in python, I > > think > > > that jython just hasn't arrived there yet... (still version 2.1) > > and > > > for some things like dependency on c++ modules, it probably > never > > will > > > (and this has never been its purpose). > > > > > > Correct statements, both. Is there are better way to invoke > Python > > > introspection directly from Eclipse? I suppose we might spawn a > > > separate command line thread "python introspector.py" and pipe > the > > > result to standard out or a temp file and then read that stream? > > > > > > > > > > >>Of course, we could let the user choose what to use, if we want > to > > > > > > extend the plug-in to develop in jython, but I think that it must > > > support python without dependency on jython. > > > > > > What's everyone else think? I suppose we could spawn Python as I > > have > > > suggested; we can certainly assume that the use _will_ have > Python > > on > > > their system. therefore it's not entirely lame-brain to think > about > > > spawning Python to do this job, but I would rather fix the > defects > > in > > > the current implementation rather than experiment with a new > > solution, > > > especially if PyAlaMode and other similar completion capabilities > > yield > > > no different result. > > > > > > > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference > > Learn from the experts at JavaOne(SM), Sun's Worldwide Java > Developer > > Conference, June 28 - July 1 at the Moscone Center in San > Francisco, > > CA > > REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code > > NWMGYKND > > _______________________________________________ > > 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 > > > ------------------------------------------------------- > This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference > Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer > Conference, June 28 - July 1 at the Moscone Center in San Francisco, > CA > REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code > NWMGYKND > _______________________________________________ > Pydev-code mailing list > Pyd...@li... > https://lists.sourceforge.net/lists/listinfo/pydev-code > > > > ------------------------------------------------------- > This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference > Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer > Conference, June 28 - July 1 at the Moscone Center in San Francisco, > CA > REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code > NWMGYKND > === message truncated === ===== _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ _/ Dana Moore _/ _/ BBN Technologies LLC _/ _/ M: 240.350.4196 _/ _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ __________________________________ Do you Yahoo!? Yahoo! Mail - You care about security. So do we. http://promotions.yahoo.com/new_mail |
From: Fabio Z. <fa...@in...> - 2004-06-17 18:37:54
|
Hi Dana, Well, I don't have PyAlaMode or PyAlaCarte installed (but I use PyDev full time at work)... Anyway, I don't think I have to use them in order to demonstrate that python gets c++ modules definitions... I have a c++ module called _coilib (It is actually a dll that has an interface with boost python). When I import it and call dir(_coilib), it returns to me all the functions the dll has without any problems (we would have to spawn a process and call dir on the module to get the completion suggestions). And, well, thinking in the other way, if I'm developing with Jython and not in CPython, I would like to import java.awt and see the code completion for that, so, I think, that having an option to develop in Jython or in CPython would be the ideal thing... []s Fabio -----Original Message----- From: pyd...@li... [mailto:pyd...@li...] On Behalf Of Dana Moore Sent: quinta-feira, 17 de junho de 2004 13:25 To: pyd...@li... Subject: Re: [Pydev-code] Autocompletion in PyDev. A first working version --- Aleks Totic <a...@to...> wrote: > Hi, > > I think Fabio's problem is that his python code requires Python > version > 2.3. When Jython is used by pydev to parse this file, > it fails, and autocompletion does not work. > Aleks, that what I thought might be the problem at first; then I considered that Jython is merely running a bit of CPython code (actually developed on 2.3.x) So I then wondered whether his argument was valid or not. I mean: I understand that the jython interpreter itself is not 2.3 compliant but why should that matter if the intrspection code _is_ -- That is is there anything from the jython runtime system that prevents us from doing as good a job as (say) PyAlaMode. I noted the one thing which is Fabio's suggested little kludge to exec "class object:pass", but is there anything else??? That's why I am asking Fabio to try out his part python/part C++ code in somethign like PyAlaMode or PyAlaCarte and let us know. > Conversely, if his code required Jython to run, autocompletion > based upon CPython interpreter would fail to work. So no one > solution would please both Jython & CPython developers. > > What's the right solution? > > If scripts can run in both Python & Jython environment, then the > user could have an option to pick one they are using. This route > involves additional work: You'd have to communicate with Python > interpreter through stdio or sockets. Debugger does this, and > almost works with Jython. Not quite, since its threading model is > different. > > Or different features can use different interpreters, and they > just won't work for the other guy. This might sort itself out as > Jython catches up with CPython. If this is what we do, make sure > that you are clearly communicating to users what is happening. So > far: > > - debugger will work with CPython > - auto-completion will work with Jython > > the users might get confused. > > This is where doing an IDE in a foreign language (Java) gets to > be tricky. > > Good luck, > > Aleks > > > Is Jython's failure to be fully version compliant a problem? If > we're > > just running a module to introspect code (which was actually a > direct > > port from CPython) then does Jython's version skew actually present > a > > problem? If it does, then perhaps one that can be worked > separately; > > perhaps Kevin Altis might have a comment or two on this topic. > > > > > >>So, basically, what I want to say is that it is good the way it is > > > > for Jython development, but when it comes to develop in python, I > think > > that jython just hasn't arrived there yet... (still version 2.1) > and > > for some things like dependency on c++ modules, it probably never > will > > (and this has never been its purpose). > > > > Correct statements, both. Is there are better way to invoke Python > > introspection directly from Eclipse? I suppose we might spawn a > > separate command line thread "python introspector.py" and pipe the > > result to standard out or a temp file and then read that stream? > > > > > > >>Of course, we could let the user choose what to use, if we want to > > > > extend the plug-in to develop in jython, but I think that it must > > support python without dependency on jython. > > > > What's everyone else think? I suppose we could spawn Python as I > have > > suggested; we can certainly assume that the use _will_ have Python > on > > their system. therefore it's not entirely lame-brain to think about > > spawning Python to do this job, but I would rather fix the defects > in > > the current implementation rather than experiment with a new > solution, > > especially if PyAlaMode and other similar completion capabilities > yield > > no different result. > > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference > Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer > Conference, June 28 - July 1 at the Moscone Center in San Francisco, > CA > REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code > NWMGYKND > _______________________________________________ > 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 ------------------------------------------------------- This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND _______________________________________________ Pydev-code mailing list Pyd...@li... https://lists.sourceforge.net/lists/listinfo/pydev-code |