pydev-users Mailing List for PyDev for Eclipse (Page 31)
Brought to you by:
fabioz
You can subscribe to this list here.
| 2004 |
Jan
(2) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2005 |
Jan
|
Feb
(1) |
Mar
(2) |
Apr
(1) |
May
|
Jun
(2) |
Jul
(2) |
Aug
(4) |
Sep
(3) |
Oct
(1) |
Nov
(2) |
Dec
|
| 2006 |
Jan
(2) |
Feb
(4) |
Mar
(1) |
Apr
(49) |
May
(123) |
Jun
(162) |
Jul
(96) |
Aug
(59) |
Sep
(69) |
Oct
(73) |
Nov
(71) |
Dec
(29) |
| 2007 |
Jan
(68) |
Feb
(97) |
Mar
(170) |
Apr
(86) |
May
(78) |
Jun
(62) |
Jul
(114) |
Aug
(71) |
Sep
(145) |
Oct
(107) |
Nov
(43) |
Dec
(41) |
| 2008 |
Jan
(46) |
Feb
(66) |
Mar
(70) |
Apr
(91) |
May
(119) |
Jun
(104) |
Jul
(92) |
Aug
(83) |
Sep
(68) |
Oct
(146) |
Nov
(76) |
Dec
(70) |
| 2009 |
Jan
(114) |
Feb
(101) |
Mar
(153) |
Apr
(203) |
May
(85) |
Jun
(100) |
Jul
(109) |
Aug
(93) |
Sep
(48) |
Oct
(2) |
Nov
(1) |
Dec
(15) |
| 2010 |
Jan
(9) |
Feb
(12) |
Mar
(25) |
Apr
(61) |
May
(107) |
Jun
(75) |
Jul
(76) |
Aug
(91) |
Sep
(100) |
Oct
(46) |
Nov
(47) |
Dec
(28) |
| 2011 |
Jan
(105) |
Feb
(88) |
Mar
(82) |
Apr
(45) |
May
(46) |
Jun
(76) |
Jul
(73) |
Aug
(77) |
Sep
(53) |
Oct
(65) |
Nov
(58) |
Dec
(57) |
| 2012 |
Jan
(53) |
Feb
(19) |
Mar
(4) |
Apr
(9) |
May
(2) |
Jun
(3) |
Jul
(1) |
Aug
(3) |
Sep
(3) |
Oct
(4) |
Nov
(1) |
Dec
(12) |
| 2013 |
Jan
(6) |
Feb
(2) |
Mar
(3) |
Apr
|
May
(2) |
Jun
(8) |
Jul
(2) |
Aug
|
Sep
(1) |
Oct
|
Nov
(2) |
Dec
(2) |
| 2014 |
Jan
(4) |
Feb
|
Mar
(1) |
Apr
|
May
(3) |
Jun
|
Jul
(1) |
Aug
(1) |
Sep
(4) |
Oct
(1) |
Nov
(3) |
Dec
(2) |
| 2015 |
Jan
(1) |
Feb
(3) |
Mar
|
Apr
(2) |
May
(4) |
Jun
(1) |
Jul
(5) |
Aug
(12) |
Sep
|
Oct
(1) |
Nov
|
Dec
(15) |
| 2016 |
Jan
(16) |
Feb
(7) |
Mar
|
Apr
|
May
(3) |
Jun
(8) |
Jul
|
Aug
(2) |
Sep
|
Oct
(1) |
Nov
(5) |
Dec
|
| 2017 |
Jan
(1) |
Feb
|
Mar
(1) |
Apr
(1) |
May
|
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(3) |
Oct
|
Nov
(2) |
Dec
|
| 2018 |
Jan
|
Feb
(2) |
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
(1) |
Oct
|
Nov
(1) |
Dec
|
| 2019 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2020 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
(1) |
| 2021 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2023 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
| 2024 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: SourceForge.net <no...@so...> - 2011-05-16 19:20:01
|
The following forum message was posted by at http://sourceforge.net/projects/pydev/forums/forum/293649/topic/4533050: Hi, Is it possible to get javadoc to work in a jython pydev project using external libraries. I have included an external jar through the Project/Properties menu. Is it possible to get pydev to access the library-doc.jar for javadoc? now it only display binary garbage when clicking the help popup? |
|
From: SourceForge.net <no...@so...> - 2011-05-15 23:49:49
|
The following forum message was posted by fabioz at http://sourceforge.net/projects/pydev/forums/forum/293649/topic/4529190: Please enter that as a bug request (the problem is that PyDev can't really call your code to know what a method would return, but this specific use-case could be hard-coded -- it works for file because it's a class, not a method). Cheers, Fabio |
|
From: SourceForge.net <no...@so...> - 2011-05-15 22:56:16
|
The following forum message was posted by fabioz at http://sourceforge.net/projects/pydev/forums/forum/293649/topic/4531661: Hi there, PyDev actually had such a feature, but it was removed because Python itself does not have a good reload solution (one example: when reloading a module which has a method, it'd have to update any references to the old method to point to the new method, or make the old method redirect to the new method, etc.), so, it was removed until someone is able to make it work reliably... (the solutions could potentially break applications). So, while there's no totally reliable solution, you can try for yourself one of the solutions below, which may work (or not) for your specific use-case (it seems they already evolved a bit since the last time it was integrated in PyDev, so, I may end up checking it again).: http://www.indelible.org/ink/python-reloading/ http://code.google.com/p/reimport/ Cheers, Fabio p.s.: May be related or not, but usually working with unit-tests may ease getting to the point you want... (the usual modus operandi for test driven development would be: write a test, run it, see it fail and only then go on to fix it, in which case, reload isn't really that important -- although I agree that sometimes, changing the code you're debugging can give you good results regardless of that). |
|
From: SourceForge.net <no...@so...> - 2011-05-15 16:59:47
|
The following forum message was posted by scientificsteve at http://sourceforge.net/projects/pydev/forums/forum/293649/topic/4531661: I'm developing a GUI application using wxPython. I'm quite happy with PyDev, but the only thing that I couldn't figure out up to now is how to reload modules that I have changed while my application is running in PyDev. To explain it in detail: - I start my wxPython application using CTRL+F11 from within PyDev. - I have to perform some steps (e.g. database connection, loading of projects, ...) before I reach the point in the source that I'm currently working on (e.g. the showing of an error dialog). - Now, for example I change the label of the error dialog in the source code. - To activate these changes I have to restart my entire application, which means going through all the initialization steps. This is quite time-consuming and after some time it really gets annoying. It would be very helpful to have the possibility to run the reload(module) command from somewhere in PyDev. Maybe this feature is already implemented, but I couldn't find it. Also I couldn't find how to open the python shell in which the program started with CTRL+F11 is running in. Maybe this would be the place where to type the reload command. Hopefully someone can help me with these questions. Best regards, Stefan. |
|
From: SourceForge.net <no...@so...> - 2011-05-14 18:49:46
|
The following forum message was posted by dugsnyder at http://sourceforge.net/projects/pydev/forums/forum/293649/topic/4526816: Thanx, AutoConfig was just as flawless as you thought. Problem solved. Sorry for the newbie question, I'm new to Ubuntu but you would have thought I would have noticed a button saying AutoConfig stuck right in front of my eyes :-P Dug |
|
From: SourceForge.net <no...@so...> - 2011-05-13 15:54:41
|
The following forum message was posted by eldergabriel at http://sourceforge.net/projects/pydev/forums/forum/293649/topic/4529190: In the PyDev perspective, if I open a file or pipe, such as: f = open("somefile.text") p = os.popen("ls -al *.text") and then try to type f.read() or p.readlines(), auto-completion does not engage as expected to display the appropriate class methods after I type the '.' after the object name. What is presented in the auto-completion drop-down instead is a list of the parent class methods for anything derived from 'object' (such as __str__, __cmp__, etc.), and, mercifully, an option for method calls that I had manually invoked previously, i.e. whatever it remembered in that object's call history. Notably, if I start a new line and type 'file.', the appropriate methods appear in the auto-completion drop-down (close(), flush(), etc.). I would expect that the auto-completion would also readily display read(), readlines(), close(), etc. for any object returned from an open() or popen(). |
|
From: SourceForge.net <no...@so...> - 2011-05-13 15:23:08
|
The following forum message was posted by eldergabriel at http://sourceforge.net/projects/pydev/forums/forum/293649/topic/4526816: Did you try the autoconfig button? It worked flawlessly for me on my ubuntu box. On my ubuntu installation, /usr/bin/python is a symbolic link to /usr/bin/python2.X, which is readable and executable by all users. You should not have to be root to run python, unless your permissions got messed up. I would test this by going into a bash shell, then do a "which python" to see what exactly is called when "python" is invoked, and then just try running "python" to get a shell. |
|
From: SourceForge.net <no...@so...> - 2011-05-12 04:09:47
|
The following forum message was posted by dugsnyder at http://sourceforge.net/projects/pydev/forums/forum/293649/topic/4526816: I found my python 2.7 executable installed with Ubuntu in the /usr/bin folder as expected. But when I try to add a python interpreter to PyDev I navigate to the same folder and that file ( as well as others ) aren't there as viewed by PyDev. Might this have something to do with not being logged in as root? I'm new to Ubuntu, but I thought you couldn't do that in Ubuntu, and you just use sudo. Is there a way to specify a python interpreter to PyDev via the command line? Any other idea would be appreciated too. Sorry if I'm being a noob |
|
From: SourceForge.net <no...@so...> - 2011-05-11 09:06:43
|
The following forum message was posted by pratzz at http://sourceforge.net/projects/pydev/forums/forum/293649/topic/4525708: I m facing problem in the step -> "Work with: http://pydev.org/updates" (after going to Help->Install new Software). It says Unable to connect to repository http://pydev.org/updates/content.xml Connection refused Please Help Thank you, Pratyush |
|
From: SourceForge.net <no...@so...> - 2011-05-10 21:16:41
|
The following forum message was posted by pimoz at http://sourceforge.net/projects/pydev/forums/forum/293649/topic/4525052: Hi! I have a problem with Code Coverage. I have installed Python 2.7.1 x86 and Coverage 3.4 x86. Next step was Eclipse Classic 3.6.2 and then I added a plugin PyDev via Update site. Then I configured Interpreter in Preferences and tryied to run a simple project with one test scenario. I enabled the Code Coverage view and made everything like the guide on PyDev's site says. But the Code Coverage keeps saying: "File has no statistics." Anyone knows the solution? Tried to Google and did get some resoults but they are useless. Thank you, Primoz |
|
From: SourceForge.net <no...@so...> - 2011-05-06 16:02:27
|
The following forum message was posted by eldergabriel at http://sourceforge.net/projects/pydev/forums/forum/293649/topic/4519098: Amend the problem for the existing project and file where the auto-completion seemed to be working. The auto-completion only works when I try to invoke methods via the existing file object / variable name that has always been there. But if I create a new one, assign to it from an open(), and then try to invoke methods via auto-completion, the same problem occurs. Auto-completion for other modules explicitly imported (versus the builtin file object) seems OK, so far... |
|
From: SourceForge.net <no...@so...> - 2011-05-06 15:34:41
|
The following forum message was posted by eldergabriel at http://sourceforge.net/projects/pydev/forums/forum/293649/topic/4519098: I recently uninstalled, then reinstalled / updated my eclipse and pydev installation to helios and the latest pydev on macosx v10.5.8. I also downloaded and installed macpython v2.5.1, since that matches the version that ships with the OS, and from a previous post, that seemed to be the best way to get the .py files I needed to autoconfig / set and use a python interpreter. Now, since I've re-imported my projects into the eclipse workspace, I've run into a problem where, if I do something like: f = open(sys.argv[1]) # or any other file path-name raw_data = f.read() it doesn't start the auto-completion at "f." while typing the second line. What's weird is that, of my existing projects that I've re-imported, the file object method call auto-completion [i]does[/i] work in at least one module in a different project, but not in the project file that I'm currently working on. So, there is an inconsistency there. This may not be relevant, but when I test this out in PyCrust, the auto-completion works fine there. So it seems that introspection of the __builtins__ is working fine, generally speaking. As a further test, I created a new pydev project to see if this happens for new projects and source files, and the problem does occur in that circumstance as well. I've also verified that the pydev perspective is selected when the problem occurs. Looking at the various properties and settings for the projects, there doesn't seem to be anything that stands out configuration-wise that would seem to account for this behavior. Any ideas? Bug? - gabriel |
|
From: SourceForge.net <no...@so...> - 2011-05-05 12:39:40
|
The following forum message was posted by at http://sourceforge.net/projects/pydev/forums/forum/293649/topic/4517189: Thanks, Fabio, done. |
|
From: SourceForge.net <no...@so...> - 2011-05-05 11:34:52
|
The following forum message was posted by fabioz at http://sourceforge.net/projects/pydev/forums/forum/293649/topic/4517189: The problem is not that the master gets the python nature (whenever you open a file in a project it'll automatically get it, but that shouldn't be a problem). The actual problem is the way that PyDev sees things... inside PyDev, it doesn't work with the Eclipse abstraction of IFile, and works with actual java.io.File, so, when it comes the time to show it to the user, it translates that path to a path in the Eclipse abstraction to open the editor (sometimes that's possible and sometimes that's not -- i.e.: things in the system interpreter and not really in an eclipse project, but it should work nonetheless). Anyway, the problem arises when more than one match is found in the workspace... I guess that PyDev could add a better heuristic to find the proper IFile covering your use case... (i.e.: when a duplicate is found, try to resolve it as an actual python module and if one resolves, use it, as in your case, although the master has the nature, it shouldn't be able to resolve it as a module because the pythonpath is not configured). Please create a bug report for that (you can just point to this thread in the bug report). See: http://pydev.org/faq.html#how_do_i_report_a_bug Cheers, Fabio |
|
From: SourceForge.net <no...@so...> - 2011-05-05 11:22:36
|
The following forum message was posted by at http://sourceforge.net/projects/pydev/forums/forum/293649/topic/4517189: Hi I have the following workspace structure: ****************************************** MasterProject python-sub-project1 module1.py python-sub-project2 ... non-python-subproject 10 non-python-subproject 11 ... python-sub-project1 (one of those above but imported in workspace as independent project) module1.py python-sub-project2 (one of those above but imported in workspace as independent project) ****************************************** 1. MasterProject for some reason gets Python nature, albeit there are other (non-Python) subprojects as well. I hope it is totally OK? 2. When I work in python-sub-project1 as imported in workspace as independent project and press F3, then Eclipse+PyDev opens files in MasterProject's context. For example, I am in module1.py of idependent python-sub-project1 and press F3 for a identifier that defined in the same file module1.py, PyDev opens for the same file a new editor window MasterProject/python-sub-project1/module1.py . Not quite what desired... I tried to remove Pydev config and/or Python nature from the top project "MasterProject" to avoid these teleportations to top level context. However, it doesn't seem to be removable. I tried working sets -- it doesn't help. Only "Close" of MasterProject helps, but it means that I have to close it all the time when I have to descent to python-sub-project1 or open it again when return back to MasterProject :-/ Any comments, ideas? P.S. Many thanks for a great plugin, I can't even imagine a huge work behind it ! Kind regards Valery |
|
From: SourceForge.net <no...@so...> - 2011-04-29 10:42:37
|
The following forum message was posted by fabioz at http://sourceforge.net/projects/pydev/forums/forum/293649/topic/4509357: Python 2.5 doesn't support the with statement unless you add an import for it (Python 2.6 onwards doesn't require it): from __future__ import with_statement Cheers, Fabio |
|
From: SourceForge.net <no...@so...> - 2011-04-29 08:36:35
|
The following forum message was posted by at http://sourceforge.net/projects/pydev/forums/forum/293649/topic/4509357: The following code yields a number of errors in pydev code analysis: [code]with open('tmp.txt', 'w') as file: pass[/code] I get "undefined variable" for 'with' and 'as', and that 'open' was unexpected. My eclipse project is set to use Python 2.5 grammar. Is the above construct not supported in pydev? Or am I doing something wrong? |
|
From: SourceForge.net <no...@so...> - 2011-04-28 16:36:40
|
The following forum message was posted by mvschenkelberg at http://sourceforge.net/projects/pydev/forums/forum/293649/topic/4503814: That did it! Thanks! Max |
|
From: SourceForge.net <no...@so...> - 2011-04-27 00:17:23
|
The following forum message was posted by fabioz at http://sourceforge.net/projects/pydev/forums/forum/293649/topic/4503814: Ok, just exported it... please follow the instructions at: http://pydev.org/manual_101_install.html#pydev-certificate and let me know if it works for you (if it doesn't, please let me know so that I can update it). Cheers, Fabio |
|
From: SourceForge.net <no...@so...> - 2011-04-26 23:15:02
|
The following forum message was posted by fabioz at http://sourceforge.net/projects/pydev/forums/forum/293649/topic/4505513: Well, not sure if that's it, but your Project\src\TestPkg MUST have an __init__.py to be recognized as a python package, so, can you check if you have it? If you have it, can you attach your sample project to a bug report so that I can take a look on what may be wrong? Cheers, Fabio |
|
From: SourceForge.net <no...@so...> - 2011-04-26 21:57:27
|
The following forum message was posted by bsnahrwold at http://sourceforge.net/projects/pydev/forums/forum/293649/topic/4505513: I see that many other posts have been made regarding unresolved imports. I have really tried to review the docs but am not getting anywhere trying to import between packages. I have the followings code structure: Project\src\TestPkg\TestMod.py (containing TestClass) Project\src\TestPkg\TestUnitTest.py TestUnitTest.py contains: from TestMod import TestClass No problems. It all works with Project properties: Jython, grammmar version 2.2, Interpreseter jython 2.2.1 (points to c:\jython2.2.1\jython.jar) PYTHONPATH contains: /Project/src/ /Project/test I have tried configuring c:\jython2.2.1\registry with: python.path = C:\\PathtoProject\Project\src;C:\\PathtoProject\Project\test If I create a second package in this same project Project\test\UnittestPkg\TestUnitTest.py I am unable to import from TestPkg: from TestPkg.TestMode import TestClass Code Assist does not see TestPakg, only UnittestPkg. I had created a number of applications that perform this type of importing between packages, but outside of Eclipse and the src folder requirement. If I don't develop with src forders, I have no code assist. If I develop in Eclipse with Source folders, (whether in native Eclipse or Apcelerator 3.0), I get unresolved imports and code assist sees nothing. Is there a tutorial somewhre that describes how to do these kinds of imports between packages using jython as the interpreter in Apcelerator 3.0? Or does anyone have a recommendation on how to successfully configure these types of packages? Thanks, Bryan Nahrwold |
|
From: SourceForge.net <no...@so...> - 2011-04-25 21:54:13
|
The following forum message was posted by mvschenkelberg at http://sourceforge.net/projects/pydev/forums/forum/293649/topic/4503814: I was attempted to install pydev using the eclipse p2 director application and ran into untrusted certificate issues. I found this thread talking about it: https://sourceforge.net/tracker/index.php?func=detail&aid=3097682&group_id=85796 &atid=577329 I went to the eclipse forums to ask them about it and there is a bug report to allow the director to install jars with untrusted certificates but for now the workaround is to manually add the certificate you used to sign the jars to our keystore using: http://download.oracle.com/javase/1.4.2/docs/tooldocs/solaris/keytool.html#cacer ts I was wondering if you guys could post the certificates you used so I could import it and install via the director as it is required for our project. I used this command to extract out one of our certificates as a test: keytool -exportcert -alias aliasname -file aliasname.cer I was able to list the certificates we had through: keytool -list Max |
|
From: SourceForge.net <no...@so...> - 2011-04-22 23:25:35
|
The following forum message was posted by fabioz at http://sourceforge.net/projects/pydev/forums/forum/293649/topic/4494909: It's possible, but it's currently not in the UI (although that's already planned). To enable it, do in your code (note that pydevd will always be there when you debug, so, it doesn't really need to be in your pythonpath): import pydevd; pydevd.set_pm_excepthook(exceptions) where exceptions is a tuple of exceptions to be handled (if not passed, any uncaught exception will be gotten). Cheers, Fabio |
|
From: SourceForge.net <no...@so...> - 2011-04-21 23:48:06
|
The following forum message was posted by fabioz at http://sourceforge.net/projects/pydev/forums/forum/293649/topic/4498666: I haven't checked this, but I think it goes something like ... get the ScriptConsolePage ... scriptConsolePage.getViewer().getDocument().replace(offset, length, text) <-- just make sure to always only add content to the end of the document (adding to other places may have bad repercussions) -- whenever you add a new line, that line will be evaluated. Also, not sure exactly what you plan to do, but if you add content while it's waiting for a response of the server I'm not sure what will happen (it'll probably just ignore what you've written, but I may be wrong there). Cheers, Fabio |
|
From: SourceForge.net <no...@so...> - 2011-04-21 16:21:17
|
The following forum message was posted by at http://sourceforge.net/projects/pydev/forums/forum/293649/topic/4498666: Hello, I am trying to send python commands to the pydev console inside an eclipse plugin. I have tried this: MessageConsole console = findConsole ("Pydev Console [0]"); // finds the associated console MessageConsoleStream out = console.newMessageStream(); out.println("print 8"); // nothing happens Which does not seem to do anything. I probably need to use a different class somewhere in pydev to do this but I'm not sure where. Thanks, Brian |