Thread: [Pydev-users] PyDev 4.4.0 Released
Brought to you by:
fabioz
From: Fabio Z. <fa...@gm...> - 2015-10-06 12:00:08
|
Release Highlights: ------------------------------- * Improved PyDev Package Explorer to give more information when all elements are filtered. * Code completion improvements: when a parameter is typed in the docstring, assigning it to an instance gives proper code-completion results when accessing the instance. * Fixed issues dealing with ansi colors in the interactive console. * When autopep8 is applied as the code formatting engine, the region selected is used to specify the lines for formatting. * Minor improvements in the debugger. What is PyDev? --------------------------- PyDev is an open-source Python IDE on top of Eclipse for Python, Jython and IronPython development. It comes with goodies such as code completion, syntax highlighting, syntax analysis, code analysis, refactor, debug, interactive console, etc. Details on PyDev: http://pydev.org Details on its development: http://pydev.blogspot.com What is LiClipse? --------------------------- LiClipse is a PyDev standalone with goodies such as support for Multiple cursors, theming, TextMate bundles and a number of other languages such as Django Templates, Jinja2, Kivy Language, Mako Templates, Html, Javascript, etc. It's also a commercial counterpart which helps supporting the development of PyDev. Details on LiClipse: http://www.liclipse.com/ Cheers, -- Fabio Zadrozny ------------------------------------------------------ Software Developer LiClipse http://www.liclipse.com PyDev - Python Development Environment for Eclipse http://pydev.org http://pydev.blogspot.com PyVmMonitor - Python Profiler http://www.pyvmmonitor.com/ |
From: peter <com...@ya...> - 2015-12-15 12:32:05
|
hi, im using eclipse 4.5.1 and pydev from http://pydev.org/updates. breakpoints are just ignored and the program runs to the end, it works for a method only containing a print statement...there pydev stops to show debugging information. but for another method in the same file, it does not work. that particular method as a for loop enclosing another, but the debugger just skipts straight to the end of that method and shows the output after both loops ran to the end just above the first loop is a breakpoint. adding: import pydevd pydevd.settrace() source:http://stackoverflow.com/questions/9486871/pydev-breakpoints-not-working to the code says it cant find "pydevd" but the code stops a line below settrace and i can run the for loops step by step. any ideas? |
From: Fabio Z. <fa...@gm...> - 2015-12-15 15:44:27
|
On Tue, Dec 15, 2015 at 10:34 AM, peter <com...@ya...> wrote: > hi, > > > im using eclipse 4.5.1 and pydev from http://pydev.org/updates. > breakpoints are just ignored and the program runs to the end, it works > for a method only containing a print statement...there pydev stops to > show debugging information. > > but for another method in the same file, it does not work. > that particular method as a for loop enclosing another, but the debugger > just skipts straight to the end of that method and shows the output > after both loops ran to the end > > just above the first loop is a breakpoint. > > adding: > import pydevd > pydevd.settrace() > > source: > http://stackoverflow.com/questions/9486871/pydev-breakpoints-not-working > > to the code says it cant find "pydevd" but the code stops a line below > settrace and i can run the for loops step by step. > > > any ideas? Well, doing pydevd.settrace() adds a programatic breakpoint, so, it should always work... as for why it doesn't work, on some situations Python itself kills the debugging (for instance, if you have a StackOverflowError anywhere, even if treated, it'll break the debugger), and I know it can have some issues on some frameworks... Can you give more details on your code? Do you have some code you can share where I can reproduce the issue? Best Regards, Fabio |
From: peter <com...@ya...> - 2015-12-15 18:42:41
|
On 12/15/2015 04:44 PM, Fabio Zadrozny wrote: > > On Tue, Dec 15, 2015 at 10:34 AM, peter <com...@ya... > <mailto:com...@ya...>> wrote: > > hi, > > > im using eclipse 4.5.1 and pydev from http://pydev.org/updates. > breakpoints are just ignored and the program runs to the end, it works > for a method only containing a print statement...there pydev stops to > show debugging information. > > but for another method in the same file, it does not work. > that particular method as a for loop enclosing another, but the > debugger > just skipts straight to the end of that method and shows the output > after both loops ran to the end > > just above the first loop is a breakpoint. > > adding: > import pydevd > pydevd.settrace() > > source:http://stackoverflow.com/questions/9486871/pydev-breakpoints-not-working > > to the code says it cant find "pydevd" but the code stops a line below > settrace and i can run the for loops step by step. > > > any ideas? > > > Well, doing pydevd.settrace() adds a programatic breakpoint, so, it > should always work... as for why it doesn't work, on some situations > Python itself kills the debugging (for instance, if you have a > StackOverflowError anywhere, even if treated, it'll break the > debugger), and I know it can have some issues on some frameworks... > Can you give more details on your code? Do you have some code you can > share where I can reproduce the issue? > > Best Regards, > > Fabio set a breakpoint inside the method something, on my pc that thing prints 100 numbers and then quits instead of waiting for me class perfect_class(object): def __init__(self): pass def something(self): for i in range(10): for j in range(10): print i if __name__ == '__main__': x = perfect_class() x.something() |
From: Fabio Z. <fa...@gm...> - 2015-12-15 18:52:35
|
On Tue, Dec 15, 2015 at 4:44 PM, peter <com...@ya...> wrote: > On 12/15/2015 04:44 PM, Fabio Zadrozny wrote: > > > On Tue, Dec 15, 2015 at 10:34 AM, peter <com...@ya...> wrote: > >> hi, >> >> >> im using eclipse 4.5.1 and pydev from <http://pydev.org/updates> >> http://pydev.org/updates. >> breakpoints are just ignored and the program runs to the end, it works >> for a method only containing a print statement...there pydev stops to >> show debugging information. >> >> but for another method in the same file, it does not work. >> that particular method as a for loop enclosing another, but the debugger >> just skipts straight to the end of that method and shows the output >> after both loops ran to the end >> >> just above the first loop is a breakpoint. >> >> adding: >> import pydevd >> pydevd.settrace() >> >> source: >> http://stackoverflow.com/questions/9486871/pydev-breakpoints-not-working >> >> to the code says it cant find "pydevd" but the code stops a line below >> settrace and i can run the for loops step by step. >> >> >> any ideas? > > > Well, doing pydevd.settrace() adds a programatic breakpoint, so, it > should always work... as for why it doesn't work, on some situations Python > itself kills the debugging (for instance, if you have a StackOverflowError > anywhere, even if treated, it'll break the debugger), and I know it can > have some issues on some frameworks... Can you give more details on your > code? Do you have some code you can share where I can reproduce the issue? > > Best Regards, > > Fabio > > > > > > set a breakpoint inside the method something, on my pc that thing prints > 100 numbers and then quits instead of waiting for me > > > > > class perfect_class(object): > > > def __init__(self): > pass > > > > def something(self): > > for i in range(10): > > for j in range(10): > > print i > > > > if __name__ == '__main__': > x = perfect_class() > x.something() > > Humm, tested it here and it works for me... Please create a bug report for that at https://sw-brainwy.rhcloud.com/tracker/PyDev/ and let's continue the talk about this there... In the report, please specify your os and python version. Cheers, Fabio |
From: peter <com...@ya...> - 2015-12-17 17:12:36
|
hi, when creating a new project, selecting jython and using the default auto config i get: Errors getting info on discovered interpreter(s). See error log for details. java.lang.RuntimeException: No output was in the standard output when trying to create the interpreter info for: /usr/share/java/jython-2.5.3.jar The error output contains:>>Exception in thread "main" java.lang.NoClassDefFoundError: com/google/common/collect/MapMaker at org.python.core.PyType.fromClass(PyType.java:1280) at org.python.core.PyObject.<init>(PyObject.java:66) at org.python.core.PyBuiltinCallable.<init>(PyBuiltinCallable.java:21) at org.python.core.PyBuiltinMethod.<init>(PyBuiltinMethod.java:16) at org.python.core.PyBuiltinMethodNarrow.<init>(PyBuiltinMethodNarrow.java:24) at org.python.core.PyType$type___subclasses___exposer.<init>(Unknown Source) at org.python.core.PyType$PyExposer.<init>(Unknown Source) at org.python.core.PyType.<clinit>(PyType.java) at org.python.core.PyObject.<init>(PyObject.java:66) at org.python.core.PyBuiltinCallable.<init>(PyBuiltinCallable.java:21) at org.python.core.PyBuiltinMethod.<init>(PyBuiltinMethod.java:16) at org.python.core.PyBuiltinMethodNarrow.<init>(PyBuiltinMethodNarrow.java:24) at org.python.core.PyDataDescr$getset_descriptor___get___exposer.<init>(Unknown Source) at org.python.core.PyDataDescr$PyExposer.<init>(Unknown Source) at org.python.core.PyDataDescr.<clinit>(PyDataDescr.java) at org.python.core.PyBuiltinCallable$PyExposer.<init>(Unknown Source) at org.python.core.PyBuiltinCallable.<clinit>(PyBuiltinCallable.java) at org.python.core.PyObject$PyExposer.<init>(Unknown Source) at org.python.core.PyObject.<clinit>(PyObject.java) at org.python.util.jython.run(jython.java:150) at org.python.util.jython.main(jython.java:129) Caused by: java.lang.ClassNotFoundException: com.google.common.collect.MapMaker at java.net.URLClassLoader$1.run(URLClassLoader.java:372) at java.net.URLClassLoader$1.run(URLClassLoader.java:361) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:360) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 21 more << entering jython in window -> preferences shows the the jython interpreter page, according to: dpkg -L jython| grep jar /usr/share/java/jython-2.5.3.jar /usr/share/java/jython.jar this is the location of jython, but specifying either with "new..." does not work...same error as before. default debian jessie installation. any ideas? |
From: Fabio Z. <fa...@gm...> - 2015-12-17 17:32:16
|
On Thu, Dec 17, 2015 at 3:12 PM, peter <com...@ya...> wrote: > hi, > > > when creating a new project, selecting jython and using the default auto > config i get: > > Errors getting info on discovered interpreter(s). > See error log for details. > > java.lang.RuntimeException: No output was in the standard output when > trying to create the interpreter info for: /usr/share/java/jython-2.5.3.jar > The error output contains:>>Exception in thread "main" > java.lang.NoClassDefFoundError: com/google/common/collect/MapMaker > at org.python.core.PyType.fromClass(PyType.java:1280) > at org.python.core.PyObject.<init>(PyObject.java:66) > at org.python.core.PyBuiltinCallable.<init>(PyBuiltinCallable.java:21) > at org.python.core.PyBuiltinMethod.<init>(PyBuiltinMethod.java:16) > at > org.python.core.PyBuiltinMethodNarrow.<init>(PyBuiltinMethodNarrow.java:24) > at > org.python.core.PyType$type___subclasses___exposer.<init>(Unknown Source) > at org.python.core.PyType$PyExposer.<init>(Unknown Source) > at org.python.core.PyType.<clinit>(PyType.java) > at org.python.core.PyObject.<init>(PyObject.java:66) > at org.python.core.PyBuiltinCallable.<init>(PyBuiltinCallable.java:21) > at org.python.core.PyBuiltinMethod.<init>(PyBuiltinMethod.java:16) > at > org.python.core.PyBuiltinMethodNarrow.<init>(PyBuiltinMethodNarrow.java:24) > at > > org.python.core.PyDataDescr$getset_descriptor___get___exposer.<init>(Unknown > Source) > at org.python.core.PyDataDescr$PyExposer.<init>(Unknown Source) > at org.python.core.PyDataDescr.<clinit>(PyDataDescr.java) > at org.python.core.PyBuiltinCallable$PyExposer.<init>(Unknown Source) > at org.python.core.PyBuiltinCallable.<clinit>(PyBuiltinCallable.java) > at org.python.core.PyObject$PyExposer.<init>(Unknown Source) > at org.python.core.PyObject.<clinit>(PyObject.java) > at org.python.util.jython.run(jython.java:150) > at org.python.util.jython.main(jython.java:129) > Caused by: java.lang.ClassNotFoundException: > com.google.common.collect.MapMaker > at java.net.URLClassLoader$1.run(URLClassLoader.java:372) > at java.net.URLClassLoader$1.run(URLClassLoader.java:361) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java:360) > at java.lang.ClassLoader.loadClass(ClassLoader.java:424) > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) > at java.lang.ClassLoader.loadClass(ClassLoader.java:357) > ... 21 more > << > > > > > entering jython in window -> preferences shows the the jython > interpreter page, > according to: > dpkg -L jython| grep jar > /usr/share/java/jython-2.5.3.jar > /usr/share/java/jython.jar > > > this is the location of jython, but specifying either with "new..." does > not work...same error as before. > default debian jessie installation. > > any ideas? > > > ------------------------------------------------------------------------------ > _______________________________________________ > Pydev-users mailing list > Pyd...@li... > https://lists.sourceforge.net/lists/listinfo/pydev-users > Try downloading the jython from jython.org and using that version instead of the one in the system to check if it works... (jython should have all dependencies builtin, but it seems the version you're using doesn't have them). Cheers, Fabio |