pydev-code Mailing List for PyDev for Eclipse (Page 38)
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...@gm...> - 2006-04-24 16:59:15
|
Hi All, Pydev and Pydev Extensions 1.0.6 have been released Check http://www.fabioz.com/pydev for details on Pydev Extensions and http://pydev.sf.net for details on Pydev Release Highlights in Pydev Extensions: ----------------------------------------------------------------- - New Feature: Show hierarchy (F4) -- Still in a beta state (currently only looks for subclasses on the same project). - Analysis happens in a Thread, so, you should now always have the latest parse without any halts (this happened only when the option was set to analyze only on save). - Class variable marked as error when self ommitted - when an undefined import is found within a try..except ImportError, it will not be reported. - Allow changing the keybinding for activating the Interactive Console (Ctrl+Enter) - Added a simple text-search that looks for in all .py and .pyw files (will be improved in the future to make a real python-like search). - The keywords that match the 'simple' keywords completion do not show up. Release Highlights in Pydev: ---------------------------------------------- - Assign variables to attributes (Ctrl+2+a): Contributed by Joel Hedlund (this is the first contribution using the new jython scripting engine). - 3 minor 'quirks' were fixed in the indentation engine - The debugger had some changes (so, if you had halts with it, please try i= t again). - Allow changing the keybinding for activating the Find next problem (Ctrl+.) - The debugger step-return had its behaviour changed. - Additional scripts location added to pythonpath in the jython scripting engine - Transversal of nested references improved - Fixed problems with compiled modules when they had 'nested' module structures (e.g.: wx.glcanvas) What is PyDev? --------------------------- PyDev is a plugin that enables users to use Eclipse for Python and Jython development -- making Eclipse a first class Python IDE -- It comes with man= y goodies such as code completion, syntax highlighting, syntax analysis, refactor, debug and many others. Cheers, -- Fabio Zadrozny ------------------------------------------------------ Software Developer ESSS - Engineering Simulation and Scientific Software http://www.esss.com.br Pydev Extensions http://www.fabioz.com/pydev Pydev - Python Development Enviroment for Eclipse http://pydev.sf.net http://pydev.blogspot.com |
From: Don T. <nos...@gm...> - 2006-04-24 16:09:52
|
Fabio Zadrozny wrote: > > Actually, I think that putting the True/False to be recognized as > globals in the preferences would be better... Hmmm... By this I think that you mean: Window -> Preferences -> Pydev Extensions -> Undefined and then in "Consider the following names as globals: ": "_, True, False" This certainly works but unless Pydev extensions makes this the default setting you are depending upon everybody updating this entry if they want to get rid of these error messages. Then, if they happen to be using Python 2.3 which does not define True and False, Pydev extensions would miss genuinely undefined True/False. Not a big deal, I suppose, but what do you think of using: try: True, False #@UndefinedVariable except NameError: (True, False) = (1, 0) Don. |
From: Fabio Z. <fa...@gm...> - 2006-04-24 15:29:25
|
Well, actually, now that you mentioned it, maybe just putting: True, False =3D 1,0 in the start of the script would be enough... Cheers, Fabio On 4/24/06, Don & Sue - pi...@ca... <pi...@ca...> wrote: > > Fabio Zadrozny wrote: > > > > > Actually, I think that putting the True/False to be recognized as > > globals in the preferences would be better... > > Hmmm... > > By this I think that you mean: > > Window -> Preferences -> Pydev Extensions -> Undefined > > and then in "Consider the following names as globals: ": > "_, True, False" > > This certainly works but unless Pydev extensions makes this the default > setting you are depending upon everybody updating this entry if they > want to get rid of these error messages. Then, if they happen to be > using Python 2.3 which does not define True and False, Pydev extensions > would miss genuinely undefined True/False. > > Not a big deal, I suppose, but what do you think of using: > > try: > True, False #@UndefinedVariable > except NameError: > (True, False) =3D (1, 0) > > > Don. > > > > > > ------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronim= o > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat= =3D121642 > _______________________________________________ > pydev-code mailing list > pyd...@li... > https://lists.sourceforge.net/lists/listinfo/pydev-code > |
From: Don & S. - <pi...@ca...> - 2006-04-24 15:20:55
|
Fabio Zadrozny wrote: > > Actually, I think that putting the True/False to be recognized as > globals in the preferences would be better... Hmmm... By this I think that you mean: Window -> Preferences -> Pydev Extensions -> Undefined and then in "Consider the following names as globals: ": "_, True, False" This certainly works but unless Pydev extensions makes this the default setting you are depending upon everybody updating this entry if they want to get rid of these error messages. Then, if they happen to be using Python 2.3 which does not define True and False, Pydev extensions would miss genuinely undefined True/False. Not a big deal, I suppose, but what do you think of using: try: True, False #@UndefinedVariable except NameError: (True, False) = (1, 0) Don. |
From: Keith J. <KRJ...@lb...> - 2006-04-23 07:41:41
|
Fabio, Thanks for your help. I can certainly wait to try this again until you release the new version. cheers, --keith On Apr 22, 2006, at 3:32 AM, Fabio Zadrozny wrote: > Well, I took another look at the code that did the binding and I > was doing it in a 'non-standard' way for 1.0.5. I've already > changed it for 1.0.6 to use the 'default' binding mechanism, > providing also a way for you to change that keybinding if you want. > > So, if all but the interactive console work, I'd wait for 1.0.6, as > I believe it could be something related to the 'non-standard' > binding mechanism I was using. > > I plan on releasing it at the beginning of the next week. > > Cheers, > > Fabio > > On 4/21/06, Keith Jackson <KRJ...@lb...> wrote: > Hi Fabio, > Well, I tried doing a complete clean install and I'm still seeing > the same behavior. Any other suggestions? > thanks, > --keith > > On Apr 21, 2006, at 4:41 PM, Fabio Zadrozny wrote: > >> Hi Keith, >> >> Well, this could be a sign of a corrupt install... I don't know >> why, but sometimes it seems that Eclipse gets confused when >> updating from different update sites, so, some reports point that >> removing all pydev versions and reinstalling the latest should work. >> >> Cheers, >> >> Fabio >> >> On 4/21/06, Keith Jackson < krj...@lb...> wrote: >> I'm running into a problem getting the interactive console to start >> when running eclise on OSX. I've got the latest versions of eclipse, >> pydev, and pydev extensions installed. I hit ctr+enter and nothing >> happens. I've checked that the path to the python executable is set >> correctly. Everything else seems to be working fine for editing >> python code. I'm really unsure how to debug this, since I don't get >> any error output or anything. Any suggestions would be greatly >> appreciated. >> thx, >> --keith >> --------------------------------------------------------------------- >> --- >> -------------------------------- >> Keith R. Jackson email: >> KRJ...@lb... >> MS: 50B-2239 phone: >> 510-486-4401 >> Lawrence Berkeley National Lab url: http://www-itg.lbl.gov/ >> ~kjackson/ >> --------------------------------------------------------------------- >> --- >> ---------------------------------- >> >> >> >> >> ------------------------------------------------------- >> Using Tomcat but need to do more? Need to support web services, >> security? >> Get stuff done quickly with pre-integrated technology to make your >> job easier >> Download IBM WebSphere Application Server v.1.0.1 based on Apache >> Geronimo >> http://sel.as-us.falkag.net/sel? >> cmd=lnk&kid=120709&bid=263057&dat=121642 >> _______________________________________________ >> pydev-code mailing list >> pyd...@li... >> https://lists.sourceforge.net/lists/listinfo/pydev-code >> > > ---------------------------------------------------------------------- > ---------------------------------- > Keith R. Jackson email: > KRJ...@lb... > MS: 50B-2239 phone: > 510-486-4401 > Lawrence Berkeley National Lab url: http://www-itg.lbl.gov/ > ~kjackson/ > ---------------------------------------------------------------------- > ------------------------------------ > > > ------------------------------------------------------------------------ -------------------------------- Keith R. Jackson email: KRJ...@lb... MS: 50B-2239 phone: 510-486-4401 Lawrence Berkeley National Lab url: http://www-itg.lbl.gov/ ~kjackson/ ------------------------------------------------------------------------ ---------------------------------- |
From: Fabio Z. <fa...@gm...> - 2006-04-22 10:32:36
|
Well, I took another look at the code that did the binding and I was doing it in a 'non-standard' way for 1.0.5. I've already changed it for 1.0.6 to use the 'default' binding mechanism, providing also a way for you to change that keybinding if you want. So, if all but the interactive console work, I'd wait for 1.0.6, as I believe it could be something related to the 'non-standard' binding mechanism I was using. I plan on releasing it at the beginning of the next week. Cheers, Fabio On 4/21/06, Keith Jackson <KRJ...@lb...> wrote: > > Hi Fabio,Well, I tried doing a complete clean install and I'm still seein= g > the same behavior. Any other suggestions? > thanks, > --keith > > On Apr 21, 2006, at 4:41 PM, Fabio Zadrozny wrote: > > Hi Keith, > > Well, this could be a sign of a corrupt install... I don't know why, but > sometimes it seems that Eclipse gets confused when updating from differen= t > update sites, so, some reports point that removing all pydev versions and > reinstalling the latest should work. > > Cheers, > > Fabio > > On 4/21/06, Keith Jackson <krj...@lb...> wrote: > > > > I'm running into a problem getting the interactive console to start > > when running eclise on OSX. I've got the latest versions of eclipse, > > pydev, and pydev extensions installed. I hit ctr+enter and nothing > > happens. I've checked that the path to the python executable is set > > correctly. Everything else seems to be working fine for editing > > python code. I'm really unsure how to debug this, since I don't get > > any error output or anything. Any suggestions would be greatly > > appreciated. > > thx, > > --keith > > -----------------------------------------------------------------------= - > > -------------------------------- > > Keith R. Jackson email: > > KRJ...@lb... > > MS: 50B-2239 phone: 510-486-440= 1 > > Lawrence Berkeley National Lab url: http://www-itg.lbl.gov/ > > ~kjackson/ > > -----------------------------------------------------------------------= - > > ---------------------------------- > > > > > > > > > > ------------------------------------------------------- > > Using Tomcat but need to do more? Need to support web services, > > security? > > Get stuff done quickly with pre-integrated technology to make your job > > easier > > Download IBM WebSphere Application Server v.1.0.1 based on Apache > > Geronimo > > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat= =3D121642 > > _______________________________________________ > > pydev-code mailing list > > pyd...@li... > > https://lists.sourceforge.net/lists/listinfo/pydev-code > > > > > > -------------------------------------------------------------------------= ------------------------------- > Keith R. Jackson email: > KRJ...@lb... > MS: 50B-2239 phone: 510-486-4401 > Lawrence Berkeley National Lab url: > http://www-itg.lbl.gov/~kjackson/ <http://www-itg.lbl.gov/%7Ekjackson/> > > -------------------------------------------------------------------------= --------------------------------- > > > |
From: Keith J. <KRJ...@lb...> - 2006-04-22 02:42:43
|
Hi Fabio, Well, I tried doing a complete clean install and I'm still seeing the same behavior. Any other suggestions? thanks, --keith On Apr 21, 2006, at 4:41 PM, Fabio Zadrozny wrote: > Hi Keith, > > Well, this could be a sign of a corrupt install... I don't know > why, but sometimes it seems that Eclipse gets confused when > updating from different update sites, so, some reports point that > removing all pydev versions and reinstalling the latest should work. > > Cheers, > > Fabio > > On 4/21/06, Keith Jackson <krj...@lb...> wrote: > I'm running into a problem getting the interactive console to start > when running eclise on OSX. I've got the latest versions of eclipse, > pydev, and pydev extensions installed. I hit ctr+enter and nothing > happens. I've checked that the path to the python executable is set > correctly. Everything else seems to be working fine for editing > python code. I'm really unsure how to debug this, since I don't get > any error output or anything. Any suggestions would be greatly > appreciated. > thx, > --keith > ---------------------------------------------------------------------- > -- > -------------------------------- > Keith R. Jackson email: > KRJ...@lb... > MS: 50B-2239 phone: > 510-486-4401 > Lawrence Berkeley National Lab url: http://www-itg.lbl.gov/ > ~kjackson/ > ---------------------------------------------------------------------- > -- > ---------------------------------- > > > > > ------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, > security? > Get stuff done quickly with pre-integrated technology to make your > job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > http://sel.as-us.falkag.net/sel? > cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > pydev-code mailing list > pyd...@li... > https://lists.sourceforge.net/lists/listinfo/pydev-code > ------------------------------------------------------------------------ -------------------------------- Keith R. Jackson email: KRJ...@lb... MS: 50B-2239 phone: 510-486-4401 Lawrence Berkeley National Lab url: http://www-itg.lbl.gov/ ~kjackson/ ------------------------------------------------------------------------ ---------------------------------- |
From: Fabio Z. <fa...@gm...> - 2006-04-21 23:41:19
|
Hi Keith, Well, this could be a sign of a corrupt install... I don't know why, but sometimes it seems that Eclipse gets confused when updating from different update sites, so, some reports point that removing all pydev versions and reinstalling the latest should work. Cheers, Fabio On 4/21/06, Keith Jackson <krj...@lb...> wrote: > > I'm running into a problem getting the interactive console to start > when running eclise on OSX. I've got the latest versions of eclipse, > pydev, and pydev extensions installed. I hit ctr+enter and nothing > happens. I've checked that the path to the python executable is set > correctly. Everything else seems to be working fine for editing > python code. I'm really unsure how to debug this, since I don't get > any error output or anything. Any suggestions would be greatly > appreciated. > thx, > --keith > ------------------------------------------------------------------------ > -------------------------------- > Keith R. Jackson email: > KRJ...@lb... > MS: 50B-2239 phone: 510-486-4401 > Lawrence Berkeley National Lab url: http://www-itg.lbl.gov/ > ~kjackson/ > ------------------------------------------------------------------------ > ---------------------------------- > > > > > ------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronim= o > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat= =3D121642 > _______________________________________________ > pydev-code mailing list > pyd...@li... > https://lists.sourceforge.net/lists/listinfo/pydev-code > |
From: Keith J. <krj...@lb...> - 2006-04-21 23:01:16
|
I'm running into a problem getting the interactive console to start when running eclise on OSX. I've got the latest versions of eclipse, pydev, and pydev extensions installed. I hit ctr+enter and nothing happens. I've checked that the path to the python executable is set correctly. Everything else seems to be working fine for editing python code. I'm really unsure how to debug this, since I don't get any error output or anything. Any suggestions would be greatly appreciated. thx, --keith ------------------------------------------------------------------------ -------------------------------- Keith R. Jackson email: KRJ...@lb... MS: 50B-2239 phone: 510-486-4401 Lawrence Berkeley National Lab url: http://www-itg.lbl.gov/ ~kjackson/ ------------------------------------------------------------------------ ---------------------------------- |
From: Fabio Z. <fa...@gm...> - 2006-04-21 11:41:53
|
Hi Jonathan, I'm not sure of all the way to do it, so, I'll present some of the steps I'= d consider the first ones for doing it: - Create a sub-class of PyEdit that would be actually used when recognizing python in html - Create a PartitionScanner to separate what is html and what is python -- this class is used in Eclipse so that it can interpret each part in a different way. The current partitioner ( org.python.pydev.editor.PyPartitionScanner) separates comments, literals, backquotes and the code itself. You'd need to connect this partitioner with the new class you created as the editor for that... Maybe you'd should actually create something as an AbstractPyEdit and make PyEdit and that new editor you're creating subclass, so that you could make those things as setting the partitioner, adding other custom actions, etc. Well, those would be the first steps... As you said it's nontrivial, but no= t impossible. So, if you're willing to do it, I think it can be worked out! Another thing is that I think you should create a new plugin (something as org.python.pydev.embeddedpython -- or maybe there's a better name) to put the classes related to that. I guess that you'd also need a background to know the basic infrastructure of the plugin (how's the editor created, what is a partitioner, etc). The place I'd reccomend for that is the Eclipse FAQ: http://wiki.eclipse.org/index.php/Eclipse_FAQs. Cheers, Fabio On 4/20/06, Jonathan Ellis <jon...@ut...> wrote: > > How hard would it be to get PyDev to recognize python code embedded in > html, a la Spyce or mod_python's psp? > > I imagine it's nontrivial, but if it touches a relatively small number of > modules I'm kind of inclined to try. :) > > -- > Jonathan Ellis > http://spyced.blogspot.com > |
From: Jonathan E. <jon...@ut...> - 2006-04-21 02:17:15
|
How hard would it be to get PyDev to recognize python code embedded in html= , a la Spyce or mod_python's psp? I imagine it's nontrivial, but if it touches a relatively small number of modules I'm kind of inclined to try. :) -- Jonathan Ellis http://spyced.blogspot.com |
From: Fabio Z. <fa...@gm...> - 2006-04-19 16:27:28
|
On 4/19/06, Joel Hedlund <yo...@if...> wrote: > > Hi! > > Would it be a good idea to add the "location of additional jydev scripts" > to > the PYTHONPATH for pydev jython scripts by default? That way it would be > easier > to put commonly used functionality for pydev scripting (such as your > jython dir > utils) in their own modules. > > This is my sys.path in pydev jython scripts: > ['.', '/usr/local/lib/eclipse/plugins/org.python.pydev.jython_1.0.4/Lib', > '/usr/local/lib/eclipse/plugins/org.python.pydev.jython_1.0.4/jysrc'] Sure... could you open a 'bug' for that, so that I don't forget to do it when I do get up to the point of doing it? Cheers, Fabio |
From: Fabio Z. <fa...@gm...> - 2006-04-19 16:24:30
|
On 4/19/06, Joel Hedlund <yo...@if...> wrote: > > Hi! > > From my assign params to attribs script: > > # 'onSave' can be added to the list for developing purposes. > if cmd in ['onCreateActions', 'onSave']: > declare_lots_of_variables_and_stuff > > Using 'onSave' in this manner isn't terribly clever, is it? > > Say that I delclare a variable and use it in a bunch of places, save and > run > and discover an error. Say that in the process of fixing the error I > change the > variable, but forget to change it *everywhere*. When I save and retry, th= e > error may seem to be fixed, because the old value is still in memory and > does > not cause a NameError or such until I restart the editor. > > Or is there something that I missed? > > The reason I added 'onSave' for development is pure laziness. It's quicke= r > to > save-to-update than to restart-to-update. Is there an easy way of > provoking an > editor restart in eclipse/pydev, so that the scripting namespace is > cleared? As > you already have pointed out, I should take care not to mess around with > globals and to be careful to not use stuff imported to other scripts, but > is > there anything else I should do to avoid this pitfall that I seem to fall > into > again and again? Well, currently there is not a 'reload' scripts, but I guess there's a better way: ... #the code below can be uncommented when in debug mode to reload things when needed. #if cmd =3D=3D 'onSave': # from org.python.pydev.jython import JythonPlugin #@UnresolvedImport # editor.pyEditScripting.interpreter =3D JythonPlugin.newPythonInterpret= er () if cmd =3D=3D 'onCreateActions': import re from java.lang import StringBuffer from org.eclipse.jface.action import Action #@UnresolvedImport ... Or if you feel like doing it, you could probably create a script that recreated the interpreter when requested. Cheers, Fabio |
From: Fabio Z. <fa...@gm...> - 2006-04-19 15:35:59
|
Hi Christian, When I want to debug, I want to use F5 to set breakpoints, like in Delphi. > > But when I try to set F5 to this function it is not working. > > Ok, then I trying with Ctrl+B. And that is also not working !!! > > I set Ctrl+B and F5 in every scope that possible... and it is not > working too ! Currently, there are 2 ways of setting a breakpoint: - With the context-menu: Ctrl+F10 - Double-clicking the left ruler In debug mode I experienced same effect. > > I trying with use menu to toggle breakpoint. > But main menu (Run, Toggle Breakpoint) is disabled too. Why ? What I do > wrong ? You did nothing wrong... It is just not implemented. You should add a feature request for that if you want it. > This errormessage showed anywhere in the output, not in the end of > console ! > ... > > Why ? > This happens because the console in Eclipse is asynchronous, so, it might get something from one part and something else from another... You can try to talk with the Eclipse guys at Eclipse.org and see if they would change this behaviour. Cheers, Fabio |
From: Fabio Z. <fa...@gm...> - 2006-04-19 15:15:11
|
> > Is there a way of determining the pydev version from within a pydev Jytho= n > script? Humm, I'm not sure about the 'correct' way to do this, but I guess you coul= d do that from the install dir... >>from org.python.pydev.plugin import PydevPlugin #@UnresolvedImport >>p =3D PydevPlugin.getDefault() >>print p.getBundle().getLocation() update@plugins/org.python.pydev_1.0.5.1/ That could provide cleaner code for bug workarounds, I think. > > For example, if you'd see something like this in a script: > > if version < (1,0,6): > do_strange_and_possibly_conditional_stuff > > you'd probably not get confused by the strange stuff since it quite > obviously > is a workaround for problems in earlier versions. > > Cheers! > /Joel > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting > language > that extends applications into web and mobile media. Attend the live > webcast > and join the prime developer group breaking into this new coding > territory! > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D110944&bid=3D241720&dat= =3D121642 > _______________________________________________ > pydev-code mailing list > pyd...@li... > https://lists.sourceforge.net/lists/listinfo/pydev-code > |
From: Joel H. <yo...@if...> - 2006-04-19 12:53:22
|
Hi! From my assign params to attribs script: # 'onSave' can be added to the list for developing purposes. if cmd in ['onCreateActions', 'onSave']: declare_lots_of_variables_and_stuff Using 'onSave' in this manner isn't terribly clever, is it? Say that I delclare a variable and use it in a bunch of places, save and run and discover an error. Say that in the process of fixing the error I change the variable, but forget to change it *everywhere*. When I save and retry, the error may seem to be fixed, because the old value is still in memory and does not cause a NameError or such until I restart the editor. Or is there something that I missed? The reason I added 'onSave' for development is pure laziness. It's quicker to save-to-update than to restart-to-update. Is there an easy way of provoking an editor restart in eclipse/pydev, so that the scripting namespace is cleared? As you already have pointed out, I should take care not to mess around with globals and to be careful to not use stuff imported to other scripts, but is there anything else I should do to avoid this pitfall that I seem to fall into again and again? Thanks a bunch for your help! Take care! /Joel Joel Hedlund wrote: > Hi! > > Would it be a good idea to add the "location of additional jydev scripts" to > the PYTHONPATH for pydev jython scripts by default? That way it would be easier > to put commonly used functionality for pydev scripting (such as your jython dir > utils) in their own modules. > > This is my sys.path in pydev jython scripts: > ['.', '/usr/local/lib/eclipse/plugins/org.python.pydev.jython_1.0.4/Lib', > '/usr/local/lib/eclipse/plugins/org.python.pydev.jython_1.0.4/jysrc'] > > '.' in this case is my home dir. > > Cheers! > /Joel Hedlund > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting language > that extends applications into web and mobile media. Attend the live webcast > and join the prime developer group breaking into this new coding territory! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > _______________________________________________ > pydev-code mailing list > pyd...@li... > https://lists.sourceforge.net/lists/listinfo/pydev-code |
From: Joel H. <yo...@if...> - 2006-04-19 12:29:54
|
Hi! Would it be a good idea to add the "location of additional jydev scripts" to the PYTHONPATH for pydev jython scripts by default? That way it would be easier to put commonly used functionality for pydev scripting (such as your jython dir utils) in their own modules. This is my sys.path in pydev jython scripts: ['.', '/usr/local/lib/eclipse/plugins/org.python.pydev.jython_1.0.4/Lib', '/usr/local/lib/eclipse/plugins/org.python.pydev.jython_1.0.4/jysrc'] '.' in this case is my home dir. Cheers! /Joel Hedlund |
From: Joel H. <yo...@if...> - 2006-04-19 12:07:20
|
Hi! Is there a way of determining the pydev version from within a pydev Jython script? That could provide cleaner code for bug workarounds, I think. For example, if you'd see something like this in a script: if version < (1,0,6): do_strange_and_possibly_conditional_stuff you'd probably not get confused by the strange stuff since it quite obviously is a workaround for problems in earlier versions. Cheers! /Joel |
From: Joel H. <yo...@if...> - 2006-04-19 11:58:22
|
Hi! > Didn't find any problems this time... checked with docstrings, kwargs, > defaults, end of doc, etc. Cool. :-) > The only observation is that code-analysis complained about an unused > variable -- the first sCurrentLine = oSelection.getCursorLineContents(), in > the run method, as you make the same assignment some lines below before > using it again. Ok. The first one is a leftover of sorts. I've deleted it now. Thanks for pointing me to it! Let's give it a few days to let people (Don?) speak their minds before I post the definitive v1.0.0 to the list? > So, what do you (all) think about which would be the best way to make those > scripts available... I was thinking something as putting them (with the > authors permission) toghether with the pydev distribution... > The authors name would then appear on the script itself and in a brief help > in the homepage toghether with an explanation on how the script works. Seems like an excellent idea. > Joel: what do you think about showing as the first script in that list? ;-) Fine by me. :-) Fabio Zadrozny wrote: > Hi Joel, very nice!! > > Didn't find any problems this time... checked with docstrings, kwargs, > defaults, end of doc, etc. > The only observation is that code-analysis complained about an unused > variable -- the first sCurrentLine = oSelection.getCursorLineContents(), in > the run method, as you make the same assignment some lines below before > using it again. > > So, what do you (all) think about which would be the best way to make those > scripts available... I was thinking something as putting them (with the > authors permission) toghether with the pydev distribution... > The authors name would then appear on the script itself and in a brief help > in the homepage toghether with an explanation on how the script works. > > Joel: what do you think about showing as the first script in that list? ;-) > > Cheers, > > Fabio > > On 4/19/06, Joel Hedlund <yo...@if...> wrote: > >>Hi! >> >>New version of my script here. This time I feel it's good enough to call >>an >>alpha (comments still appreciated, of course). >> >> >>>I installed and played a little with your script - looking good. >> >>Thanks! >> >> >>>Since I am congenitally unable to accept any compiler error messages >> >>:-) >> >> >>> document = document #@UndefinedVariable >> >>If I used a global variable named 'document' in my previous version it was >>most >>likely because of involuntary namespace pollution, and I hope the new >>version >>is free of it. >> >>Thanks for your time checking my script out! >>/Joel Hedlund >> >> >> > > |
From: Christian S. <dur...@ma...> - 2006-04-19 11:45:38
|
Hi ! Dear Eclipse-PyDev developers ! 1.) I use eclipse to dev. Python code. I use pydev extension. I have one very big problem with it. When I want to debug, I want to use F5 to set breakpoints, like in Delphi. But when I try to set F5 to this function it is not working. Ok, then I trying with Ctrl+B. And that is also not working !!! I set Ctrl+B and F5 in every scope that possible... and it is not working too ! In debug mode I experienced same effect. I trying with use menu to toggle breakpoint. But main menu (Run, Toggle Breakpoint) is disabled too. Why ? What I do wrong ? Only I set/remove the breakpoint with the doubleclick in next to the line number. 2.) When I run a python program, the Eclipse catch it's result. And when this result have errormessage (because the code is buggy), this message is signed with red font. But this errormessage showed anywhere in the output, not in the end of console ! Like this: ... someoutput exception message someoutput ... not: ... someoutput someoutput ... exception message Why ? Thanx for help: dd |
From: Fabio Z. <fa...@gm...> - 2006-04-19 10:50:58
|
Hi Joel, very nice!! Didn't find any problems this time... checked with docstrings, kwargs, defaults, end of doc, etc. The only observation is that code-analysis complained about an unused variable -- the first sCurrentLine =3D oSelection.getCursorLineContents(), = in the run method, as you make the same assignment some lines below before using it again. So, what do you (all) think about which would be the best way to make those scripts available... I was thinking something as putting them (with the authors permission) toghether with the pydev distribution... The authors name would then appear on the script itself and in a brief help in the homepage toghether with an explanation on how the script works. Joel: what do you think about showing as the first script in that list? ;-) Cheers, Fabio On 4/19/06, Joel Hedlund <yo...@if...> wrote: > > Hi! > > New version of my script here. This time I feel it's good enough to call > an > alpha (comments still appreciated, of course). > > > I installed and played a little with your script - looking good. > > Thanks! > > > Since I am congenitally unable to accept any compiler error messages > > :-) > > > document =3D document #@UndefinedVariable > > If I used a global variable named 'document' in my previous version it wa= s > most > likely because of involuntary namespace pollution, and I hope the new > version > is free of it. > > Thanks for your time checking my script out! > /Joel Hedlund > > > |
From: Joel H. <yo...@if...> - 2006-04-19 07:40:05
|
Hi! New version of my script here. This time I feel it's good enough to call an alpha (comments still appreciated, of course). > I installed and played a little with your script - looking good. Thanks! > Since I am congenitally unable to accept any compiler error messages :-) > document = document #@UndefinedVariable If I used a global variable named 'document' in my previous version it was most likely because of involuntary namespace pollution, and I hope the new version is free of it. Thanks for your time checking my script out! /Joel Hedlund |
From: Fabio Z. <fa...@gm...> - 2006-04-16 21:48:20
|
> > document =3D document #@UndefinedVariable > False =3D False #@UndefinedVariable > True =3D True #@UndefinedVariable > > Note that bogus document =3D document assignment and that I have dropped > the bogus import statement and used a bogus assignment for editor. At > least there is only one trick being used here to resolve all of these > undefined variables. > > Fabio: is this OK? Actually, I think that putting the True/False to be recognized as globals i= n the preferences would be better... And the document should actually be: document =3D editor.getDocument() -- it is there because of 'leftovers' fro= m other notifications. Cheers, Fabio |
From: Fabio Z. <fa...@gm...> - 2006-04-16 21:44:33
|
> > > One way of getting rid of all of the True/False warnings in Pydev > extensions is to use: > > if False: #@UndefinedVariable > # None of this code will be executed, but it will stop Pydev Actually, what I do is put the True/False in the 'undefined' tab of code analysis (under 'consider the following names as globals). Cheers, Fabio |
From: Don T. <nos...@gm...> - 2006-04-15 01:30:18
|
Joel Hedlund wrote: > Hi! > > I've cooked up a new version of my 'Assign method parameters to > attributes of > self' script. Hi Joel: I installed and played a little with your script - looking good. Since I am congenitally unable to accept any compiler error messages I changed the initial guard block from: if False: from org.python.pydev.editor import PyEdit #@UnresolvedImport cmd = 'command string' editor = PyEdit to: if False: #@UndefinedVariable # None of this code will be executed, but it will stop Pydev # extensions from complaining about undefined variables. cmd = cmd #@UndefinedVariable editor = editor #@UndefinedVariable document = document #@UndefinedVariable False = False #@UndefinedVariable True = True #@UndefinedVariable Note that bogus document = document assignment and that I have dropped the bogus import statement and used a bogus assignment for editor. At least there is only one trick being used here to resolve all of these undefined variables. Fabio: is this OK? Don. |