pydev-code Mailing List for PyDev for Eclipse (Page 43)
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: Karol P. \(R. Student\) <ka...@ri...> - 2005-07-18 19:26:42
|
Hey everyone. I got another patch for PyDev to compile with Java 5. This time, the = offending class was org.python.parser.PythonGrammar. Some variables are = given the name 'enum', which is a keyword in Java 5 because it has = enumerations (not just an Enumeration class). Solution? Just use iterators, as the Javadocs recommend anyway. |
From: Fabio Z. <fa...@in...> - 2005-07-15 11:57:26
|
just applied... I did only some minor changes, but it seems to work ok Karol Pietrzak (RIT Student) wrote: > Hey everyone! > > I wrote a patch to add colon skipping and bracket skipping to Pydev. > That last feature is what the Eclipse Java editor does automatically, > but here are descriptions anyway: > > 1. Colon skipping. If you have: > > def __init__(self): > > ...and your cursor if right before the end colon, you can type in ':' > and it will just put your cursor after the colon, NOT insert another > colon. This works very well with the auto-insertion of '()' and > '(self)' that Pydev does after function declarations. > > 2. Bracket skipping. In the Java editor, if you have: > > Math.random() > > ...with your cursor between the parentheses and you type in ')', you > will not get two parentheses. The cursor will just move to the > position after the right parenthesis. This patch adds this feature to > the Python editor, and it works with brackets too. > > Oh, and both (1) and (2) are configurable from the Preferences->Pydev > window (with tooltips!). > > Next up, I'm not sure what I want to do. I have a few ideas, but if > there's something someone would like to work on with me, let me know. > > Thanks! > > P.S. I apologize for the size of the patch. I also added some > javadocs to random classes. Most notably, I added the > org.apache.commons.lang.WordUtils class because it has a wrap() > function that made writing nicely-sized tooltips easy. I don't think > it'll create a licensing issue, as it's under the Apache License. But > if push comes to shove, I can remove that. > |
From: Fabio Z. <fa...@in...> - 2005-07-15 11:57:03
|
just applied it Karol Pietrzak (RIT Student) wrote: > Hey everyone. > > Attached is a patch which changes a single line of the .classpath > file. It allows Eclipse users to improve the project from CVS and > compile it without having to fix the broken link to > /org.python.pydev.core/lib/junit.jar. Instead, since Eclipse comes > with JUnit, it simply uses the one from Eclipse. > >------------------------------------------------------------------------ > >Index: .classpath >=================================================================== >RCS file: /cvsroot/pydev/org.python.pydev/.classpath,v >retrieving revision 1.12 >diff -u -r1.12 .classpath >--- .classpath 24 Jun 2005 16:09:53 -0000 1.12 >+++ .classpath 14 Jul 2005 19:22:48 -0000 >@@ -4,6 +4,6 @@ > <classpathentry kind="src" path="tests"/> > <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/> > <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> >- <classpathentry kind="lib" path="/org.python.pydev.core/lib/junit.jar"/> >+ <classpathentry kind="var" path="JUNIT_HOME/junit.jar"/> > <classpathentry kind="output" path="bin"/> > </classpath> > |
From: Karol P. \(R. Student\) <ka...@ri...> - 2005-07-14 19:29:36
|
SW5kZXg6IC5jbGFzc3BhdGgNCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0NClJDUyBmaWxlOiAvY3Zzcm9vdC9weWRldi9v cmcucHl0aG9uLnB5ZGV2Ly5jbGFzc3BhdGgsdg0KcmV0cmlldmluZyByZXZpc2lvbiAxLjEyDQpk aWZmIC11IC1yMS4xMiAuY2xhc3NwYXRoDQotLS0gLmNsYXNzcGF0aAkyNCBKdW4gMjAwNSAxNjow OTo1MyAtMDAwMAkxLjEyDQorKysgLmNsYXNzcGF0aAkxNCBKdWwgMjAwNSAxOToyMjo0OCAtMDAw MA0KQEAgLTQsNiArNCw2IEBADQogCTxjbGFzc3BhdGhlbnRyeSBraW5kPSJzcmMiIHBhdGg9InRl c3RzIi8+DQogCTxjbGFzc3BhdGhlbnRyeSBraW5kPSJjb24iIHBhdGg9Im9yZy5lY2xpcHNlLnBk ZS5jb3JlLnJlcXVpcmVkUGx1Z2lucyIvPg0KIAk8Y2xhc3NwYXRoZW50cnkga2luZD0iY29uIiBw YXRoPSJvcmcuZWNsaXBzZS5qZHQubGF1bmNoaW5nLkpSRV9DT05UQUlORVIiLz4NCi0JPGNsYXNz cGF0aGVudHJ5IGtpbmQ9ImxpYiIgcGF0aD0iL29yZy5weXRob24ucHlkZXYuY29yZS9saWIvanVu aXQuamFyIi8+DQorCTxjbGFzc3BhdGhlbnRyeSBraW5kPSJ2YXIiIHBhdGg9IkpVTklUX0hPTUUv anVuaXQuamFyIi8+DQogCTxjbGFzc3BhdGhlbnRyeSBraW5kPSJvdXRwdXQiIHBhdGg9ImJpbiIv Pg0KIDwvY2xhc3NwYXRoPg== |
From: Fabio Z. <fa...@gm...> - 2005-07-12 23:09:04
|
I agree, number 1 seems the best choice for me too. On 7/12/05, Karol Pietrzak (RIT Student) <ka...@ri...> wrote: > =20 >=20 > Fabio Zadrozny wrote: > > Waiting forward to see it... :-) > > > > p.s. I'm also forwarding it to the pydev mailing list > =20 > I was thinking parentheses auto-completion in the context of tuples. Th= e > Java Eclipse editor will remove empty parentheses if your cursor is betwe= en > them and you hit backspace. i.e., > =20 > something() > ^ cursor in between the parentheses, and you hit backspace > =20 > ...you will get... > =20 > something > =20 > It's just one of those niceties that the Java editor gives you. However= , > in Python, () is an empty tuple, and [] is an empty list. > =20 > So what does everyone think would be the best way to approach this? I s= ee > three ways so far (there's probably more). > =20 > 1. Like the Java editor, always delete the two parentheses if you have t= he > cursor between them. > 2. Never delete the two parentheses. Just delete the left parenthesis > (current, simple behavior). > 3. Sometimes delete the two parentheses, based on the context. I'm not > sure what kind of algorithm we could employ here because I couldn't think= of > an example where I _wouldn't_ want the editor to delete both parentheses = for > me. > =20 > (1) is easiest to implement and I think I prefer it, so if I get the go > ahead I'll code that up. > |
From: Karol P. \(R. Student\) <ka...@ri...> - 2005-07-12 16:06:02
|
Fabio Zadrozny wrote: > Waiting forward to see it... :-) >=20 > p.s. I'm also forwarding it to the pydev mailing list I was thinking parentheses auto-completion in the context of tuples. = The Java Eclipse editor will remove empty parentheses if your cursor is = between them and you hit backspace. i.e., something() ^ cursor in between the parentheses, and you hit backspace ...you will get... something It's just one of those niceties that the Java editor gives you. = However, in Python, () is an empty tuple, and [] is an empty list. So what does everyone think would be the best way to approach this? I = see three ways so far (there's probably more). 1. Like the Java editor, always delete the two parentheses if you have = the cursor between them. 2. Never delete the two parentheses. Just delete the left parenthesis = (current, simple behavior). 3. Sometimes delete the two parentheses, based on the context. I'm not = sure what kind of algorithm we could employ here because I couldn't = think of an example where I _wouldn't_ want the editor to delete both = parentheses for me. (1) is easiest to implement and I think I prefer it, so if I get the go = ahead I'll code that up. |
From: Karol P. \(R. Student\) <ka...@ri...> - 2005-07-12 16:04:23
|
SW5kZXg6IFB5T3JnYW5pemVJbXBvcnRzLmphdmENCj09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0NClJDUyBmaWxlOiAvY3Zz cm9vdC9weWRldi9vcmcucHl0aG9uLnB5ZGV2L3NyYy9vcmcvcHl0aG9uL3B5ZGV2L2VkaXRvci9h Y3Rpb25zL1B5T3JnYW5pemVJbXBvcnRzLmphdmEsdg0KcmV0cmlldmluZyByZXZpc2lvbiAxLjIN CmRpZmYgLXUgLXIxLjIgUHlPcmdhbml6ZUltcG9ydHMuamF2YQ0KLS0tIFB5T3JnYW5pemVJbXBv cnRzLmphdmEJMTIgQXByIDIwMDUgMTY6Mjk6NDIgLTAwMDAJMS4yDQorKysgUHlPcmdhbml6ZUlt cG9ydHMuamF2YQkxMiBKdWwgMjAwNSAxNTozNjo0NiAtMDAwMA0KQEAgLTg1LDcgKzg1LDkgQEAN CiAgICAgICAgICAgICBwdWJsaWMgaW50IGNvbXBhcmUoT2JqZWN0IG8xLCBPYmplY3QgbzIpIHsN CiAgICAgICAgICAgICAgICAgT2JqZWN0W10gYzEgPSAoT2JqZWN0W10pbzE7DQogICAgICAgICAg ICAgICAgIE9iamVjdFtdIGMyID0gKE9iamVjdFtdKW8yOw0KLSAgICAgICAgICAgICAgICByZXR1 cm4gKChJbnRlZ2VyKWMyWzBdKS5jb21wYXJlVG8oYzFbMF0pOw0KKyAgICAgICAgICAgICAgICBJ bnRlZ2VyIGkxID0gKEludGVnZXIpIGMxWzBdOw0KKyAgICAgICAgICAgICAgICBJbnRlZ2VyIGky ID0gKEludGVnZXIpIGMyWzBdOw0KKyAgICAgICAgICAgICAgICByZXR1cm4gaTIuY29tcGFyZVRv KGkxKTsNCiAgICAgICAgICAgICB9DQogCQl9KTsNCiANCkBAIC0xMDAsNyArMTAyLDkgQEANCiAg ICAgICAgICAgICBwdWJsaWMgaW50IGNvbXBhcmUoT2JqZWN0IG8xLCBPYmplY3QgbzIpIHsNCiAg ICAgICAgICAgICAgICAgT2JqZWN0W10gYzEgPSAoT2JqZWN0W10pbzE7DQogICAgICAgICAgICAg ICAgIE9iamVjdFtdIGMyID0gKE9iamVjdFtdKW8yOw0KLSAgICAgICAgICAgICAgICByZXR1cm4g KChTdHJpbmcpYzFbMV0pLmNvbXBhcmVUbyhjMlsxXSk7DQorICAgICAgICAgICAgICAgIFN0cmlu ZyBzMSA9IChTdHJpbmcpIGMxWzFdOw0KKyAgICAgICAgICAgICAgICBTdHJpbmcgczIgPSAoU3Ry aW5nKSBjMlsxXTsNCisgICAgICAgICAgICAgICAgcmV0dXJuIHMxLmNvbXBhcmVUbyhzMik7DQog ICAgICAgICAgICAgfQ0KIAkJfSk7DQogCQkNCg== |
From: Fabio Z. <fa...@gm...> - 2005-07-12 00:12:00
|
On 7/11/05, the...@op... <the...@op...> wrote: >=20 > ----- Original Message ----- > From: Fabio Zadrozny <fa...@gm...> > Date: Monday, July 11, 2005 5:19 pm > Subject: Re: parentheses autocompletion [WAS: Re: tiny PyDev javadoc patc= h (and ideas for another one)] >=20 > > To make the match, take a look at > > org.python.copiedfromeclipsesrc.PythonPairMatcher. >=20 > Ah, thanks. I'll see what I can do with that. >=20 > > As for the colon, > > you should check only if there is a colon in the next > > char, and > > not in > > the whole line, I can think of cases with comments, e.g.: > > class A: > > pass #.... : ... or even code, e.g.: if debugToggle =3D=3D 0: > > lambda a:10; > > x =3D 20 (that would not do anything, but it is valid > > code)... >=20 > Yes, good point. I just fixed that. It can now checks the next characte= r (should I care about new lines?). Not really, only document length... >=20 > > When I do things like that, with many variables, but > > fairly simple in > > the end, I like to do unit-tests, so, if you feel like doing > > it, you > > can check > > org.python.pydev.editor.PyAutoIndentStrategyTest for > > tests on the current things and extend it. >=20 > Oh, yes. I'm a fan of unit tests myself, and I'm using unit tests alread= y. >=20 > Take care, and thanks. I'll send you something once I feel comfortable s= ending it to you. >=20 Waiting forward to see it... :-) p.s. I'm also forwarding it to the pydev mailing list Cheers, Fabio > |
From: Fabio Z. <fa...@es...> - 2005-06-28 16:07:41
|
Hi All, PyDev - Python IDE (Python Development Enviroment for Eclipse) version 0.9.5 has just been released. Check the homepage (http://pydev.sourceforge.net/) for more details. Release Highlights: - File encodings now follow the python convention - Overview ruler now works - Editor is synchronized when working in multiple windows with the same file - Code folding improved - Syntax highlighting is not confused by escaped quote + triple quote anymore - Insertion of parentheses now replaces selected text - Some more bugs... Regards, -- Fabio Zadrozny ------------------------------------------------------ Software Developer ESSS - Engineering Simulation and Scientific Software www.esss.com.br PyDev - Python Development Enviroment for Eclipse pydev.sf.net pydev.blogspot.com |
From: Fabio Z. <fa...@es...> - 2005-06-08 16:43:21
|
Hi All, PyDev - Python IDE (Python Development Enviroment for Eclipse) version 0.9.4 has just been released. Check the homepage (http://pydev.sourceforge.net/) for more details. Release Highlights: - New PYTHONPATH configuration (for the whole ambient), used for running your files, PyLint, code completion... - Integrated Scott Schleiser patches for the debugger (you won't see any 'implement me' anymore!). - Integrated Heikki Toivonen patch for PyLint using the project pythonpath. - Integrated Heikki Toivonen patch for indentation after '(', '[' and '{' (if the line ends with a comma). - Some StackOverflow errors were removed from code completion. - Keybindings added for Refactoring (powered by bycicle repair man) - check the FAQ. - Some bug-fixes as usual... Regards, -- Fabio Zadrozny ------------------------------------------------------ Software Developer ESSS - Engineering Simulation and Scientific Software www.esss.com.br PyDev - Python Development Enviroment for Eclipse pydev.sf.net pydev.blogspot.com |
From: Fabio Z. <fa...@es...> - 2005-04-25 17:54:02
|
Hi All, PyDev - Python IDE (Python development enviroment for Eclipse) version 0.9.3 has just been released. Check the homepage (http://pydev.sourceforge.net/) for more details. Regards, Fabio Zadrozny ------------------------------------------------------ Software Developer ESSS - Engineering Simulation and Scientific Software www.esss.com.br PyDev - Python Development Enviroment for Eclipse pydev.sf.net pydev.blogspot.com |
From: Fabio Z. <fa...@es...> - 2005-03-31 16:48:25
|
Hi All, PyDev - Python IDE (Python development enviroment for Eclipse) version 0.9.2 has just been released. Check the homepage (http://pydev.sourceforge.net/) for more details. Regards, Fabio Zadrozny ------------------------------------------------------ Software Developer ESSS - Engineering Simulation and Scientific Software www.esss.com.br PyDev - Python Development Enviroment for Eclipse pydev.sf.net pydev.blogspot.com |
From: Phil M. <pmu...@re...> - 2005-03-02 22:43:46
|
Aleks Thanks for the reply. This looks just what I need. All the other parsers use the C/C++/Java working model manager framework, so I (wrongly) assumed that about PyDev. I'll integrate this code into the plug-in, and see if I can get a changelog parser working for PyDev/Python Many Regards Phil On Wed, 2005-03-02 at 14:17 -0800, Aleks Totic wrote: > I have not worked on pydev in a while, but I do not recall ever > touching the workingCopy class. We are not derived from the same > code base. Are you looking for a way to detect the name of the > current function underneath the cursor? We do something like this > to show hyperlinks over function names: > > IDocument doc = > pyEdit.getDocumentProvider().getDocument(pyEdit.getEditorInput()); > ITextSelection selection = (ITextSelection) > pyEdit.getSelectionProvider().getSelection(); > > Location loc = Location.offsetToLocation(doc, selection.getOffset()); > AbstractNode node = > ModelUtils.getElement(pyEdit.getPythonModel(), loc, > AbstractNode.PROP_CLICKABLE); > > Node should then contain the element you are hovering over. > > This all might be obsolete, but that's the way it looked last > time I looked at it. > > Aleks > > Phil Muldoon wrote: > > Hi guys, > > > > First let me apologize for not sending this to the list. I think my join > > list request has gone awry. > > > > Anyway. > > > > I've been asked to write a changelog parser (for the changelog eclipse > > plugin) for pydev. I currently have a C/C++ (from the CDT) parser and a > > Java Parser. This just basically finds the current function under the > > cursor. They are implemented very similarly, here is an example of a C > > parser (the Java parser is almost exactly the same). > > > > if (editor instanceof CEditor) { > > > > CEditor c_editor = (CEditor) editor; > > ITextSelection selection = > > (ITextSelection) c_editor.getSelectionProvider > > ().getSelection(); > > > > > > IEditorInput input = c_editor.getEditorInput(); > > IWorkingCopyManager manager = CUIPlugin.getDefault > > ().getWorkingCopyManager(); > > > > manager.connect(input); > > > > IWorkingCopy workingCopy = manager.getWorkingCopy(input); > > ICElement method = workingCopy.getElementAtOffset(selection > > .getOffset()); > > manager.disconnect(input); > > > > This would look exactly the same as the PyDev parser, except that I > > cannot find where to get PyDev's working copy manager. So in this code > > > > if (editor instanceof PyEdit) { > > > > PyEdit python_editor = (PyEdit) editor; > > ITextSelection selection = (ITextSelection) > > python_editor.getSelectionProvider().getSelection(); > > > > > > IEditorInput input = python_editor.getEditorInput(); > > > > IWorkingCopyManager manager = PydevPlugin.getDefault(). > > getWorkingCopyManager(); > > > > I could be looking in the wrong place for it (PydevPlugin might not be > > the appropriate place). Do either of you have any clues? > > > > Regards > > > > Phil Muldoon > > > > > |
From: Aleks T. <a...@to...> - 2005-03-02 22:17:51
|
I have not worked on pydev in a while, but I do not recall ever touching the workingCopy class. We are not derived from the same code base. Are you looking for a way to detect the name of the current function underneath the cursor? We do something like this to show hyperlinks over function names: IDocument doc = pyEdit.getDocumentProvider().getDocument(pyEdit.getEditorInput()); ITextSelection selection = (ITextSelection) pyEdit.getSelectionProvider().getSelection(); Location loc = Location.offsetToLocation(doc, selection.getOffset()); AbstractNode node = ModelUtils.getElement(pyEdit.getPythonModel(), loc, AbstractNode.PROP_CLICKABLE); Node should then contain the element you are hovering over. This all might be obsolete, but that's the way it looked last time I looked at it. Aleks Phil Muldoon wrote: > Hi guys, > > First let me apologize for not sending this to the list. I think my join > list request has gone awry. > > Anyway. > > I've been asked to write a changelog parser (for the changelog eclipse > plugin) for pydev. I currently have a C/C++ (from the CDT) parser and a > Java Parser. This just basically finds the current function under the > cursor. They are implemented very similarly, here is an example of a C > parser (the Java parser is almost exactly the same). > > if (editor instanceof CEditor) { > > CEditor c_editor = (CEditor) editor; > ITextSelection selection = > (ITextSelection) c_editor.getSelectionProvider > ().getSelection(); > > > IEditorInput input = c_editor.getEditorInput(); > IWorkingCopyManager manager = CUIPlugin.getDefault > ().getWorkingCopyManager(); > > manager.connect(input); > > IWorkingCopy workingCopy = manager.getWorkingCopy(input); > ICElement method = workingCopy.getElementAtOffset(selection > .getOffset()); > manager.disconnect(input); > > This would look exactly the same as the PyDev parser, except that I > cannot find where to get PyDev's working copy manager. So in this code > > if (editor instanceof PyEdit) { > > PyEdit python_editor = (PyEdit) editor; > ITextSelection selection = (ITextSelection) > python_editor.getSelectionProvider().getSelection(); > > > IEditorInput input = python_editor.getEditorInput(); > > IWorkingCopyManager manager = PydevPlugin.getDefault(). > getWorkingCopyManager(); > > I could be looking in the wrong place for it (PydevPlugin might not be > the appropriate place). Do either of you have any clues? > > Regards > > Phil Muldoon > > |
From: Fabio Z. <fa...@es...> - 2005-03-02 19:25:42
|
Hi All, PyDev - Python IDE (Python development enviroment for Eclipse) version 0.9.1 has just been released. You can check the homepage (http://pydev.sourceforge.net/) or my blog (http://pydev.blogspot.com/) for more details. ------------------------------------------------------ COMMENTS ON RELEASE: Content assistant improvements: - assign content assistant when assigned to variable strips the "get"; - move imports content assistant should be improved to move import closer to existant import and not to top of file; - Icons added to them; Others: - Ctrl+Shift+O: if no selection: Organizes all global imports from the file (sorts alphabetically); - Ctrl+Shift+O: if some line selection: sorts alphabetically the lines selected; - Ctrl+Shift+F: if no selection: Formats all code; - Ctrl+Shift+F: if some line selection: Formats selected code; - PyLint only blocks interface on "update results"; - the namespace in debug mode is not polluted anymore (Scott Schleiser provided the patch); - The PYTHONPATH used for debug now should be the same used in run. - Editor preferences Code Completion: - get parameters in code completion; - builtins like ' ', {}, [] should bring correct suggestions; - relative imports; - other bug-fixes; ------------------------------------------------------ Regards, Fabio Zadrozny ------------------------------------------------------ Software Developer ESSS - Engineering Simulation and Scientific Software www.esss.com.br |
From: Ferry D. <da...@ed...> - 2005-03-02 12:18:53
|
Hello List, On Tuesday 01 March 2005 13:08, Ferry Dave J=E4ckel wrote: > > This is a known problem of the debugger.... > > I would suggest you put it in the pythonpath for now... > Put what where? :) Dear me, I should learn/practice some english. Reading docs is not=20 sufficient, I have to understand them as well ;) I didn't realize that I have to set Pythonpath really twice: project=20 properties and run properties. Suddenly it dawns on me :) And debugging=20 works fine. Apologies for my incapability. Cheerio! Dave |
From: Ferry D. <da...@ed...> - 2005-03-02 10:56:57
|
Hi Fabio, and hi List, On Tuesday 01 March 2005 12:51, Fabio Zadrozny wrote: > This is a known problem of the debugger.... the cvs version is already > improved, but it's still not perfect... I like to try the cvs version, but don't know how to compile the java sources into a jar file. Looks like a java build system (build.properties), but which tool do I have to invoke with which options? Bye, Dave |
From: Ferry D. <da...@ed...> - 2005-03-01 12:08:30
|
Hello Fabio, On Tuesday 01 March 2005 12:51, Fabio Zadrozny wrote: > This is a known problem of the debugger.... > I would suggest you put it in the pythonpath for now... Put what where? :) I have set my (eclipse) PYTHONPATH to "reset pythonpath" (seems to be o.k.) plus full path to my program (add item). Is this what you meant? The debugger still has the wrong/missing path and imports still fail (after restarting eclipse). Cheerio, Dave > >Runnig a script from eclipse, my sys.path looks like > >['/my/script/is/here/script.py', ...] > >but running at with the debugger it looks like > >['/usr/local/eclipse/plugins/org.python.pydev.debug_0.9.0/pysrc', ...] > >and no local path at all. Of course imports of local modules fail in > > pydevd, line 713 on execfile(). :( |
From: Fabio Z. <fa...@in...> - 2005-03-01 11:49:53
|
Hi Dave, This is a known problem of the debugger.... the cvs version is already=20 improved, but it's still not perfect...I would suggest you put it in the=20 pythonpath for now... It will, however, be corrected in the future, I just don't have any=20 dates for it... cheers, Fabio Ferry Dave J=E4ckel wrote: >Hello list, > >I'm on my first steps on eclipse and pydev. It seems to be great (e.g. c= ode=20 >completion, outline...), but I have problems with the debugger. >I hope this is the right place to ask for help. > >Runnig a script from eclipse, my sys.path looks like > >['/my/script/is/here/script.py', ...] > >but running at with the debugger it looks like > >['/usr/local/eclipse/plugins/org.python.pydev.debug_0.9.0/pysrc', ...] > >and no local path at all. Of course imports of local modules fail in pyd= evd,=20 >line 713 on execfile(). :( > >I'm using python 2.3.5 Debian with eclipse 3.0.1, Java 1.5 and PyDev 0.9= . >I've double and tripple checked PYTHONPATH, options for 'run' and debug,= and=20 >searched the forums, mailingslists and FAQ for similar problems, but=20 >couldn't find one. What am I doing wrong? > >Regards, > Dave J=E4ckel > >P.S.: Please cc to my address directly, I'm not subscribed to this list. > > >------------------------------------------------------- >SF email is sponsored by - The IT Product Guide >Read honest & candid reviews on hundreds of IT Products from real users. >Discover which products truly live up to the hype. Start reading now. >http://ads.osdn.com/?ad_ide95&alloc_id=14396&op=3Dclick >_______________________________________________ >Pydev-code mailing list >Pyd...@li... >https://lists.sourceforge.net/lists/listinfo/pydev-code > > > =20 > |
From: Ferry D. <da...@ed...> - 2005-03-01 11:25:58
|
Hello list, I'm on my first steps on eclipse and pydev. It seems to be great (e.g. code= =20 completion, outline...), but I have problems with the debugger. I hope this is the right place to ask for help. Runnig a script from eclipse, my sys.path looks like ['/my/script/is/here/script.py', ...] but running at with the debugger it looks like ['/usr/local/eclipse/plugins/org.python.pydev.debug_0.9.0/pysrc', ...] and no local path at all. Of course imports of local modules fail in pydevd= ,=20 line 713 on execfile(). :( I'm using python 2.3.5 Debian with eclipse 3.0.1, Java 1.5 and PyDev 0.9. I've double and tripple checked PYTHONPATH, options for 'run' and debug, an= d=20 searched the forums, mailingslists and FAQ for similar problems, but=20 couldn't find one. What am I doing wrong? Regards, Dave J=E4ckel P.S.: Please cc to my address directly, I'm not subscribed to this list. |
From: Jeff P. <jp...@re...> - 2005-02-09 21:27:58
|
On Wed, 2005-02-09 at 08:16, Fabio Zadrozny wrote: > Hi Jeff, > > I'd like to add it to the eclipse repository, so, if you pass it to me, > I will add it. > > I never used a releng plug-in before, so, is there anything special do > you think I should know about it? > > Regards, The releng plug-in is pretty simple. It consists of a map file, which specifies the cvs checkout information, and a couple xml files defining ant targets for the build. The overall idea is an automated build process which uses a head-less eclipse to perform the build. >From the releng plug-in directory, you could invoke the process like this for example (assuming eclipse is installed in /usr/share/eclipse): export SDK='/usr/share/eclipse' java -Duser.home=. \ -cp $SDK/startup.jar \ org.eclipse.core.launcher.Main \ -application org.eclipse.ant.core.antRunner \ -buildfile build.xml \ -Dpde.build.scripts=$SDK/plugins/org.eclipse.pde.build_3.0.1/scripts \ -DbaseLocation=$SDK \ -DjavacFailOnError=true (the SDK variable should point to the eclipse base install on your particular system and the pde.build.scripts should have the proper path to the version of eclipse you are using) The ant targets and variable definitions can be changed to suit your needs. The customTargets.xml file attached is set for x86 linux/gtk. This type of system can be useful for automated nightly/weekly builds but it is limited to machines that have the target version of eclipse installed. If you think it might be useful to you thats great, though I won't be insulted if you decide you don't need it ;) here's a link with some more info on automated PDE build. http://dev.eclipse.org/viewcvs/index.cgi/~checkout~/pde-build-home/articles/Automated%20Builds/article.html?rev=HEAD&content-type=text/html -- Jeff Pound Red Hat Inc. |
From: Fabio Z. <fa...@es...> - 2005-02-09 12:15:24
|
Hi Jeff, I'd like to add it to the eclipse repository, so, if you pass it to me, I will add it. I never used a releng plug-in before, so, is there anything special do you think I should know about it? Regards, -- Fabio Zadrozny ------------------------------------------------------ Software Developer ESSS - Engineering Simulation and Scientific Software www.esss.com.br |
From: Jeff P. <jp...@re...> - 2005-02-08 18:17:20
|
I have written a releng plug-in for the pydev plug-in. If your interested in adding this to the pydev repository id be more than happy to send it your way. For those of you who are not familiar with the eclipse releng process; Its essentially a plug-in for automated building of features/plug-ins. It defines the attributes needed to check out the source from a repository (repo and tags can be specified in the map file) and perform a build using ant targets. Thanks, -- Jeff Pound Red Hat Inc. |
From: Fabio Z. <fa...@es...> - 2005-02-03 17:56:27
|
Hi All, PyDev - Python IDE (Python development enviroment for Eclipse) version 0.9.0 has just been released. This release supports python 2.4 and has PyLint 0.6 integrated. Code completion had some improvements too. Check the homepage for more details (http://pydev.sourceforge.net/). Regards, Fabio Zadrozny ------------------------------------------------------ Software Developer ESSS - Engineering Simulation and Scientific Software www.esss.com.br |
From: Fabio Z. <fa...@es...> - 2005-01-21 11:30:41
|
Hi All, PyDev - Python IDE (Python development enviroment for Eclipse) version 0.8.5 has just been released. This release has as its main feature a new Code Completion. Check the homepage for more details (http://pydev.sourceforge.net/). Other things in the release include some bugs corrected, and some patches: - Scott Schlesier has provided a patch to configure the editor background and color of the highlighted line. - Sebastian Tusk provided a patch to see watch expressions on debug. Hope you enjoy it... Fabio Zadrozny ------------------------------------------------------ Software Developer ESSS - Engineering Simulation and Scientific Software www.esss.com.br |