pydev-code Mailing List for PyDev for Eclipse (Page 50)
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: Bill W. <ww...@bb...> - 2004-04-16 12:40:52
|
Aleks, Dana and I have been pretty tied up getting ready for our JavaOne presentations, so this has been idle for a little bit. But I did get your new code and the changes to the run configuration work fine. There were a couple nice features that got lost, though. The other PythonTab had "Browse..." buttons for the run directory and other configuration options so you didn't have to type in a nasty pathname if you didn't want. It also error-checked the input and wouldn't try to run a script that didn't exist or run in a directory that didn't exist, etc. I'll try to merge those features into the one-true-PythonTab when I get a chance. I tried to use the hyperlinking that you mentioned, but I guess I don't know how to activate it. I have an interpreter configured (it's just "python" which seems to work ok for the run configuration since it's in my %PATH%). What should happen> If I hit CTRL-SPACE I do see some rogues' names ;-) Bill -----Original Message----- From: pyd...@li... [mailto:pyd...@li...]On Behalf Of Aleks Totic Sent: Thursday, April 15, 2004 7:32 PM To: pyd...@li... Subject: [Pydev-code] Model/hyperlinking checkin Hi, I've just checked in tons of changes. Hyperlinks now work on local function calls, and imports. import sys # hyperlinking works here def simple(): print "hello" simple() # and here. For the sys to open up, you'll need to configure your interpreter in preferences. I am not doing true import search yet. For now only . and python/Lib are in the search path. The full solution will take some work, this is good enough for me. Model received some more work to make all this possible. Look inside ModelUtils for new findFunction/findImport functionality. In debugger, I've removed the PythonTab from Bill, since same functionality was available in the old tab code. Python should still be launchable in "Run last launched", I just removed the category from plugin.xml. Now I am back to the debugger. I am starting to lean towards implementing my own debug protocol from scratch. I might implement more code hyperlinks as I need them. Any news? Aleks ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Pydev-code mailing list Pyd...@li... https://lists.sourceforge.net/lists/listinfo/pydev-code |
From: Aleks T. <a...@to...> - 2004-04-15 23:31:42
|
Hi, I've just checked in tons of changes. Hyperlinks now work on local function calls, and imports. import sys # hyperlinking works here def simple(): print "hello" simple() # and here. For the sys to open up, you'll need to configure your interpreter in preferences. I am not doing true import search yet. For now only . and python/Lib are in the search path. The full solution will take some work, this is good enough for me. Model received some more work to make all this possible. Look inside ModelUtils for new findFunction/findImport functionality. In debugger, I've removed the PythonTab from Bill, since same functionality was available in the old tab code. Python should still be launchable in "Run last launched", I just removed the category from plugin.xml. Now I am back to the debugger. I am starting to lean towards implementing my own debug protocol from scratch. I might implement more code hyperlinks as I need them. Any news? Aleks |
From: Aleks T. <a...@to...> - 2004-04-10 02:16:01
|
Hi, I've just committed the first implementation of Python model. Big checkin :-) I've found that programming with AST tree using the visitor pattern was unwieldy. As a fix I created Python model. Python model has information about Classes, Functions, Locals, Function calls, etc, wrapped inside a more usable API. The model is a tree of nodes. Each node is a Python construct, a class, import statement, etc. It also tries to infer where locals are defined and stores this info inside Scope. Check out the package notes inside org.python.pydev.editor.model for further documentation. I've reworked the Outline view and Navigation actions so that they use the new model. The code is a lot simpler. The model should be used for any feature that needs Python structure. Instead of traversing the AST tree, extend the model to support the features you need. Dana, I think that with some work you can use the model for CodeAssist. The list of locals defined is inside Scope. I LOVE the little easter egg :-) How did you put up that popup? Now that the model is there, I'd like to experiment. For example, I'd love to see the usage of a local variable (all lines where it is worked on) inside the popup when I ctrl-hover. One big hole in the current model is that imports are not processed, so all their definitions are missing. I'd love if someone implemented the include processing. It a picky job, there are many subtleties with the include paths. The hyperlinks are now visible, and useful for debugging the model. Any clickable items will be highlighted. I still need to implement the goto action when you click on the link. Have a great weekend, Aleks |
From: Dana M. <dan...@ya...> - 2004-04-02 20:06:27
|
Looked at the PyDictionary Code. Looks good. I understand what you are doing now and it makes sense. I really hate traversing the AST. I wonder if we can also use this structure for... [See AutoCompletion-1.gif] In addition to populating a dict with the class-defs, function-defs for the text in the editor pane, could we also 1. Look at the imports, 2. AST them 3. PyDictionary them This would help us accomplish what we show in AutoCompletion-1.gif [See AutoCompletion-2.gif] Here we have to know that the actual class of x is foo. Any thoughts on how to do that? I guess we could take note of the x = foo() and replicate foo's dictionary? [see AutoCompletion-3] I guess we will have to autoactivate on "(" too. --- Aleks Totic <a...@to...> wrote: > Hi, > after working through my PyDictionary and ctrl-click API, I've > realized that what we need is a model with a nice query API. The > AST syntax tree is cumbersome to work with. I'll keep you updated > on the progress. I hope to have a first cut of it by tomorrow. > > Aleks > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&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!? Yahoo! Small Business $15K Web Design Giveaway http://promotions.yahoo.com/design_giveaway/ |
From: Dana M. <dan...@ya...> - 2004-04-02 18:51:56
|
Aleks, I have checked in a few items... o PyEditConfiguration: Wires a content completion assistant. Does wiring for both CTRL-SPACE and auto activate on encountering of a '.' THERE IS NO GOOD CODE HERE YET!! We need to implement the stuff in Fabio's earlier email; o PyEdit: added code to activate a completion assistant processor. Currently this does nothing destructive or helpful. There is some easter egg code such that if you type in 'Aleks' followed by '.' it will offer the appropriate suggestion pane 'Totic'. I noticed that you added a place-taker for PyDictionary, so I merged my stuff with your most recent checkin o PyCompletionProcessor: added a first cut at this. Tell us more about PythonDictionary if you can spare the cycles... --- Aleks Totic <a...@to...> wrote: > Hi, > after working through my PyDictionary and ctrl-click API, I've > realized that what we need is a model with a nice query API. The > AST syntax tree is cumbersome to work with. I'll keep you updated > on the progress. I hope to have a first cut of it by tomorrow. > > Aleks > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&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!? Yahoo! Small Business $15K Web Design Giveaway http://promotions.yahoo.com/design_giveaway/ |
From: Aleks T. <a...@to...> - 2004-04-01 22:10:57
|
Hi, after working through my PyDictionary and ctrl-click API, I've realized that what we need is a model with a nice query API. The AST syntax tree is cumbersome to work with. I'll keep you updated on the progress. I hope to have a first cut of it by tomorrow. Aleks |
From: Aleks T. <a...@to...> - 2004-03-30 01:25:53
|
Hi, moving right along on the PyDictionary implementation. I've just checked in the latest bunch of changes to pydev. There are few notable changes: 1) PyVocabulary was called PyDictionary. Goodbye grammar school, hello college. The definitions dictionary (PyDictionary) is now associated with every PyEdit. Whenever parser completes, the definitions get updated. Every PyDictionary holds classes/methods/locals defined inside the containing PyItem. The implementation still lacks a few things: - locals are duplicated - no methods for traversal/query 2) I've also made Parser reparse immediately after every newline. This gives it a much better feel. 3) Also added for all the completion enthusiasts out there are PyContentAssistant & PyContentAssistantProvider. These are the shell classes that need to be implemented for code completion. Aleks Aleks Totic wrote: > Hi everyone, > we've got Dana & Bill as the official developers! Feel free to check in. > > On Friday I realized that I needed to fully understand bdb.py & pdb.py, > and that required lots of code navigation. Being bored with trying to > decipher what debugger APIs are, I took a look on what it would take to > implement cmd-click hyperlinks in pydev. It is one my favorite features > in the Java editor, and something I could really use right now. > > Java editor implements it in about 600 lines of code inside a > MouseListener. I think I can lift most of it. > > The other requirement for context navigation is a database of defined > symbols inside a file being edited. Right now I am working on > implementing this. Here are my design notes: > > ### DESIGN NOTES > To implement navigation/completion. > - Each editor needs a vocabulary. The vocabulary is hierarchical in > structure, and has items: > Top-level (file vocabulary) has: > classes > functions > globals? > Class vocabulary has: > documentation string > classes > methods (functions) > instance variables (inferred from self.) > Method/function vocabulary has: > documentation string > locals > classes > functions > > Each definition in the vocabulary describes: > - where is it defined (file, char span) > - character range where it is applicable > > Vocabulary usage: > Find an innermost vocabulary containing current selection. > Then quiz it for whatever is needed > > Questions: > can vocabularies be overlapping? That would make things hard. > ### |
From: Aleks T. <a...@to...> - 2004-03-29 19:43:15
|
Hi everyone, we've got Dana & Bill as the official developers! Feel free to=20 check in. On Friday I realized that I needed to fully understand bdb.py &=20 pdb.py, and that required lots of code navigation. Being bored=20 with trying to decipher what debugger APIs are, I took a look on=20 what it would take to implement cmd-click hyperlinks in pydev. It=20 is one my favorite features in the Java editor, and something I=20 could really use right now. Java editor implements it in about 600 lines of code inside a=20 MouseListener. I think I can lift most of it. The other requirement for context navigation is a database of=20 defined symbols inside a file being edited. Right now I am=20 working on implementing this. Here are my design notes: ### DESIGN NOTES To implement navigation/completion. - Each editor needs a vocabulary. The vocabulary is hierarchical=20 in structure, and has items: Top-level (file vocabulary) has: classes functions globals? Class vocabulary has: documentation string classes methods (functions) instance variables (inferred from self.) Method/function vocabulary has: documentation string locals classes functions Each definition in the vocabulary describes: - where is it defined (file, char span) - character range where it is applicable Vocabulary usage: Find an innermost vocabulary containing current selection. Then quiz it for whatever is needed Questions: can vocabularies be overlapping? That would make things hard. ### Dana, this sounds like it overlaps with your work a bit. Any=20 suggestions about what I am doing so that we do not conflict? Aleks Dana Moore wrote: > Aleks, > I am sneaking some time to work on autocompletion at the moment. > Might as well add me to the developers' list. > My SFid =3D=3D dana_virtual >=20 > Bill, > Thanks for getting something working. It prods me into keeping up with = the rest of the group. >=20 > Fabio,=20 > Thanks for the very comprehensive discussion of autocomplete requiremen= ts. > Although I had thought about imports, I had not even thought about the = situation of subclassing. Thanks for reminding us! > Right at the moment, I am just trying to hook Aleks parsed methods tree= and using that to try to completion for the current document. If I can g= et to that level of sophistication, then I will look at imports and subcl= assing. >=20 > Fabio,=20 > You said: > "Allied with simple text-completion, it would make for a really good=20 > environment for editing python (I've been using > the lunar-eclipse plug-in and it has already done python editing in=20 > eclipse almost unbeatable - maybe we could > try to get in contact with its authors and distribute it together with = > pydev - if it's ok with you, I'll get in touch > with its authors and integrate it in pydev...)" >=20 > When you say 'text completion' are you thinking about the kind of text = completion like scintilla does, where if you enter the word 'toto' in the= text, and some time later begin typing 'to', it offers a suggestion of '= toto'. You can then hit TAB or ENTER and it deposits the text for you? >=20 > OR > Do you mean autocompletion such as we are working one? >=20 > ALSO, > I would add to your list the kind of code generation that you get when = you enter 'if'-CTRL-SPaceBar in the Java Dev Toolkit. when you do that, t= he editor offers several kinds of if, if-else constructions. You choose o= ne and it deposits the code and positions the cursor in the right place. = I know how to do that and can finish it after we get further on with the = autocompletion work. >=20 >=20 > ALSO,=20 > Can you say more about the lunar-eclipse stuff. What can we use from it= ? >=20 > Regards,=20 >=20 >=20 >>-----Original Message----- >>From: Aleks Totic [mailto:a...@to...] >>Sent: Monday, March 29, 2004 12:57 PM >>To: pyd...@li... >>Cc: ww...@bb...; Dana Moore >>Subject: Re: [Pydev-code] Contribution: Launching from Run->Run... menu= >> >> >>Sounds good. I've had that running when I started working on the=20 >>debugger, but for the release I turned it off because I did not=20 >>have a real framework yet. Then I wanted to turn it back on, and=20 >>I forgot how. Thanks for doing this. >> >>I've been doing some more work on the debugger. I've checked in=20 >>my latest round of changes. Right now, the "Run..." option works=20 >>as it used to. The "Debug..." option launches the program under=20 >>jpydbg and you can't do anything with it. I hope to have some=20 >>better communication between jpydbg & pydev this week. >> >>I think that the context of the 2 panes can be unified, since I=20 >>started off that way. I'll look at your classes after the checkin=20 >>to see how it can be done. >> >>I'll add you to the developers. What's your slashdot id? >> >>Aleks >> >>Bill Wright wrote: >> >>>Hi Pydev guys. >>> >>>As I think Dana mentioned elsewhere, I've been working on running pyth= on >>>apps using the Run entry under the Eclipse Run menu. This=20 >> >>supplements the >> >>>current Run action and behaves more like a Java configuration. CTRL-F= 11 >>>runs the last config, etc. I've attached a picture of the config type= to >>>give you an idea what I'm talking about. On the left, there is a new = run >>>configuration called "Python" and I've made one run config called "Hel= lo >>>config" The tabbed pane looks a lot like the one on the=20 >> >>Python->Run context >> >>>menu, but is different code because it doesn't have the location conte= xt. >>>There is probably some refactoring that could unify the panels,=20 >> >>but I wanted >> >>>to do this initial cut without modifying other code. >>> >>>The code consists of two new java files and some additions to the debu= g >>>plugin's plugin.xml. What's the procedure for contributing? =20 >> >>I'd also like >> >>>to be added as a developer to pydev. >=20 >=20 >=20 >=20 > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id638&op=CCk > _______________________________________________ > Pydev-code mailing list > Pyd...@li... > https://lists.sourceforge.net/lists/listinfo/pydev-code >=20 >=20 |
From: Fabio Z. <fa...@in...> - 2004-03-29 19:25:39
|
I am not familiar with scintilla, but I think it is something similar to what you said, but it doesn't pop any suggestions. Example: If I have 'to' and press, let's say Alt+Space (that's what I use) It puts 'toto' (without any pop up...) if I press it again, it goes to the next suggestion - toBlaBla until it gets to the point where it goes back to 'to'.=20 Sometimes it works better than real code completion, because it tends to = be faster, because it is simpler to implement and it doesn't have to pop = any suggestion (and when editing something, most of the time, you just want = to complete simple words from the same editor and don't want to know about comments or anything else, since you are working on it).=20 Netbeans has something similar with Ctrl+K. The lunar-eclipse plugin has this functionality; it looks in all the = open editors and uses any text that completes it. It also has some nice = features on Rectangular editing things (http://lunar-eclipse.sourceforge.net/ ) Have you already checked http://www.zclipse.org/CompleteClipse/ ? I = didn't see it in too much detail, but it seemed useful for code completion. Regards, Fabio -----Original Message----- From: pyd...@li... [mailto:pyd...@li...] On Behalf Of Dana Moore Sent: segunda-feira, 29 de mar=E7o de 2004 15:23 To: pyd...@li...; Aleks Totic Cc: Kevin Altis; ww...@bb... Subject: RE: [Pydev-code] Contribution: Launching from Run->Run... menu Aleks, I am sneaking some time to work on autocompletion at the moment. Might as well add me to the developers' list. My SFid =3D=3D dana_virtual Bill, Thanks for getting something working. It prods me into keeping up with = the rest of the group. Fabio,=20 Thanks for the very comprehensive discussion of autocomplete = requirements. Although I had thought about imports, I had not even thought about the situation of subclassing. Thanks for reminding us! Right at the moment, I am just trying to hook Aleks parsed methods tree = and using that to try to completion for the current document. If I can get = to that level of sophistication, then I will look at imports and = subclassing. Fabio,=20 You said: "Allied with simple text-completion, it would make for a really good=20 environment for editing python (I've been using the lunar-eclipse plug-in and it has already done python editing in=20 eclipse almost unbeatable - maybe we could try to get in contact with its authors and distribute it together with=20 pydev - if it's ok with you, I'll get in touch with its authors and integrate it in pydev...)" When you say 'text completion' are you thinking about the kind of text completion like scintilla does, where if you enter the word 'toto' in = the text, and some time later begin typing 'to', it offers a suggestion of 'toto'. You can then hit TAB or ENTER and it deposits the text for you? OR Do you mean autocompletion such as we are working one? ALSO, I would add to your list the kind of code generation that you get when = you enter 'if'-CTRL-SPaceBar in the Java Dev Toolkit. when you do that, the editor offers several kinds of if, if-else constructions. You choose one = and it deposits the code and positions the cursor in the right place. I know = how to do that and can finish it after we get further on with the = autocompletion work. ALSO,=20 Can you say more about the lunar-eclipse stuff. What can we use from it? Regards,=20 >-----Original Message----- >From: Aleks Totic [mailto:a...@to...] >Sent: Monday, March 29, 2004 12:57 PM >To: pyd...@li... >Cc: ww...@bb...; Dana Moore >Subject: Re: [Pydev-code] Contribution: Launching from Run->Run... menu > > >Sounds good. I've had that running when I started working on the=20 >debugger, but for the release I turned it off because I did not=20 >have a real framework yet. Then I wanted to turn it back on, and=20 >I forgot how. Thanks for doing this. > >I've been doing some more work on the debugger. I've checked in=20 >my latest round of changes. Right now, the "Run..." option works=20 >as it used to. The "Debug..." option launches the program under=20 >jpydbg and you can't do anything with it. I hope to have some=20 >better communication between jpydbg & pydev this week. > >I think that the context of the 2 panes can be unified, since I=20 >started off that way. I'll look at your classes after the checkin=20 >to see how it can be done. > >I'll add you to the developers. What's your slashdot id? > >Aleks > >Bill Wright wrote: >> Hi Pydev guys. >>=20 >> As I think Dana mentioned elsewhere, I've been working on running = python >> apps using the Run entry under the Eclipse Run menu. This=20 >supplements the >> current Run action and behaves more like a Java configuration. = CTRL-F11 >> runs the last config, etc. I've attached a picture of the config = type to >> give you an idea what I'm talking about. On the left, there is a new = run >> configuration called "Python" and I've made one run config called = "Hello >> config" The tabbed pane looks a lot like the one on the=20 >Python->Run context >> menu, but is different code because it doesn't have the location = context. >> There is probably some refactoring that could unify the panels,=20 >but I wanted >> to do this initial cut without modifying other code. >>=20 >> The code consists of two new java files and some additions to the = debug >> plugin's plugin.xml. What's the procedure for contributing? =20 >I'd also like >> to be added as a developer to pydev. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id638&op=3Dick _______________________________________________ Pydev-code mailing list Pyd...@li... https://lists.sourceforge.net/lists/listinfo/pydev-code |
From: Aleks T. <a...@to...> - 2004-03-29 19:06:57
|
Fabio Zadrozny wrote: > Hi all... > > I had some ideas on code completion (attached)... Good points on completion. Having a database that holds latest completion info is one good way to get around lack of types. We can get type information from the user, or for advanced fun, from the debugger. We could save this info as hidden Eclipse markers, or in some other form. I am trying not to think about completion too much since it is a complex subject, and debugger is keeping me plenty busy. > Allied with simple text-completion, it would make for a really good enviroment for editing python (I've been using > the lunar-eclipse plug-in and it has already done python editing in eclipse almost unbeatable - maybe we could > try to get in contact with its authors and distribute it toghether with pydev - if it's ok with you, I'll get in thouch > with its authors and integrate it in pydev...) What cool features does lunar-eclipse has? I have not used it, and their website is not very transparent about what they are. Aleks PS: Good luck on your project, Fabio > I think that having that, to be the 'BEST' python editing enviroment, it would only require: debug, refactoring and some kind > of macro extension... |
From: Aleks T. <a...@to...> - 2004-03-29 18:52:46
|
Bill Wright wrote: > The main difference between what I wrote and the context-menu run is in how > it handles passing the name of the script to the interpreter. I do some > trickery to build a command line like the interpreter wants and undo it to > display on the config tab so I can use the standard launcher. I just simplified the command-line generation in the new code. It is all being done inside the PythonRunnerConfig. I think I understand what you are doing. You are probably doing another interpretation of PythonRunActionDelegate that works from inside the debugger context. That sounds like the right thing to do. > I'm interested to see what you're doing with the debugger. This seems to be > coming together nicely. The debugger is a big pain. Eclipse docs are very vague (their usage of getAdaptable drives me nuts), jpydbg is in release 0.5 and lacks documentation/features I need. The good news is that jpydbg author is pretty responsive. Right now I realized I'll need to have a deep understanding of bdb.py/pdb.py to get this stuff going properly. Aleks |
From: Dana M. <da...@bb...> - 2004-03-29 18:33:50
|
This is preferable,. We don't want the developer to have to think much. = Since they possibly coming from a JDT / JDE background, making things = look as much like the Java environment as possible is a good thing. >-----Original Message----- >From: Bill Wright [mailto:ww...@bb...] >Sent: Monday, March 29, 2004 1:27 PM >To: pyd...@li... >Cc: Dana Moore >Subject: RE: [Pydev-code] Contribution: Launching from Run->Run... menu > > >The main difference between what I wrote and the context-menu run is in = how >it handles passing the name of the script to the interpreter. I do = some >trickery to build a command line like the interpreter wants and undo it = to >display on the config tab so I can use the standard launcher. > >I'm interested to see what you're doing with the debugger. This seems = to be >coming together nicely. > >My sourceforge ID is wrwright. > >Thanks, >Bill > > >-----Original Message----- >From: pyd...@li... >[mailto:pyd...@li...]On Behalf Of Aleks Totic >Sent: Monday, March 29, 2004 12:57 PM >To: pyd...@li... >Cc: ww...@bb...; Dana Moore >Subject: Re: [Pydev-code] Contribution: Launching from Run->Run... menu > > >Sounds good. I've had that running when I started working on the >debugger, but for the release I turned it off because I did not >have a real framework yet. Then I wanted to turn it back on, and >I forgot how. Thanks for doing this. > >I've been doing some more work on the debugger. I've checked in >my latest round of changes. Right now, the "Run..." option works >as it used to. The "Debug..." option launches the program under >jpydbg and you can't do anything with it. I hope to have some >better communication between jpydbg & pydev this week. > >I think that the context of the 2 panes can be unified, since I >started off that way. I'll look at your classes after the checkin >to see how it can be done. > >I'll add you to the developers. What's your slashdot id? > >Aleks > >Bill Wright wrote: >> Hi Pydev guys. >> >> As I think Dana mentioned elsewhere, I've been working on running = python >> apps using the Run entry under the Eclipse Run menu. This=20 >supplements the >> current Run action and behaves more like a Java configuration. = CTRL-F11 >> runs the last config, etc. I've attached a picture of the config = type to >> give you an idea what I'm talking about. On the left, there is a new = run >> configuration called "Python" and I've made one run config called = "Hello >> config" The tabbed pane looks a lot like the one on the Python->Run >context >> menu, but is different code because it doesn't have the location = context. >> There is probably some refactoring that could unify the panels, but I >wanted >> to do this initial cut without modifying other code. >> >> The code consists of two new java files and some additions to the = debug >> plugin's plugin.xml. What's the procedure for contributing? I'd = also >like >> to be added as a developer to pydev. > > >------------------------------------------------------- >This SF.Net email is sponsored by: IBM Linux Tutorials >Free Linux tutorial presented by Daniel Robbins, President and CEO of >GenToo technologies. Learn everything from fundamentals to system >administration.http://ads.osdn.com/?ad_id=3D1470&alloc_id=3D3638&op=3Dcl= ick >_______________________________________________ >Pydev-code mailing list >Pyd...@li... >https://lists.sourceforge.net/lists/listinfo/pydev-code |
From: Bill W. <ww...@bb...> - 2004-03-29 18:27:24
|
The main difference between what I wrote and the context-menu run is in how it handles passing the name of the script to the interpreter. I do some trickery to build a command line like the interpreter wants and undo it to display on the config tab so I can use the standard launcher. I'm interested to see what you're doing with the debugger. This seems to be coming together nicely. My sourceforge ID is wrwright. Thanks, Bill -----Original Message----- From: pyd...@li... [mailto:pyd...@li...]On Behalf Of Aleks Totic Sent: Monday, March 29, 2004 12:57 PM To: pyd...@li... Cc: ww...@bb...; Dana Moore Subject: Re: [Pydev-code] Contribution: Launching from Run->Run... menu Sounds good. I've had that running when I started working on the debugger, but for the release I turned it off because I did not have a real framework yet. Then I wanted to turn it back on, and I forgot how. Thanks for doing this. I've been doing some more work on the debugger. I've checked in my latest round of changes. Right now, the "Run..." option works as it used to. The "Debug..." option launches the program under jpydbg and you can't do anything with it. I hope to have some better communication between jpydbg & pydev this week. I think that the context of the 2 panes can be unified, since I started off that way. I'll look at your classes after the checkin to see how it can be done. I'll add you to the developers. What's your slashdot id? Aleks Bill Wright wrote: > Hi Pydev guys. > > As I think Dana mentioned elsewhere, I've been working on running python > apps using the Run entry under the Eclipse Run menu. This supplements the > current Run action and behaves more like a Java configuration. CTRL-F11 > runs the last config, etc. I've attached a picture of the config type to > give you an idea what I'm talking about. On the left, there is a new run > configuration called "Python" and I've made one run config called "Hello > config" The tabbed pane looks a lot like the one on the Python->Run context > menu, but is different code because it doesn't have the location context. > There is probably some refactoring that could unify the panels, but I wanted > to do this initial cut without modifying other code. > > The code consists of two new java files and some additions to the debug > plugin's plugin.xml. What's the procedure for contributing? I'd also like > to be added as a developer to pydev. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Pydev-code mailing list Pyd...@li... https://lists.sourceforge.net/lists/listinfo/pydev-code |
From: Dana M. <da...@bb...> - 2004-03-29 18:23:38
|
Aleks, I am sneaking some time to work on autocompletion at the moment. Might as well add me to the developers' list. My SFid =3D=3D dana_virtual Bill, Thanks for getting something working. It prods me into keeping up with = the rest of the group. Fabio,=20 Thanks for the very comprehensive discussion of autocomplete = requirements. Although I had thought about imports, I had not even thought about the = situation of subclassing. Thanks for reminding us! Right at the moment, I am just trying to hook Aleks parsed methods tree = and using that to try to completion for the current document. If I can = get to that level of sophistication, then I will look at imports and = subclassing. Fabio,=20 You said: "Allied with simple text-completion, it would make for a really good=20 environment for editing python (I've been using the lunar-eclipse plug-in and it has already done python editing in=20 eclipse almost unbeatable - maybe we could try to get in contact with its authors and distribute it together with=20 pydev - if it's ok with you, I'll get in touch with its authors and integrate it in pydev...)" When you say 'text completion' are you thinking about the kind of text = completion like scintilla does, where if you enter the word 'toto' in = the text, and some time later begin typing 'to', it offers a suggestion = of 'toto'. You can then hit TAB or ENTER and it deposits the text for = you? OR Do you mean autocompletion such as we are working one? ALSO, I would add to your list the kind of code generation that you get when = you enter 'if'-CTRL-SPaceBar in the Java Dev Toolkit. when you do that, = the editor offers several kinds of if, if-else constructions. You choose = one and it deposits the code and positions the cursor in the right = place. I know how to do that and can finish it after we get further on = with the autocompletion work. ALSO,=20 Can you say more about the lunar-eclipse stuff. What can we use from it? Regards,=20 >-----Original Message----- >From: Aleks Totic [mailto:a...@to...] >Sent: Monday, March 29, 2004 12:57 PM >To: pyd...@li... >Cc: ww...@bb...; Dana Moore >Subject: Re: [Pydev-code] Contribution: Launching from Run->Run... menu > > >Sounds good. I've had that running when I started working on the=20 >debugger, but for the release I turned it off because I did not=20 >have a real framework yet. Then I wanted to turn it back on, and=20 >I forgot how. Thanks for doing this. > >I've been doing some more work on the debugger. I've checked in=20 >my latest round of changes. Right now, the "Run..." option works=20 >as it used to. The "Debug..." option launches the program under=20 >jpydbg and you can't do anything with it. I hope to have some=20 >better communication between jpydbg & pydev this week. > >I think that the context of the 2 panes can be unified, since I=20 >started off that way. I'll look at your classes after the checkin=20 >to see how it can be done. > >I'll add you to the developers. What's your slashdot id? > >Aleks > >Bill Wright wrote: >> Hi Pydev guys. >>=20 >> As I think Dana mentioned elsewhere, I've been working on running = python >> apps using the Run entry under the Eclipse Run menu. This=20 >supplements the >> current Run action and behaves more like a Java configuration. = CTRL-F11 >> runs the last config, etc. I've attached a picture of the config = type to >> give you an idea what I'm talking about. On the left, there is a new = run >> configuration called "Python" and I've made one run config called = "Hello >> config" The tabbed pane looks a lot like the one on the=20 >Python->Run context >> menu, but is different code because it doesn't have the location = context. >> There is probably some refactoring that could unify the panels,=20 >but I wanted >> to do this initial cut without modifying other code. >>=20 >> The code consists of two new java files and some additions to the = debug >> plugin's plugin.xml. What's the procedure for contributing? =20 >I'd also like >> to be added as a developer to pydev. |
From: Aleks T. <a...@to...> - 2004-03-29 17:59:43
|
Sounds good. I've had that running when I started working on the debugger, but for the release I turned it off because I did not have a real framework yet. Then I wanted to turn it back on, and I forgot how. Thanks for doing this. I've been doing some more work on the debugger. I've checked in my latest round of changes. Right now, the "Run..." option works as it used to. The "Debug..." option launches the program under jpydbg and you can't do anything with it. I hope to have some better communication between jpydbg & pydev this week. I think that the context of the 2 panes can be unified, since I started off that way. I'll look at your classes after the checkin to see how it can be done. I'll add you to the developers. What's your slashdot id? Aleks Bill Wright wrote: > Hi Pydev guys. > > As I think Dana mentioned elsewhere, I've been working on running python > apps using the Run entry under the Eclipse Run menu. This supplements the > current Run action and behaves more like a Java configuration. CTRL-F11 > runs the last config, etc. I've attached a picture of the config type to > give you an idea what I'm talking about. On the left, there is a new run > configuration called "Python" and I've made one run config called "Hello > config" The tabbed pane looks a lot like the one on the Python->Run context > menu, but is different code because it doesn't have the location context. > There is probably some refactoring that could unify the panels, but I wanted > to do this initial cut without modifying other code. > > The code consists of two new java files and some additions to the debug > plugin's plugin.xml. What's the procedure for contributing? I'd also like > to be added as a developer to pydev. |
From: Fabio Z. <fa...@in...> - 2004-03-29 11:24:16
|
Hi all... I had some ideas on code completion (attached)... []s Fabio |
From: Bill W. <ww...@bb...> - 2004-03-27 23:38:41
|
Hi Pydev guys. As I think Dana mentioned elsewhere, I've been working on running python apps using the Run entry under the Eclipse Run menu. This supplements the current Run action and behaves more like a Java configuration. CTRL-F11 runs the last config, etc. I've attached a picture of the config type to give you an idea what I'm talking about. On the left, there is a new run configuration called "Python" and I've made one run config called "Hello config" The tabbed pane looks a lot like the one on the Python->Run context menu, but is different code because it doesn't have the location context. There is probably some refactoring that could unify the panels, but I wanted to do this initial cut without modifying other code. The code consists of two new java files and some additions to the debug plugin's plugin.xml. What's the procedure for contributing? I'd also like to be added as a developer to pydev. Thanks, Bill Wright |
From: Dana M. <dan...@ya...> - 2004-03-16 19:02:27
|
Fabio, good conversation; good points. After talking w. Aleks, I was planning to use the same strategy he uses to populate the outline view of the code. It turns out that he uses Jython to accomplish the introspection of the Python code within the editor. Even with that ability, ther eare some issues Aleks feels need addressing, for example autocompletion of anything in an import statement. One should be able to do: import os os. # <--- here a list of potential completions occurs I wasn't really interested in Jython completions anyway, so for now I don't need to work with that issue. --- Aleks Totic <a...@to...> wrote: > Here are some of the Fabio's thoughts on it. I agree that it is > tricky, that is why I did not want to dive into it. > > Aleks > > >>> Fabio wrote: > > Nice... code completion is something that I'm really missing too... > > Anyway, I have a question: How do they intend to implement it in > Python? I mean, true code completion in Python without a running > Python environment doesn't seem trivial... specially to get all > the classes on the PYTHONPATH... > > I think it shouldn't be based on Jython either, because, you > know, we might be using Python and not Jython, so we don't care > about Java classes anyway (Altough we could have 2 code > completions available, one for Jython and one for Python) > > Well, I'm just curious because I still haven't found a good way > to do it without a running shell... Statically parsing it is kind > of hard, because some simple cases like: > > Class A(object): > def a(self): pass > > Class B(object): > def b(self): pass > > aOrB = A() > aOrB. <-- should appear just a()(and maybe built-ins, like > __dict__, etc) > aOrB = B() > aOrB. <-- should appear just b()(and built-ins) > > require a lot of effort for working correctly without a running > shell... ( I don't think a running shell is a good think, because > of side effects that can happen when importing a module - I used > an editor that used that approach before and I really didn't like > it, because it crashed sometimes - later I found that it was > because I was using qt and it can only have one QApplication at > any time and the editor was reimporting the module and trying to > instanciate it more that once, so I had to change my program > because of the IDE... and this, I think can be really annoying > sometimes...) > > > Well, as I said, I'm just curious... > > []'s > > Fabio > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&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!? Yahoo! Mail - More reliable, more storage, less spam http://mail.yahoo.com |
From: Aleks T. <a...@to...> - 2004-03-15 19:41:24
|
Here are some of the Fabio's thoughts on it. I agree that it is tricky, that is why I did not want to dive into it. Aleks >>> Fabio wrote: Nice... code completion is something that I'm really missing too... Anyway, I have a question: How do they intend to implement it in Python? I mean, true code completion in Python without a running Python environment doesn't seem trivial... specially to get all the classes on the PYTHONPATH... I think it shouldn't be based on Jython either, because, you know, we might be using Python and not Jython, so we don't care about Java classes anyway (Altough we could have 2 code completions available, one for Jython and one for Python) Well, I'm just curious because I still haven't found a good way to do it without a running shell... Statically parsing it is kind of hard, because some simple cases like: Class A(object): def a(self): pass Class B(object): def b(self): pass aOrB = A() aOrB. <-- should appear just a()(and maybe built-ins, like __dict__, etc) aOrB = B() aOrB. <-- should appear just b()(and built-ins) require a lot of effort for working correctly without a running shell... ( I don't think a running shell is a good think, because of side effects that can happen when importing a module - I used an editor that used that approach before and I really didn't like it, because it crashed sometimes - later I found that it was because I was using qt and it can only have one QApplication at any time and the editor was reimporting the module and trying to instanciate it more that once, so I had to change my program because of the IDE... and this, I think can be really annoying sometimes...) Well, as I said, I'm just curious... []'s Fabio |
From: Aleks T. <a...@to...> - 2004-03-15 19:39:13
|
Hi Fabio, Dana, & Will, this is Aleks from pydev. I think that we should have a place to archive & hold techincal discussions, so I created a new mailing list: mailto:pyd...@li... This is a closed/subscribers post only mailing list, and you are all subscribed. It would be great if all our discussions were cc'd to it. My plans for the week: - more debugger work. I am trying to integrate with jpydbg right now. Looks like someone has started a remote-debugging standard project for python. It would be a nice way out of writing the whole thing myself. Aleks |