pydev-code Mailing List for PyDev for Eclipse (Page 15)
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: Jim D. <ji...@gm...> - 2012-03-22 02:22:14
|
Hi, I was hoping someone could give me a quick hand with remote debugging. I have an eclipse machine running pydev ... and python running on windows. For some reason when I try to set a breakpoint i see messages similar to "fail to set breakpoint in a file that does not exist" (Note: single stepping etc works just not breakpoints). The file names in the error message appear to have C:\ prefixed to them even though they are on linux (e.g. I see C:\home\etc etc etc when I expect /home/etc etc). I'm fairly certain I have setup '*pydevd_file_utils.py* ' correctly simple because I can single step? Does anyone have any further tips? Jim |
From: Jonah G. <jo...@ki...> - 2012-03-06 09:45:11
|
Hi Fabio, Thanks for the confirmation. Enjoy PyCon! I have some further ideas about bridging the gap between interactive console and full debug. I look forward to discussing them with you when you have some more time. Thanks, Jonah On 6 March 2012 09:35, Fabio Zadrozny <fa...@es...> wrote: > Hi Jonah, > > I'm sorry for the delay, my problem is that I'm going to PyCon this > year, and I'm pretty busy right now, so, I'll probably only be able to > review this next week... So far I only glanced at it, and think it's a > pretty nice idea, but haven't been able to really review it -- I do > have it in my list of things to do with a high priority, so, I'll > definitely do it before the next release... > > Cheers, > > Fabio > > On Tue, Mar 6, 2012 at 5:41 AM, Jonah Graham <jo...@ki...> wrote: >> Hi, >> >> I was wondering if Fabio/anyone had a chance to look at >> https://github.com/aptana/Pydev/pull/26 and >> https://github.com/aptana/Pydev/pull/27? I would really like any >> feedback you can give me on them? >> >> Thanks >> Jonah >> >> ~~~ >> Jonah Graham >> Kichwa Coders Ltd. >> jo...@ki... >> >> ------------------------------------------------------------------------------ >> Keep Your Developer Skills Current with LearnDevNow! >> The most comprehensive online learning library for Microsoft developers >> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, >> Metro Style Apps, more. Free future releases when you subscribe now! >> http://p.sf.net/sfu/learndevnow-d2d >> _______________________________________________ >> pydev-code mailing list >> pyd...@li... >> https://lists.sourceforge.net/lists/listinfo/pydev-code > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > pydev-code mailing list > pyd...@li... > https://lists.sourceforge.net/lists/listinfo/pydev-code |
From: Fabio Z. <fa...@es...> - 2012-03-06 09:35:42
|
Hi Jonah, I'm sorry for the delay, my problem is that I'm going to PyCon this year, and I'm pretty busy right now, so, I'll probably only be able to review this next week... So far I only glanced at it, and think it's a pretty nice idea, but haven't been able to really review it -- I do have it in my list of things to do with a high priority, so, I'll definitely do it before the next release... Cheers, Fabio On Tue, Mar 6, 2012 at 5:41 AM, Jonah Graham <jo...@ki...> wrote: > Hi, > > I was wondering if Fabio/anyone had a chance to look at > https://github.com/aptana/Pydev/pull/26 and > https://github.com/aptana/Pydev/pull/27? I would really like any > feedback you can give me on them? > > Thanks > Jonah > > ~~~ > Jonah Graham > Kichwa Coders Ltd. > jo...@ki... > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > pydev-code mailing list > pyd...@li... > https://lists.sourceforge.net/lists/listinfo/pydev-code |
From: Jonah G. <jo...@ki...> - 2012-03-06 09:01:53
|
Hi, I was wondering if Fabio/anyone had a chance to look at https://github.com/aptana/Pydev/pull/26 and https://github.com/aptana/Pydev/pull/27? I would really like any feedback you can give me on them? Thanks Jonah ~~~ Jonah Graham Kichwa Coders Ltd. jo...@ki... |
From: gong ys <gon...@ya...> - 2012-02-16 23:58:56
|
Hi, When I tried to debug the program below, the debug features such as "step over" did not not work. There was an exception popped: import eventlet eventlet.monkey_patch() print "x" print "y" The console output: pydev debugger: starting x Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/eventlet/hubs/hub.py", line 336, in fire_timers timer() File "/usr/lib/python2.6/site-packages/eventlet/hubs/timer.py", line 56, in __call__ cb(*args, **kw) File "/usr/lib/python2.6/site-packages/eventlet/semaphore.py", line 95, in _do_acquire waiter.switch() error: cannot switch to a different thread y |
From: Andornaut <and...@gm...> - 2012-02-09 18:23:01
|
I apologize for replying to my own message, but I discovered another workaround: In the Pydev Python interpreter preferences, if I add a new "Forced Builtin" named "zope" then the following line works (where it didn't previously): from zope import sqlalchemy This workaround may be preferable to using CTRL+1 to ignore the Unresolved import because it enables code completion/suggestion and "jump to source" to work. This workaround doesn't seem particularly "clean" to me though, and I'd much prefer for PyDev imports to work in a manner consistent with the Python Interpreter invoked from the shell. Thanks. On Thu, Feb 9, 2012 at 11:55 AM, Andornaut <and...@gm...> wrote: > I ran into an issue recently when trying out the Pyramid web > framework. It has a dependency on zope.sqlalchemy and a couple of > other zope.* libs. These dependencies are installed into the > site-packages/ directory: > > zope > /deprecation > /interface > /sqlalchemy > zope.deprecation-3.5.0-py2.7.egg-info > zope.deprecation-3.5.0-py2.7-nspkg.pth > zope.interface-3.8.0-py2.7.egg-info > zope.interface-3.8.0-py2.7-nspkg.pth > zope.sqlalchemy-0.7-py2.7.egg-info > zope.sqlalchemy-0.7-py2.7-nspkg.pth > > Using a CLI python interpreter, I am able to import zope or zope.sqlalchemy > > $ python >>>> import zope >>>> print zope > <module 'zope' (built-in)> >>>> import zope.sqlalchemy >>>> print zope.sqlalchemy > <module 'zope.sqlalchemy' from > '/home/andornaut/.virtualenvs/pyramid/local/lib/python2.7/site-packages/zope/sqlalchemy/__init__.pyc'> > > Whereas, from within Eclipse(PyDev) I am unable to import "zope" or > "zope.sqlalchemy". > > This discrepency in behavior looks to be do to some magic happening in > the.pth file: > > $ cat site-packages/zope.sqlalchemy-0.7-py2.7-nspkg.pth > > import sys,types,os; p = > os.path.join(sys._getframe(1).f_locals['sitedir'], *('zope',)); ie = > os.path.exists(os.path.join(p,'__init__.py')); m = not ie and > sys.modules.setdefault('zope',types.ModuleType('zope')); mp = (m or > []) and m.__dict__.setdefault('__path__',[]); (p not in mp) and > mp.append(p) > > Most of the other Pyramid dependencies are picked up by PyDev, but all > of the ones that do not include an __init__.py file in their root > directory are not picked up ("Repoze" is another example). > > I can work around this by adding __init__.py files to the root > directories of all of the libs that PyDev does not pick up, but this > is obviously not a great solution. (Or perhaps someone can suggest a > more clean workaround in the meantime?) > > Ideally, PyDev would work the same as the command line Python > interpreter - by executing the .pth files and working with whatever > "magic" occurs therein. > > Thanks. |
From: Andornaut <and...@gm...> - 2012-02-09 16:56:00
|
I ran into an issue recently when trying out the Pyramid web framework. It has a dependency on zope.sqlalchemy and a couple of other zope.* libs. These dependencies are installed into the site-packages/ directory: zope /deprecation /interface /sqlalchemy zope.deprecation-3.5.0-py2.7.egg-info zope.deprecation-3.5.0-py2.7-nspkg.pth zope.interface-3.8.0-py2.7.egg-info zope.interface-3.8.0-py2.7-nspkg.pth zope.sqlalchemy-0.7-py2.7.egg-info zope.sqlalchemy-0.7-py2.7-nspkg.pth Using a CLI python interpreter, I am able to import zope or zope.sqlalchemy $ python >>> import zope >>> print zope <module 'zope' (built-in)> >>> import zope.sqlalchemy >>> print zope.sqlalchemy <module 'zope.sqlalchemy' from '/home/andornaut/.virtualenvs/pyramid/local/lib/python2.7/site-packages/zope/sqlalchemy/__init__.pyc'> Whereas, from within Eclipse(PyDev) I am unable to import "zope" or "zope.sqlalchemy". This discrepency in behavior looks to be do to some magic happening in the.pth file: $ cat site-packages/zope.sqlalchemy-0.7-py2.7-nspkg.pth import sys,types,os; p = os.path.join(sys._getframe(1).f_locals['sitedir'], *('zope',)); ie = os.path.exists(os.path.join(p,'__init__.py')); m = not ie and sys.modules.setdefault('zope',types.ModuleType('zope')); mp = (m or []) and m.__dict__.setdefault('__path__',[]); (p not in mp) and mp.append(p) Most of the other Pyramid dependencies are picked up by PyDev, but all of the ones that do not include an __init__.py file in their root directory are not picked up ("Repoze" is another example). I can work around this by adding __init__.py files to the root directories of all of the libs that PyDev does not pick up, but this is obviously not a great solution. (Or perhaps someone can suggest a more clean workaround in the meantime?) Ideally, PyDev would work the same as the command line Python interpreter - by executing the .pth files and working with whatever "magic" occurs therein. Thanks. |
From: federico v. <vag...@gm...> - 2012-02-03 23:23:35
|
Actually - I did a little more tweaking - removed the previous PyDev link ( pydev.org/nightly/) and manually added the amazon link. The update didn't work, but manually telling Eclipse to install a new plug in, and pointing it to the amazon link, then telling it to install pydev 2.4 worked. Not sure what was causing it though! On Sat, Feb 4, 2012 at 12:19 AM, federico vaggi <vag...@gm...>wrote: > I can confirm that pydev isn't getting updated to 2.4 either - I've tried > on 2 linux machines (both Ubuntu) and a Windows machine, all running Indigo. > > No clue what's going on > > > On Fri, Feb 3, 2012 at 3:44 PM, Fabio Zadrozny <fa...@es...> wrote: > >> I just tested it here and it's working for me... Which error are you >> having? Which other plugins are you installing? Is this an upgrade or >> a new install? Which eclipse version are you using? >> >> As a note, sometimes the eclipse update fails in a way that the best >> way is to grab a new eclipse and reinstall the needed plugins (and >> after finishing the install of the plugins you want just point it to >> your old workspace)... >> >> Cheers, >> >> Fabio >> >> On Fri, Feb 3, 2012 at 12:30 PM, Bartosz <ga...@po...> wrote: >> > Hi. >> > >> > I tried to download the latest pydev 2.4.0 (2.4.0.2012020116) version >> from >> > http://update-production-pydev.s3.amazonaws.com/pydev/updates/site.xml >> > >> > Unfortunately it is not working. I was unable to download the latest >> pydev >> > 2.4.0 version. >> > >> > Could you please take a look at this problem. >> > >> > Best Regards >> > Bartosz >> > >> > >> > >> > >> ------------------------------------------------------------------------------ >> > Try before you buy = See our experts in action! >> > The most comprehensive online learning library for Microsoft developers >> > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, >> > Metro Style Apps, more. Free future releases when you subscribe now! >> > http://p.sf.net/sfu/learndevnow-dev2 >> > _______________________________________________ >> > pydev-code mailing list >> > pyd...@li... >> > https://lists.sourceforge.net/lists/listinfo/pydev-code >> > >> >> >> ------------------------------------------------------------------------------ >> Try before you buy = See our experts in action! >> The most comprehensive online learning library for Microsoft developers >> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, >> Metro Style Apps, more. Free future releases when you subscribe now! >> http://p.sf.net/sfu/learndevnow-dev2 >> _______________________________________________ >> pydev-code mailing list >> pyd...@li... >> https://lists.sourceforge.net/lists/listinfo/pydev-code >> > > |
From: federico v. <vag...@gm...> - 2012-02-03 23:19:23
|
I can confirm that pydev isn't getting updated to 2.4 either - I've tried on 2 linux machines (both Ubuntu) and a Windows machine, all running Indigo. No clue what's going on On Fri, Feb 3, 2012 at 3:44 PM, Fabio Zadrozny <fa...@es...> wrote: > I just tested it here and it's working for me... Which error are you > having? Which other plugins are you installing? Is this an upgrade or > a new install? Which eclipse version are you using? > > As a note, sometimes the eclipse update fails in a way that the best > way is to grab a new eclipse and reinstall the needed plugins (and > after finishing the install of the plugins you want just point it to > your old workspace)... > > Cheers, > > Fabio > > On Fri, Feb 3, 2012 at 12:30 PM, Bartosz <ga...@po...> wrote: > > Hi. > > > > I tried to download the latest pydev 2.4.0 (2.4.0.2012020116) version > from > > http://update-production-pydev.s3.amazonaws.com/pydev/updates/site.xml > > > > Unfortunately it is not working. I was unable to download the latest > pydev > > 2.4.0 version. > > > > Could you please take a look at this problem. > > > > Best Regards > > Bartosz > > > > > > > > > ------------------------------------------------------------------------------ > > Try before you buy = See our experts in action! > > The most comprehensive online learning library for Microsoft developers > > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > > Metro Style Apps, more. Free future releases when you subscribe now! > > http://p.sf.net/sfu/learndevnow-dev2 > > _______________________________________________ > > pydev-code mailing list > > pyd...@li... > > https://lists.sourceforge.net/lists/listinfo/pydev-code > > > > > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > pydev-code mailing list > pyd...@li... > https://lists.sourceforge.net/lists/listinfo/pydev-code > |
From: Fabio Z. <fa...@es...> - 2012-02-03 14:44:43
|
I just tested it here and it's working for me... Which error are you having? Which other plugins are you installing? Is this an upgrade or a new install? Which eclipse version are you using? As a note, sometimes the eclipse update fails in a way that the best way is to grab a new eclipse and reinstall the needed plugins (and after finishing the install of the plugins you want just point it to your old workspace)... Cheers, Fabio On Fri, Feb 3, 2012 at 12:30 PM, Bartosz <ga...@po...> wrote: > Hi. > > I tried to download the latest pydev 2.4.0 (2.4.0.2012020116) version from > http://update-production-pydev.s3.amazonaws.com/pydev/updates/site.xml > > Unfortunately it is not working. I was unable to download the latest pydev > 2.4.0 version. > > Could you please take a look at this problem. > > Best Regards > Bartosz > > > > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > pydev-code mailing list > pyd...@li... > https://lists.sourceforge.net/lists/listinfo/pydev-code > |
From: Bartosz <ga...@po...> - 2012-02-03 14:30:46
|
Hi. I tried to download the latest pydev 2.4.0 (2.4.0.2012020116) version from http://update-production-pydev.s3.amazonaws.com/pydev/updates/site.xml Unfortunately it is not working. I was unable to download the latest pydev 2.4.0 version. Could you please take a look at this problem. Best Regards Bartosz |
From: Fabio Z. <fa...@gm...> - 2012-02-01 19:43:40
|
Hi All, PyDev 2.4.0 has been released Details on PyDev: http://pydev.org Details on its development: http://pydev.blogspot.com Release Highlights: ------------------------------- PyDev is now faster and uses less memory (many performance and memory improvements were done)! The contents of the homepage are now migrated to a wiki at https://wiki.appcelerator.org/display/tis/Python+Development ... (later most of the homepage will become a mirror of the wiki). Others * Organize imports: Fixed issue where other statements in a commit line got lost (now such a line is ignored). * PyDev Package Explorer: closed project no longer remains with old icons. * Fixed deadlock when setting project as Django. * Fixed issue in code formatting *args on lambda statement. * TODO tags: only searched now in a string/comment partition. * Fixed issue when saving empty document (bad location on code-formatter). * Fixed issue removing comments from document. * Applied patch for internal Jython 2.2.1 to fix list.sort (http://bugs.jython.org/issue1835099). * Fixed resolution of template variable prev_class_or_method and next_class_or_method. What is PyDev? --------------------------- PyDev is a plugin that enables users to use Eclipse for Python, Jython and IronPython development -- making Eclipse a first class Python IDE -- It comes with many goodies such as code completion, syntax highlighting, syntax analysis, refactor, debug and many others. Cheers, -- Fabio Zadrozny ------------------------------------------------------ Software Developer Appcelerator http://appcelerator.com/ Aptana http://aptana.com/ PyDev - Python Development Environment for Eclipse http://pydev.org http://pydev.blogspot.com |
From: Davidson, J. <jos...@lm...> - 2011-12-16 23:20:25
|
Whoops, guess I'm not a member of the users' list. -----Original Message----- From: Davidson, Josh Sent: Friday, December 16, 2011 4:09 PM To: pyd...@li... Subject: PyDev PYTHONPATH settings don't expand Eclipse variables I am aware that the recommended way to add another project's source folder within a workspace to a project's PYTHONPATH is to use the Project References section of the project properties. This is pretty slick (uses the referenced project's source folders) when dealing with pure Python projects and I think this should continue to work as-is. However, if you are working with mixed CDT/Python projects where the CDT projects have more than one build configuration, you can't do this. The reasons are somewhat convoluted, but suffice it to say, you don't want to use Project References with CDT (CDT provides its own project references configuration for this very reason). Anyways, what needs to happen in this scenario is to not use the built-in Project References and instead set the PYTHONPATH via the" PyDev - PYTHONPATH" configuration. However, if I open the ExternalLibraries tab and attempt to add a project's source directory using Eclipse variables like {workspace_loc} or ${WorkspaceDirPath} (this is really a CDT variable) the variables aren't expanded and I get an "Invalid external source folder specified" error. If I add the project's source directory using the "Add source folder" option, it will work, but it leaves the absolute path in the project configuration, breaking the portability of the project. I have seen other plugins automatically substitute ${workspace_loc} for portions of an absolute path that match the project's workspace. So in summary, PyDev isn't doing anything wrong. However, it really should resolve Eclipse variables in the External Libraries tab of PyDev - PYTHONPATH. Thanks, Josh |
From: Fabio Z. <fa...@gm...> - 2011-12-15 20:18:43
|
Hi All, PyDev 2.3.0 has been released Details on PyDev: http://pydev.org Details on its development: http://pydev.blogspot.com Release Highlights: ------------------------------- * Pep8.py integrated (must be enabled in PyDev > Editor > Code Analysis > pep8.py). * Faster PyDev startup (internal Jython upgraded to version 2.2.1 -- and also optimized for PyDev). * Action to select/deselect scope (Shift+Alt+Up/Down). * Fix: cache issue where the PYTHONPATH in memory became different from the PYTHONPATH configured for a project. * Fix: OutOfMemoryError when dealing with PyOpenGL. * Fix: deadlock (could occur in a race condition when importing a project with an existing Python configuration). * Fix: code-completion integration issue with IPython 011 (patch from jonahkichwacoders). * Fix: annotation could remain in editor after removing a marker. * Fix: BadLocationException on extract local refactoring. What is PyDev? --------------------------- PyDev is a plugin that enables users to use Eclipse for Python, Jython and IronPython development -- making Eclipse a first class Python IDE -- It comes with many goodies such as code completion, syntax highlighting, syntax analysis, refactor, debug and many others. Cheers, -- Fabio Zadrozny ------------------------------------------------------ Software Developer Appcelerator http://appcelerator.com/ Aptana http://aptana.com/ PyDev - Python Development Environment for Eclipse http://pydev.org http://pydev.blogspot.com |
From: Bartosz <ga...@po...> - 2011-12-13 12:13:18
|
Hi. I found an error in pydev Code Analyser. The following code works perfectly, and the pydev Code Analysis also parse this file without problem. class TestConstants: DICT1 = {'id':1} DICT2 = {'id':2} LIST_OF_DICTS = ["DICT1", "DICT2"] for testName in TestConstants.LIST_OF_DICTS: print(TestConstants.__dict__[testName]) Unfortunately when we split this code, into two separate files, and we add import, the pydev CodeAnalyser is displaying error (python code works correclty): FILE01: class TestConstants: DICT1 = {'id':1} DICT2 = {'id':2} LIST_OF_DICTS = ["DICT1", "DICT2"] FILE02: from Constants import TestConstants for testName in TestConstants.LIST_OF_DICTS: print(TestConstants.__dict__[testName]) The full source code is in attachment. Is it possible to fix this error, or it too complicated to fix it? Thanks in advance Bartosz |
From: Kenneth L. <ke...@lo...> - 2011-12-08 21:28:42
|
On Thu, Dec 8, 2011 at 12:37 PM, Fabio Zadrozny <fa...@gm...> wrote: > On Thu, Dec 8, 2011 at 11:29 AM, Kenneth Loafman <ke...@lo...> > wrote: > > I believe it's probably due to the fact that PyDev still marks an import > > unused even when it is used. Autoremove would probably end up breaking > > coded that was working. > > What's the use-case where you have this? (it seems to work properly > for me) -- note that I answered the original question on another > e-mail explaining how to make sure that annotations are up to date. The use-case is the Django settings module invoked by: from django.conf import settings This invariably comes up as missing even though it's used. I've been able to resolve most missing import issues by: 1) Window >> Preferences >> Interpreter-Python >> Apply 2) Project >> Properties >> PyDev-PYTHONPATH >> Force restore internal info but settings remains elusive. It refuses to cooperate. ...Thanks, ...Ken |
From: Fabio Z. <fa...@gm...> - 2011-12-08 18:37:58
|
On Thu, Dec 8, 2011 at 11:29 AM, Kenneth Loafman <ke...@lo...> wrote: > I believe it's probably due to the fact that PyDev still marks an import > unused even when it is used. Autoremove would probably end up breaking > coded that was working. What's the use-case where you have this? (it seems to work properly for me) -- note that I answered the original question on another e-mail explaining how to make sure that annotations are up to date. Cheers, Fabio > > ...Ken > > > On Thu, Dec 8, 2011 at 2:17 AM, Bartosz <ga...@po...> wrote: >> >> Hi. >> >> I would like to implement the Autoremove of the unused imports feature. >> I found that the autoremove of unused imports was already implemented, but >> it is not enabled by default. >> It seems that there some problems with it. >> The source code is located at: >> >> aptana-Pydev/plugins/com.python.pydev.analysis/src/com/python/pydev/analysis/OrganizeImportsFixesUnused.java >> >> What was wrong with that feature? >> How can I enable it (I would like to test it, and maybe fix the problems >> with it)? >> >> Thanks in advance >> Bartosz >> >> >> ------------------------------------------------------------------------------ >> Cloud Services Checklist: Pricing and Packaging Optimization >> This white paper is intended to serve as a reference, checklist and point >> of >> discussion for anyone considering optimizing the pricing and packaging >> model >> of a cloud services business. Read Now! >> http://www.accelacomm.com/jaw/sfnl/114/51491232/ >> _______________________________________________ >> pydev-code mailing list >> pyd...@li... >> https://lists.sourceforge.net/lists/listinfo/pydev-code > > > > ------------------------------------------------------------------------------ > Cloud Services Checklist: Pricing and Packaging Optimization > This white paper is intended to serve as a reference, checklist and point of > discussion for anyone considering optimizing the pricing and packaging model > of a cloud services business. Read Now! > http://www.accelacomm.com/jaw/sfnl/114/51491232/ > _______________________________________________ > pydev-code mailing list > pyd...@li... > https://lists.sourceforge.net/lists/listinfo/pydev-code > |
From: Fabio Z. <fa...@gm...> - 2011-12-08 18:36:48
|
On Thu, Dec 8, 2011 at 6:17 AM, Bartosz <ga...@po...> wrote: > Hi. > > I would like to implement the Autoremove of the unused imports feature. > I found that the autoremove of unused imports was already implemented, but it is not enabled by default. > It seems that there some problems with it. > The source code is located at: > aptana-Pydev/plugins/com.python.pydev.analysis/src/com/python/pydev/analysis/OrganizeImportsFixesUnused.java > > What was wrong with that feature? > How can I enable it (I would like to test it, and maybe fix the problems with it)? That class is incomplete. It's a very rough implementation that just iterates over the annotations that say that some import is unused, but it's missing on how to map that back to the code. Also, it tries to handle something in wild imports, but that's also not well done (one would have to gather all the tokens from the wild import and choose just the ones that are actually used). I think the best approach would be doing it as a part of com.python.pydev.analysis.organizeimports.OrganizeImports (which already gathers all the imports) and just see if a given import is unused (through an annotation) and if it is, remove it (use the OrganizeImportsFixesUnused just as a reference on how to gather the annotations) -- and just leave wild imports as is (without changing it). Note that in this case, the OrganizeImports will depend on having annotations up to date (as it'll rely on having unused imports annotations), so before starting to remove the imports, one has to do something as: PyParser parser = edit.getParser(); parser.addParseListener(listener); parser.forceReparse(new Tuple<String, Boolean>(AnalysisParserObserver.ANALYSIS_PARSER_OBSERVER_FORCE, true)); And the listener will later remove itself from hearing the other parses and will actually do the job of organizing the imports (and removing unused ones). This is needed to be sure that annotations are up to date (but shouldn't be needed in case the user just does an organize imports without removing unneeded imports -- an option should be added to org.python.pydev.ui.importsconf.ImportsPreferencesPage to choose whether to use that feature or not). I haven't done it because in Python, it may be easy to break things removing unused imports (i.e.: as you may have a module that imports something just to leave that import in the public interface of that module without actually using it), but I don't think it's a bad thing if it's optional (so long as people know what they're using). Also, right now if used properly (i.e.: unused imports are properly marked with a comment saying it's meant to remain unused -- which the code analyzer should do properly), it may be a nice feature to have. Please let me know if you need more information to make it work. I assume you already got the basic code setup following instructions from: http://pydev.org/developers.html -- if something is missing, please let me know so that I can update that page -- note that you can just send a pull request in github -- that page still asks for a patch :). Cheers, Fabio |
From: Kenneth L. <ke...@lo...> - 2011-12-08 13:29:36
|
I believe it's probably due to the fact that PyDev still marks an import unused even when it is used. Autoremove would probably end up breaking coded that was working. ...Ken On Thu, Dec 8, 2011 at 2:17 AM, Bartosz <ga...@po...> wrote: > Hi. > > I would like to implement the Autoremove of the unused imports feature. > I found that the autoremove of unused imports was already implemented, but > it is not enabled by default. > It seems that there some problems with it. > The source code is located at: > > aptana-Pydev/plugins/com.python.pydev.analysis/src/com/python/pydev/analysis/OrganizeImportsFixesUnused.java > > What was wrong with that feature? > How can I enable it (I would like to test it, and maybe fix the problems > with it)? > > Thanks in advance > Bartosz > > > ------------------------------------------------------------------------------ > Cloud Services Checklist: Pricing and Packaging Optimization > This white paper is intended to serve as a reference, checklist and point > of > discussion for anyone considering optimizing the pricing and packaging > model > of a cloud services business. Read Now! > http://www.accelacomm.com/jaw/sfnl/114/51491232/ > _______________________________________________ > pydev-code mailing list > pyd...@li... > https://lists.sourceforge.net/lists/listinfo/pydev-code > |
From: Bartosz <ga...@po...> - 2011-12-08 08:17:48
|
Hi. I would like to implement the Autoremove of the unused imports feature. I found that the autoremove of unused imports was already implemented, but it is not enabled by default. It seems that there some problems with it. The source code is located at: aptana-Pydev/plugins/com.python.pydev.analysis/src/com/python/pydev/analysis/OrganizeImportsFixesUnused.java What was wrong with that feature? How can I enable it (I would like to test it, and maybe fix the problems with it)? Thanks in advance Bartosz |
From: Jonah G. <jo...@ki...> - 2011-11-08 17:36:47
|
Hi, I am looking into the options for allowing a variables view to exist for the current interactive console and wanted to find out if anyone else had already explored this path. The kind of thing I am looking for is the ability to change variables in the GUI, see the variables, etc. Sort of like the "Variable explorer" in Spyder: http://packages.python.org/spyder/variableexplorer.html Obviously I want to reuse as much of the existing code base as possible, therefore I would expect doing something like implementing an additional Debug Context Provider for the interactive console and then gluing all the bits together so that the interactive console can provide the debug information needed to the variables view. Thanks, Jonah |
From: Fabio Z. <fza...@ap...> - 2011-11-07 09:44:21
|
> Hi, > > We are building ACE editor (Javascript) based mini-IDE for Plone CMS. > > Currently we are doing "remote" debugging by having an auxilirity HTTP > server inside Plone process in another thread and then this server > controls pdb. > > Would it make sense to use PyDev remote debugging modules instead of > our own implementation? Are there any generic "remote debugging" tools > for Python? > Hi Mikko, I think that it'd make sense using the PyDev debugger in that scenario -- it should be a pretty 'generic' remote debugging tool :). And it should be straightforward to integrate it -- you can take a look at some unit-tests to guide with examples: https://github.com/aptana/Pydev/blob/master/plugins/org.python.pydev.debug/pysrc/tests_python -- the test_debugger.py is the main file there). The files https://github.com/aptana/Pydev/blob/master/plugins/org.python.pydev.debug/pysrc/pydevd_comm.py has the CMD_* constants showing most of the control you should care about ( all the commands received externally are handled through pydevd.py/PyDB/processNetCommand -- and some of those CMD_* constants should be handled in the client). It should be a matter of calling pydevd.settrace() with the proper parameters in the thread you want to trace (and having a proper client as the UI for the debugger). Cheers, Fabio > -- > Mikko Ohtamaa > http://opensourcehacker.com > http://twitter.com/moo9000 > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Save $700 by Nov 18 > Register now > http://p.sf.net/sfu/rsa-sfdev2dev1 > _______________________________________________ > pydev-code mailing list > pyd...@li... > https://lists.sourceforge.net/lists/listinfo/pydev-code > |
From: Mikko O. <mi...@op...> - 2011-11-07 02:43:28
|
Hi, We are building ACE editor (Javascript) based mini-IDE for Plone CMS. Currently we are doing "remote" debugging by having an auxilirity HTTP server inside Plone process in another thread and then this server controls pdb. Would it make sense to use PyDev remote debugging modules instead of our own implementation? Are there any generic "remote debugging" tools for Python? -- Mikko Ohtamaa http://opensourcehacker.com http://twitter.com/moo9000 |
From: Fabio Z. <fza...@ap...> - 2011-11-02 23:53:16
|
Hi All, PyDev 2.2.4 has been released Details on PyDev: http://pydev.org Details on its development: http://pydev.blogspot.com Release Highlights: ------------------------------- **Cython** * Cython is now supported in PyDev (.pyx files may be opened with the PyDev editor). **Globals Token Browser (Ctrl+Shift+T)** * Packages/Modules can now be reached through the globals browser (so, __init__.py files can now be easily gotten through the package they represent) **Handling external files** * External libraries configured in a project appearing in the PyDev Package Explorer * Show in > PyDev Package Explorer working for files that are under the interpreter or external libraries. * Show in > PyDev Package Explorer working for files inside .zip archives. * External files that were opened when Eclipse is closed are properly reopened. **Editor** * New option in the code-formatter to only apply code-formatting on changed lines on save. * from __future__ import now properly appears as first even if grouping is enabled. * it's now possible to have a minimap of the code in the overview ruler (enable in preferences > PyDev > Editor > Overview Ruler Minimap). **Unittest runner** * exc_clear() no longer called if it's not available. * Fixed issue where class tearDown was executed twice. **Debugger** * It's now possible to enable/disable stepping into properties while in the debugger. Menu: Run > Disable step into properties (patch by Hussain Bohra) * Show in outline view activated in debug perspective (patch by Hussain Bohra) * Watch expressions can be properly expanded in the watch view (patch by Hussain Bohra) * Breakpoints in external files are properly shown. * Remote debugger: starting the remote debugger no longer shows a launch configuration * Remote debugger: when the server is stopped, the server socket is properly closed **Minors** * Fixed issue in rename (Alt+Shift+R) / find references (Ctrl+Shift+G) on top level module variables. * Fixed issue where create class/method/field action was not ok because of comment. * Fixed issue where doing create class/method/field action on file with tabs ended up adding spaces. What is PyDev? --------------------------- PyDev is a plugin that enables users to use Eclipse for Python, Jython and IronPython development -- making Eclipse a first class Python IDE -- It comes with many goodies such as code completion, syntax highlighting, syntax analysis, refactor, debug and many others. Cheers, -- Fabio Zadrozny ------------------------------------------------------ Software Developer Appcelerator http://appcelerator.com/ Aptana http://aptana.com/ PyDev - Python Development Environment for Eclipse http://pydev.org http://pydev.blogspot.com |
From: Bartosz <ga...@po...> - 2011-10-19 13:57:23
|
Hi. I have a big problem with Code Analysis and pydev plug-in. The Code Analysis is not working - there are no warnings, errors etc. I'm using the IBM rational Clearcase software configuration manager. http://en.wikipedia.org/wiki/IBM_Rational_ClearCase I checked the version without Clearcase (files stored in my home directory) and it works perfectly. Do you know what could be the cause of this problem? How to enable some debug information to investigate this problem further? Thanks in advance Bartosz |