pydev-code Mailing List for PyDev for Eclipse (Page 26)
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: Raul F. H. <ra...@em...> - 2008-11-27 19:27:47
|
Hi, On Tue, Nov 25, 2008 at 5:50 PM, Fabio Zadrozny <fa...@gm...> wrote: > Hi Raul, > > > Hi, > > > > I'm working on Maemo Eclipse Integration project > > (http://maemo.org/development/documentation/ide_integration/) which > provides > > ESbox (http://esbox.garage.maemo.org) and PluThon > > (http://pluthon.garage.maemo.org) Eclipse plug-ins for developing maemo > > (http://www.maemo.org) applications with C/C++ and Python. For Python > > support, we use PyDev plug-in as base for providing features which help > > Python developers to implement interesting applications for maemo > platform. > > > > So far, we have implemented some important, but not too complex features > on > > ESbox/PluThon based on PyDev. Now, we are facing difficulties to provide > > additional functionalities (e.g, suitable PyDev interpreter > configurators), > > because PyDev does not offer extension points to extend some > > functionalities, it has some restrictions on classes/methods/attributes > and > > other issues. > > Sorry, but I didn't exactly understand what you need in this area... > If you want you can change/implement what you need and send as patches > so that we can discuss on those. Also, just so that you know, not in > the next release (which should add support for python 3.0 and 2.6), > but in the other, there are plans to change the interpreter > configuration quite a bit (to have per-project settings and the > ability to specify environment variables for each interpreter). Good news Fabio :) In fact, what I need is a per-project settings for Python interpreter (for example, define the Python interpreter for a project, not for the workspace) and also extension points to insert PythonInterpreterManagers... this maybe sound strange, but I have the following problem: *Modules, types, etc. of a certain python interpreter are obtained by running the script on host PC. But, if I want to obtain information about a certain Python interpreter on a sandboxed environment? Or on a remote device? I need to run this script on different environments and get the information to be used on PyDev (on host PC) code indexing and auto-complete features, for example. Currently, we have two Python interpreter managers (PythonInterpreterManager and JythonInterpreterManager), which are set on PydevPlugin#start(...) *How these changes impacts on current Pydev structure? []'s --Raul |
From: Fabio Z. <fa...@gm...> - 2008-11-25 20:50:36
|
Hi Raul, > Hi, > > I'm working on Maemo Eclipse Integration project > (http://maemo.org/development/documentation/ide_integration/) which provides > ESbox (http://esbox.garage.maemo.org) and PluThon > (http://pluthon.garage.maemo.org) Eclipse plug-ins for developing maemo > (http://www.maemo.org) applications with C/C++ and Python. For Python > support, we use PyDev plug-in as base for providing features which help > Python developers to implement interesting applications for maemo platform. > > So far, we have implemented some important, but not too complex features on > ESbox/PluThon based on PyDev. Now, we are facing difficulties to provide > additional functionalities (e.g, suitable PyDev interpreter configurators), > because PyDev does not offer extension points to extend some > functionalities, it has some restrictions on classes/methods/attributes and > other issues. Sorry, but I didn't exactly understand what you need in this area... If you want you can change/implement what you need and send as patches so that we can discuss on those. Also, just so that you know, not in the next release (which should add support for python 3.0 and 2.6), but in the other, there are plans to change the interpreter configuration quite a bit (to have per-project settings and the ability to specify environment variables for each interpreter). > > As an outcomer on this list, I do not want to show a lack of respect for > your good work :) Please, point me to any task or keep me away from any > developing work. > > I'll spend part of my time to look for problems and solutions on PyDev. In > addition, I'll often send reports to this list in order discuss some > possible solutions and add-ons we would like to develop for PyDev with > tracks in Bugzilla and patches as well. I'll be waiting for those ;-) Cheers, Fabio |
From: Dave R. <dro...@sb...> - 2008-11-25 01:04:50
|
Check out Fabio's instructions on the Developer's Guide: http://pydev.sourceforge.net/developers.html After I made the org.python.pydev.core/tests/org/python/pydev/core/TestDependent.java file, I also had to adjust the code in org.python.pydev/tests/org/python/pydev/jythontests/JythonTest.java to reflect my environment. (I'm on Ubuntu Linux currently.) Have a good one, Dave --- On Mon, 11/24/08, Raul Fernandes Herbster <ra...@em...> wrote: From: Raul Fernandes Herbster <ra...@em...> Subject: [Pydev-code] PyDev tests do not build To: pyd...@li... Date: Monday, November 24, 2008, 1:20 PM Hi, I'm facing problems to build PyDev source code (tag/pydev_1_3_24). On unit tests, the class org.python.pydev.core.TestDependent cannot be resolved. In fact, org.python.pydev.core.TestDependent does not exist. Any ideas? []'s --Raul ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/_______________________________________________ pydev-code mailing list pyd...@li... https://lists.sourceforge.net/lists/listinfo/pydev-code |
From: C. Y. G. G. <the...@gm...> - 2008-11-24 22:07:59
|
Hello, 2008/11/24 Raul Fernandes Herbster <ra...@em...>: > Hi, > > I'm facing problems to build PyDev source code (tag/pydev_1_3_24). On unit > tests, the class org.python.pydev.core.TestDependent cannot be resolved. In > fact, org.python.pydev.core.TestDependent does not exist. Any ideas? > It does exist, but it is a bit difficult to find it, don't worry :) It is part of the org.python.pydev.core project, inside the tests/org/python/pydev/core folder. You need to change some properties in order to run the tests, but it is not really hard to do if you take a look at the values already set. Kind regards, Cristina |
From: Raul F. H. <ra...@em...> - 2008-11-24 21:20:58
|
Hi, I'm facing problems to build PyDev source code (tag/pydev_1_3_24). On unit tests, the class org.python.pydev.core.TestDependent cannot be resolved. In fact, org.python.pydev.core.TestDependent does not exist. Any ideas? []'s --Raul |
From: Raul F. H. <ra...@em...> - 2008-11-24 13:30:50
|
Hi, I'm working on *Maemo Eclipse Integration* project ( http://maemo.org/development/documentation/ide_integration/) which provides ESbox (http://esbox.garage.maemo.org) and PluThon ( http://pluthon.garage.maemo.org) Eclipse plug-ins for developing maemo ( http://www.maemo.org) applications with C/C++ and Python. For Python support, we use PyDev plug-in as base for providing features which help Python developers to implement interesting applications for maemo platform. So far, we have implemented some important, but not too complex features on ESbox/PluThon based on PyDev. Now, we are facing difficulties to provide additional functionalities (e.g, suitable PyDev interpreter configurators), because PyDev does not offer extension points to extend some functionalities, it has some restrictions on classes/methods/attributes and other issues. As an outcomer on this list, I do not want to show a lack of respect for your good work :) Please, point me to any task or keep me away from any developing work. I'll spend part of my time to look for problems and solutions on PyDev. In addition, I'll often send reports to this list in order discuss some possible solutions and add-ons we would like to develop for PyDev with tracks in Bugzilla and patches as well. Best regards, --Raul. -- Raul Fernandes Herbster Embedded and Pervasive Computing Laboratory - http://embedded.ufcg.edu.br in cooperation with Nokia Institute of Tecnology - http://indt.org.br/ |
From: Fabio Z. <fa...@gm...> - 2008-10-27 20:11:29
|
Hi All, Pydev and Pydev Extensions 1.3.24 have been released This is a high-priority release to fix some blocker bugs (that's why it was released in such a short time from the last release) Details on Pydev Extensions: http://www.fabioz.com/pydev Details on Pydev: http://pydev.sf.net Details on its development: http://pydev.blogspot.com Release Highlights in Pydev Extensions: ----------------------------------------------------------------- Code-analysis: Import was not recognized on code-analysis on some specific cases Release Highlights in Pydev: ---------------------------------------------- * Code-completion: when a relative import was used from __init__ and the imported module used a token from the __init__ in a 'full' way, pydev did not recognize it * Debugger: Fixed debugger halting problem * Debugger and Jython: Debugger working with Jython (itertools and pid not available) 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 many goodies such as code completion, syntax highlighting, syntax analysis, refactor, debug and many others. Cheers, -- Fabio Zadrozny ------------------------------------------------------ Software Developer Aptana http://aptana.com/python Pydev Extensions http://www.fabioz.com/pydev Pydev - Python Development Enviroment for Eclipse http://pydev.sf.net http://pydev.blogspot.com |
From: Fabio Z. <fa...@gm...> - 2008-10-26 13:27:47
|
Hi All, Pydev and Pydev Extensions 1.3.23 have been released Details on Pydev Extensions: http://www.fabioz.com/pydev Details on Pydev: http://pydev.sf.net Details on its development: http://pydev.blogspot.com Release Highlights in Pydev Extensions: ----------------------------------------------------------------- * Code-analysis: Fixed condition that could make code-analysis get into a halt depending on the code structure * Remote Debugger: Can properly debug multiple processes concurrently * Remote Debugger: Makes the proper setup of breakpoints when pydevd.settrace is called with suspend=False Release Highlights in Pydev: ---------------------------------------------- * Can cancel scanning of files (Radim Kubacki) * Detection of symlink cycles inside of the pythonpath structure (could enter in a loop) (Radim Kubacki) * Removed log message if log is not enabled * .pyc remover not giving error anymore * Fixed code-completion bug when importing token with the same name of module where it's declared (datetime.datetime) * Assign with tuple not being correctly handled in the type-inference engine * Nature no longer initialized by shutdown * Code-completion works when inner method is declared without self * __all__: when imported no longer filters out the builtins from the current module on a wild import * Fixed problem in update site and Eclipse 3.4 (after installed could prevent other plugins from being installed -- compatibility problem on eclipse 3.4 and old versions of Pydev) 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 many goodies such as code completion, syntax highlighting, syntax analysis, refactor, debug and many others. Cheers, -- Fabio Zadrozny ------------------------------------------------------ Software Developer Aptana http://aptana.com/python Pydev Extensions http://www.fabioz.com/pydev Pydev - Python Development Enviroment for Eclipse http://pydev.sf.net http://pydev.blogspot.com |
From: Fabio Z. <fa...@gm...> - 2008-10-10 01:27:44
|
> I am trying to develop a new wizard for the creation of Python > classes, but I don't know how to add a menu entry in the File > New > menu. I created a PythonClassWizard class, which has been directly > copied from the PythonModuleWizard class, it has nothing special yet. > After that, I edited the plugin.xml file from the org.python.pydev > project, adding a new wizard to the org.eclipse.ui.newWizards > extension, but it is only shown in the New dialog. > > For the menu entry, I have set the "project" attribute of the wizard > as "true" and also added a new commonWizard to the > org.eclipse.ui.navigator.navigatorContent extension, but it didn't > work anyway. Could somebody help me? > > I attach the plugin.xml of the project to clarify. You also need to add it in org.python.pydev.ui.perspective.PythonPerspectiveFactory#defineActions (I think you also have to reset your current perspective for it to be shown... but I'm not really sure about it). Cheers, Fabio |
From: C. Y. G. G. <the...@gm...> - 2008-10-09 10:41:51
|
Hello list, I am trying to develop a new wizard for the creation of Python classes, but I don't know how to add a menu entry in the File > New menu. I created a PythonClassWizard class, which has been directly copied from the PythonModuleWizard class, it has nothing special yet. After that, I edited the plugin.xml file from the org.python.pydev project, adding a new wizard to the org.eclipse.ui.newWizards extension, but it is only shown in the New dialog. For the menu entry, I have set the "project" attribute of the wizard as "true" and also added a new commonWizard to the org.eclipse.ui.navigator.navigatorContent extension, but it didn't work anyway. Could somebody help me? I attach the plugin.xml of the project to clarify. Thanks in advance :) |
From: Fabio Z. <fa...@gm...> - 2008-10-03 00:56:53
|
Hi All, Pydev and Pydev Extensions 1.3.22 have been released Details on Pydev Extensions: http://www.fabioz.com/pydev Details on Pydev: http://pydev.sf.net Details on its development: http://pydev.blogspot.com Release Highlights in Pydev Extensions: ----------------------------------------------------------------- * Code-analysis: Option to analyze only active editor * Code-analysis: works on case where imported module has same name of builtin. Release Highlights in Pydev: ---------------------------------------------- * Debugger: Pythonpath is the same in debug and regular modes (sys.path[0] is the same directory as the file run) * Debugger: Choices for paths not found are persisted * Code-completion: If __all__ is defined with runtime elements (and not only in a single assign statement), it's ignored for code-completion purposes * Code-completion: Works on case where imported module has same name of builtin * Editor: Cursor settings no longer overridden * Interpreter config: "email" automatically added to the "forced builtins" * Parser: Correctly recognizing absolute import with 3 or more levels * Syntax check: Option analyze only active editor * getpass.getpass: No longer halts when run from pydev (but will show the password being written) * Remove error markers: Context menu in folders to remove error markers created 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 many 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: Radim K. <ra...@ku...> - 2008-09-30 23:30:17
|
Hi, I want to build udate our instalation to pydev + pydev_ext 1.3.21 and because we have some patches for pydev I want to build this part from sources (to be sure it is compatible with matching pydev_ext). Why there is no pydev_1_3_21 tag in repository? How can I update to appropriate state of CVS repository? Or any other suggestion? One of the reasons is problem with import from modules like socket. -Radim |
From: Radim K. <ra...@ku...> - 2008-09-30 23:24:11
|
sounds good to me. Thanks, Radim On Tue, Sep 30, 2008 at 3:58 PM, Fabio Zadrozny <fa...@gm...> wrote: >> I want to build udate our instalation to pydev + pydev_ext 1.3.21 and >> because we have some patches for pydev I want to build this part from >> sources (to be sure it is compatible with matching pydev_ext). Why >> there is no pydev_1_3_21 tag in repository? How can I update to >> appropriate state of CVS repository? Or any other suggestion? > > Actually, 1.3.21 wasn't an official release -- it should've been > called 1.3.20.alpha1 (the latest is 1.3.20). But now it's too late to > change that... So, it doesn't have a tag in the repository. > >> >> One of the reasons is problem with import from modules like socket. >> > > I'm planning on doing another release tomorrow (I've done it locally > and I'm testing it just to see if there's something missing... and it > fixes that socket module problem). So, if you can wait for that, I > think it's better. > > Cheers, > > Fabio > |
From: Fabio Z. <fa...@gm...> - 2008-09-30 22:58:47
|
> I want to build udate our instalation to pydev + pydev_ext 1.3.21 and > because we have some patches for pydev I want to build this part from > sources (to be sure it is compatible with matching pydev_ext). Why > there is no pydev_1_3_21 tag in repository? How can I update to > appropriate state of CVS repository? Or any other suggestion? Actually, 1.3.21 wasn't an official release -- it should've been called 1.3.20.alpha1 (the latest is 1.3.20). But now it's too late to change that... So, it doesn't have a tag in the repository. > > One of the reasons is problem with import from modules like socket. > I'm planning on doing another release tomorrow (I've done it locally and I'm testing it just to see if there's something missing... and it fixes that socket module problem). So, if you can wait for that, I think it's better. Cheers, Fabio |
From: Fabio Z. <fa...@gm...> - 2008-09-15 01:13:27
|
> I think that doing it the other way around and passing additional arguments to the java and attaching the java debugger as a remote debugger should work too... But one of those should be the remote debugger... > > Yes, I agree that would probably work. It is a lot more awkward than just pressing the debug button, but it would probably work. > > But since PyDev is launching the Java process to run Jython, why not just activate the standard jdwp debugging agent? That's possible, but needs digging into JDT internals to make it work > > My first stab at this was to make org.python.pydev.debug.ui.launching.AbstractLaunchConfigurationDelegate extend org.eclipse.jdt.launching.JavaLaunchDelegate. This successfully added the -agentlib:jdwp argument to the JVM command line, but it is not sufficient to get Eclipse to automatically connect to the launched process. The console says: > > FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197) > ERROR: transport error 202: connect failed: Connection refused > ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510) > JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [../../../src/share/back/debugInit.c:690] > > This apparently comes from the launched process (not Eclipse), because I get the same error message when I launch using the -agentlib:jdwp argument from the command line outside of Eclipse. > > I wish I knew more about how to initialize Eclipse's JDT package properly... I think it goes a bit deeper than just passing those flags...(but I haven't looked it myself). Still, if you're up to the task and manage to get it working, please submit a patch with it (or you can enter a feature request, but I'm not sure when I'll be able to tackle that). Cheers, Fabio |
From: Andrew M. <mi...@nd...> - 2008-09-12 20:42:34
|
Fabio Zadrozny wrote: > > The Pydev remote debugger does not help me stop at breakpoints in > Java code. It still only stops at breakpoints in Python code. Am > I missing something? > > > Actually, what I said is that you should launch from the java debugger > and later go on and from your code call pydevd.settrace() to attach to > the remote debugger. > > I think that doing it the other way around and passing additional > arguments to the java and attaching the java debugger as a remote > debugger should work too... But one of those should be the remote > debugger... Yes, I agree that would probably work. It is a lot more awkward than just pressing the debug button, but it would probably work. But since PyDev is launching the Java process to run Jython, why not just activate the standard jdwp debugging agent? My first stab at this was to make org.python.pydev.debug.ui.launching.AbstractLaunchConfigurationDelegate extend org.eclipse.jdt.launching.JavaLaunchDelegate. This successfully added the -agentlib:jdwp argument to the JVM command line, but it is not sufficient to get Eclipse to automatically connect to the launched process. The console says: FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197) ERROR: transport error 202: connect failed: Connection refused ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510) JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [../../../src/share/back/debugInit.c:690] This apparently comes from the launched process (not Eclipse), because I get the same error message when I launch using the -agentlib:jdwp argument from the command line outside of Eclipse. I wish I knew more about how to initialize Eclipse's JDT package properly... --Andy P.S. Thanks for the great documentation, including the pydev manual_101. |
From: Fabio Z. <fa...@gm...> - 2008-09-12 19:17:14
|
> The Pydev remote debugger does not help me stop at breakpoints in Java > code. It still only stops at breakpoints in Python code. Am I missing > something? > Actually, what I said is that you should launch from the java debugger and later go on and from your code call pydevd.settrace() to attach to the remote debugger. I think that doing it the other way around and passing additional arguments to the java and attaching the java debugger as a remote debugger should work too... But one of those should be the remote debugger... Cheers, Fabio > > > I can stop at Java breakpoints when I run my python script from Eclipse > directly with Jython (i.e., without the pydevd.py wrapper). In this > scenario, my Eclipse launcher produces a command line like this: > > C:\Program Files\Java\jdk1.6.0_02\bin\javaw.exe > -agentlib:jdwp=transport=dt_socket,suspend=y,address=localhost:4088 > -Dfile.encoding=Cp1252 > -classpath C:\jython2.2.1\jython.jar org.python.util.jython > src\example.py > > However, when I run my python script from Eclipse using PyDev, there is no > -agentlib:jdwp in the command line: > > C:\Program Files\Java\jdk1.6.0_02\bin\javaw.exe > -classpath "C:\jython2.2.1\jython.jar;...;C:\Program > Files\Java\jdk1.6.0_02\jre\lib\ext\tools.jar" > -Dpython.security.respectJavaAccessibility=false > org.python.util.jython > pydevd.py > --vm_type jython --client localhost --port 3088 --file src\example.py > > I believe the -agentlib:jdwp is the link between the launched process and > the Eclipse debugger. > > I think all that I need is for the Java process spawned by PyDev to use the > -agentlib:jdwp argument. > > Any idea how we could enable that in PyDev? Seems like an enhancement that > would benefit Jython users generally. > > --Andy > > > Fabio Zadrozny wrote: > > You should be able to start your application from the java debugger and use > the Pydev Extensions remote debugger. See > http://fabioz.com/pydev/manual_adv_remote_debugger.html for details on > using it. > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > pydev-code mailing list > pyd...@li... > https://lists.sourceforge.net/lists/listinfo/pydev-code > > |
From: Andrew M. <mi...@nd...> - 2008-09-12 19:11:43
|
The Pydev remote debugger does not help me stop at breakpoints in Java code. It still only stops at breakpoints in Python code. Am I missing something? I can stop at Java breakpoints when I run my python script from Eclipse directly with Jython (i.e., without the pydevd.py wrapper). In this scenario, my Eclipse launcher produces a command line like this: C:\Program Files\Java\jdk1.6.0_02\bin\javaw.exe -agentlib:jdwp=transport=dt_socket,suspend=y,address=localhost:4088 -Dfile.encoding=Cp1252 -classpath C:\jython2.2.1\jython.jar org.python.util.jython src\example.py However, when I run my python script from Eclipse using PyDev, there is no -agentlib:jdwp in the command line: C:\Program Files\Java\jdk1.6.0_02\bin\javaw.exe -classpath "C:\jython2.2.1\jython.jar;...;C:\Program Files\Java\jdk1.6.0_02\jre\lib\ext\tools.jar" -Dpython.security.respectJavaAccessibility=false org.python.util.jython pydevd.py --vm_type jython --client localhost --port 3088 --file src\example.py I believe the -agentlib:jdwp is the link between the launched process and the Eclipse debugger. I think all that I need is for the Java process spawned by PyDev to use the -agentlib:jdwp argument. Any idea how we could enable that in PyDev? Seems like an enhancement that would benefit Jython users generally. --Andy Fabio Zadrozny wrote: > You should be able to start your application from the java debugger > and use the Pydev Extensions remote debugger. See > http://fabioz.com/pydev/manual_adv_remote_debugger.html for details on > using it. |
From: Gregory G. <gr...@al...> - 2008-09-12 11:15:41
|
This may be off-topic for this list, but transparent stepping-through between languages was something I thought could be done nicely with JPDA. I started a project for doing that because I thought stepping between Java and SQL stored procedures could be useful, but as this was largely to fulfill a school requirement, it got to just that point and no further. So if anyone wants to continue it, I would love it - see http://db-db.sourceforge.net. On Thu, Sep 11, 2008 at 4:19 PM, Fabio Zadrozny <fa...@gm...> wrote: > You should be able to start your application from the java debugger and use > the Pydev Extensions remote debugger. See > http://fabioz.com/pydev/manual_adv_remote_debugger.html for details on > using it. > > Cheers, > > Fabio > > > On Thu, Sep 11, 2008 at 3:56 PM, Andrew Mickish <mi...@nd...> wrote: > >> I want to stop at breakpoints in the Java code called by my python >> script (via Jython). >> >> However, PyDev's Eclipse debugging interface is handled exclusively by >> the pydevd.py wrapper, and there is no debugger connection to the >> underlying JVM. >> >> I thought to add a launcher argument like >> -agentlib:jdwp=transport=dt_socket,suspend=y,address=localhost:2959, but >> this just results in an error: >> >> ERROR: transport error 202: connect failed: Connection refused >> ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510) >> JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports >> initialized [../../../src/share/back/debugInit.c:690] >> FATAL ERROR in native method: JDWP No transports initialized, >> jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197) >> >> Any ideas about how I can simultaneously debug the script and the Java >> code it calls? >> >> Thanks! >> >> --Andrew Mickish >> >> >> >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's >> challenge >> Build the coolest Linux based applications with Moblin SDK & win great >> prizes >> Grand prize is a trip for two to an Open Source event anywhere in the >> world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> pydev-code mailing list >> pyd...@li... >> https://lists.sourceforge.net/lists/listinfo/pydev-code >> > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > pydev-code mailing list > pyd...@li... > https://lists.sourceforge.net/lists/listinfo/pydev-code > > |
From: Fabio Z. <fa...@gm...> - 2008-09-11 23:19:38
|
You should be able to start your application from the java debugger and use the Pydev Extensions remote debugger. See http://fabioz.com/pydev/manual_adv_remote_debugger.html for details on using it. Cheers, Fabio On Thu, Sep 11, 2008 at 3:56 PM, Andrew Mickish <mi...@nd...> wrote: > I want to stop at breakpoints in the Java code called by my python > script (via Jython). > > However, PyDev's Eclipse debugging interface is handled exclusively by > the pydevd.py wrapper, and there is no debugger connection to the > underlying JVM. > > I thought to add a launcher argument like > -agentlib:jdwp=transport=dt_socket,suspend=y,address=localhost:2959, but > this just results in an error: > > ERROR: transport error 202: connect failed: Connection refused > ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510) > JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports > initialized [../../../src/share/back/debugInit.c:690] > FATAL ERROR in native method: JDWP No transports initialized, > jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197) > > Any ideas about how I can simultaneously debug the script and the Java > code it calls? > > Thanks! > > --Andrew Mickish > > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > pydev-code mailing list > pyd...@li... > https://lists.sourceforge.net/lists/listinfo/pydev-code > |
From: Andrew M. <mi...@nd...> - 2008-09-11 18:56:40
|
I want to stop at breakpoints in the Java code called by my python script (via Jython). However, PyDev's Eclipse debugging interface is handled exclusively by the pydevd.py wrapper, and there is no debugger connection to the underlying JVM. I thought to add a launcher argument like -agentlib:jdwp=transport=dt_socket,suspend=y,address=localhost:2959, but this just results in an error: ERROR: transport error 202: connect failed: Connection refused ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510) JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [../../../src/share/back/debugInit.c:690] FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197) Any ideas about how I can simultaneously debug the script and the Java code it calls? Thanks! --Andrew Mickish |
From: Radim K. <ra...@ku...> - 2008-08-27 22:48:51
|
Has your python fragment correct dependency on pydev plugins? When I was developing against CVS checkout and added version requirement like org.python.pydev; version > 1.3.17 I had to update MANIFEST.MF that contains some obsolete number and is only replaced during release build. Did you check .log file for warnings and message if there is something suspicious? -Radim On Wed, Aug 20, 2008 at 10:44 PM, Florian Shkurti <flo...@gm...> wrote: > Hi everyone, > > I am facing a very weird problem while trying to create an Eclipse fragment > project that depends on the plugins org.python.pydev and > org.python.pydev.core: > > I have a main Eclipse plugin and two fragment projects that add optional > functionality to the plugin. Each of the fragments has only one source > file, which adds a nature to a given IProject. The first fragment adds the > C nature and the second fragment adds the Python nature (via > PythonNature.addNature()). > The two fragments also extend an extension point defined in the main plugin. > > Here's the weird part: the two fragments are almost identical (their ids are > different of > course) but only the C fragment is recognized at runtime as an extension of > said extension > point, while the Python fragment is not. I see this via > Platform.getExtensionRegistry().getExtensionPoint(...).getExtensions() > > I believe the extension point is defined correctly in the main plugin > and the two fragments also extend it correctly. The weirdest part is that > when I comment out PythonNature.addNature() in the Python fragment > (and I also remove the dependencies on org.python.pydev and > org.python.pydev.core) the Python fragment *is* recognized by the extension > registry. > > This leads me to believe that for some reason including code from > org.python.pydev > and org.python.pydev.core in an extension makes it "invalid". Can anyone > help me find > a way to correct this? Let me know if you need some actual code. > > Thanks in advance, > Florian > > > > > > > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > pydev-code mailing list > pyd...@li... > https://lists.sourceforge.net/lists/listinfo/pydev-code > > |
From: Fabio Z. <fa...@gm...> - 2008-08-23 02:51:54
|
Hi All, Pydev and Pydev Extensions 1.3.20 have been released Details on Pydev Extensions: http://www.fabioz.com/pydev Details on Pydev: http://pydev.sf.net Details on its development: http://pydev.blogspot.com Release Highlights in Pydev Extensions: ----------------------------------------------------------------- * Code Analysis: Show error if using token not defined in __all__ in wild import. * Search: Working with eclipse 3.4. Release Highlights in Pydev: ---------------------------------------------- * Pydev Package Explorer: Editor-link does not remove focus from current editor if it's already a match (bug when compare editor was opened) * Pydev debugger: Showing set and frozenset contents * Pydev debugger: Watch working in eclipse 3.4 * Pydev debugger: Breakpoint properties accept new lines and tabs * Pydev debugger: Workaround for python bug when filenames don't have absolute paths correctly generated * Pydev code-completion: Wild import will only show tokens defined in __all__ (if it's available) * Interactive console: Fixed problem when more attempts to connect were needed * Interactive console: Fixed console integration problem with other plugins because of interfaces not properly implemented * Incremental find: Backspace works correctly * Launch icons: Transparent background (thanks to Radim Kubacki) * Code Formatter: Exponentials handled correctly * Launching: Unit-test and code-coverage may launch multiple folders/files at once * Code coverage: Number format exception no longer given when trying to show lines not executed in the editor and all lines are executed * Auto-indent: Fixed issue when using tabs which could result in spaces being added 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 many 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: Florian S. <flo...@gm...> - 2008-08-21 05:43:54
|
Hi everyone, I am facing a very weird problem while trying to create an Eclipse fragment project that depends on the plugins org.python.pydev and org.python.pydev.core: I have a main Eclipse plugin and two fragment projects that add optional functionality to the plugin. Each of the fragments has only one source file, which adds a nature to a given IProject. The first fragment adds the C nature and the second fragment adds the Python nature (via PythonNature.addNature()). The two fragments also extend an extension point defined in the main plugin. Here's the weird part: the two fragments are almost identical (their ids are different of course) but only the C fragment is recognized at runtime as an extension of said extension point, while the Python fragment is not. I see this via Platform.getExtensionRegistry().getExtensionPoint(...).getExtensions() I believe the extension point is defined correctly in the main plugin and the two fragments also extend it correctly. The weirdest part is that when I comment out PythonNature.addNature() in the Python fragment (and I also remove the dependencies on org.python.pydev and org.python.pydev.core) the Python fragment *is* recognized by the extension registry. This leads me to believe that for some reason including code from org.python.pydev and org.python.pydev.core in an extension makes it "invalid". Can anyone help me find a way to correct this? Let me know if you need some actual code. Thanks in advance, Florian |
From: Radim K. <ra...@ku...> - 2008-08-05 23:17:14
|
Comments below. On Fri, Aug 1, 2008 at 12:07 PM, Fabio Zadrozny <fa...@gm...> wrote: > Hi Radim, > > Getting back to answer some e-mails (as the 1.3.19 is finally out)... > >> - speed and support for included/excluded resources: currently the >> initial scan of platform and project takes too long + it tries to scan >> recursively everything under the path root directories. This is very >> unfortunate if your project is using SCM shared by more projects and >> you really do not want to analyze unrelated sources. > > I think that the initial scan should be much faster now (with the > improvements on pydev extensions)... also, I think it's a bit strange on > having the source that way if they should be unrelated (can you give some > examples on the organization and why it's like that -- so that I can > understand better what's really needed for solving what you want). > Few ideas of an arrangement(s) that can lead you to that situation: - you have more project that people work on (+ various internally developed libraries) - there is one large repository holding all sources (to encourage reuse) - there are not only Python source but also other languages mixed but for some (usually historical) reason root of python path is also a parent of folders where Java/C/C++/... sources are stored as well - some of those above + to avoid large checkout/view of repository you can use a view over the whole repository And yes, analysis phase seems to be faster now. -Radim > > Cheers, > > Fabio > |