pydev-code Mailing List for PyDev for Eclipse (Page 27)
Brought to you by:
fabioz
You can subscribe to this list here.
2004 |
Jan
|
Feb
|
Mar
(14) |
Apr
(18) |
May
(12) |
Jun
(34) |
Jul
(31) |
Aug
(37) |
Sep
(22) |
Oct
(2) |
Nov
|
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2005 |
Jan
(1) |
Feb
(4) |
Mar
(9) |
Apr
(1) |
May
|
Jun
(2) |
Jul
(24) |
Aug
(3) |
Sep
(5) |
Oct
(3) |
Nov
(3) |
Dec
(5) |
2006 |
Jan
(5) |
Feb
(23) |
Mar
(5) |
Apr
(80) |
May
(26) |
Jun
(13) |
Jul
(13) |
Aug
(4) |
Sep
(31) |
Oct
(24) |
Nov
(6) |
Dec
(2) |
2007 |
Jan
(7) |
Feb
|
Mar
(26) |
Apr
(3) |
May
(8) |
Jun
(6) |
Jul
(11) |
Aug
(2) |
Sep
(4) |
Oct
|
Nov
(9) |
Dec
(3) |
2008 |
Jan
(7) |
Feb
(1) |
Mar
(6) |
Apr
(7) |
May
(9) |
Jun
(14) |
Jul
(9) |
Aug
(6) |
Sep
(10) |
Oct
(5) |
Nov
(8) |
Dec
(5) |
2009 |
Jan
(8) |
Feb
(10) |
Mar
(10) |
Apr
(1) |
May
(3) |
Jun
(5) |
Jul
(10) |
Aug
(3) |
Sep
(12) |
Oct
(6) |
Nov
(22) |
Dec
(12) |
2010 |
Jan
(10) |
Feb
(17) |
Mar
(5) |
Apr
(9) |
May
(8) |
Jun
(2) |
Jul
(4) |
Aug
(12) |
Sep
(1) |
Oct
(1) |
Nov
(8) |
Dec
|
2011 |
Jan
(14) |
Feb
(8) |
Mar
(3) |
Apr
(11) |
May
(6) |
Jun
(5) |
Jul
(10) |
Aug
(7) |
Sep
|
Oct
(4) |
Nov
(4) |
Dec
(8) |
2012 |
Jan
|
Feb
(8) |
Mar
(10) |
Apr
(5) |
May
(4) |
Jun
(10) |
Jul
|
Aug
(2) |
Sep
(2) |
Oct
(11) |
Nov
(1) |
Dec
|
2013 |
Jan
(1) |
Feb
(2) |
Mar
(11) |
Apr
(10) |
May
(7) |
Jun
(9) |
Jul
(13) |
Aug
(20) |
Sep
(4) |
Oct
(18) |
Nov
(5) |
Dec
(7) |
2014 |
Jan
(3) |
Feb
(5) |
Mar
(7) |
Apr
(5) |
May
(10) |
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(7) |
Oct
(1) |
Nov
(1) |
Dec
(1) |
2015 |
Jan
(1) |
Feb
(1) |
Mar
(8) |
Apr
(3) |
May
(1) |
Jun
(2) |
Jul
(1) |
Aug
(2) |
Sep
(1) |
Oct
(3) |
Nov
(5) |
Dec
(1) |
2016 |
Jan
(26) |
Feb
(10) |
Mar
(4) |
Apr
|
May
(4) |
Jun
(3) |
Jul
|
Aug
(1) |
Sep
|
Oct
(1) |
Nov
(4) |
Dec
(3) |
2017 |
Jan
(3) |
Feb
|
Mar
(9) |
Apr
(2) |
May
|
Jun
(1) |
Jul
|
Aug
(9) |
Sep
(1) |
Oct
|
Nov
(2) |
Dec
|
2018 |
Jan
|
Feb
(2) |
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
(4) |
Oct
(2) |
Nov
(1) |
Dec
(3) |
2019 |
Jan
(4) |
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
(4) |
Aug
|
Sep
|
Oct
(3) |
Nov
|
Dec
|
2020 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
(4) |
Jul
|
Aug
|
Sep
(2) |
Oct
|
Nov
|
Dec
(11) |
2021 |
Jan
(3) |
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2022 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
(3) |
Sep
|
Oct
|
Nov
|
Dec
|
2023 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
2024 |
Jan
|
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(3) |
Oct
|
Nov
|
Dec
|
From: Fabio Z. <fa...@gm...> - 2008-08-01 19:07:24
|
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). - coverage: currently there are several launch types (run, (unit)test, > coverage) and two modes (exec/debug) while more natural to me is two > launch types (run / test) and three modes (exec/debug/coverage). Note > that this is similar to an approach taken by popular plugin for Java > coverage EclEmma (http://eclemma.org/). Also the UI provided by > current coverage supprt can by improved a lot - I'd like to see the > result as some kind of annotation in editor Improvements in the coverage are surely welcome!. - follow more Eclipse API/SPIs. Now I have some troubles as PyDev > converts eclipse Path to java.io.File almost instantly. This makes it > hard to use Eclipse links to link only to a specific directories (I do > that to work around a problem mentioned above). Yes, that's a major refactoring to be done... (that's why currently the links are only actually followed for the source directories) I can submit patches for some of these as well as do some bugfixes if > there is an agreement that these are good ideas. Comments, feedback? For the java.io.File fix, I'm not very sure (I'd probably like to do it myself, as it's probably going to work on lots of places in the code -- and unit-tests), as for the others, I'm all for it. I'd also like to know what is current estimation for Ganymede (Eclipse > 3.4) support? > It's actually mostly supported, but official support is waiting for https://sourceforge.net/tracker/index.php?func=detail&aid=2002870&group_id=85796&atid=577329to be fixed (a patch for that one would be pretty nice). Cheers, Fabio |
From: Fabio Z. <fa...@gm...> - 2008-08-01 17:36:13
|
Hi All, Pydev and Pydev Extensions 1.3.19 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: Not all unused imports are shown in the message anymore (could give problems saving workspace). * Code Analysis: Fixed problem on double cycle in list comprehension. * Interpreter config: The initial parse of the modules is much faster. Release Highlights in Pydev: ---------------------------------------------- Pydev 1.3.19 Release highlights ---------------------- * Eclipse 3.2: Interactive console working * Eclipse 3.4: Hyperlinks working * Eclipse 3.4: Move / rename working * raw_input() and input(): functions are now changed when a program is launched from eclipse to consider a trailing '\r' * Ctr+/: Changed to toggle comment (instead of only comment) -- patch from Christoph Pickl * Pydev package explorer: Link working with compare editor * Auto-indent: Fixed problem when smart indent was turned off * Debugger: Better inspection of internal variables for dict, list, tuple, set and frozenset * Console: When a parenthesis is entered, the text to the end of the line is no longer deleted * Code Formatter: can deal with operators (+, -, *, etc) * Code Formatter: can handle '=' differently inside function calls / keyword args * Problem while navigating pydev package explorer fixed * Race condition fixed in PythonNatureStore/PythonNature (thanks to Radim Kubacki) * Halt fixed while having multiple editors with the same file (with the spell service on) * Pythonpath is no longer lost on closed/imported projects * Applying a template uses the correct line delimiter * NPE fixed when creating editor with no interpreter configured * Hyperlink works in the same way that F3 (saves file before search) 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-07-27 23:10:24
|
Hi Fabio and all, I have a few ideas what I would like to change improve in current PyDev. Basically most of them are a result of my attempts to improve Python delelopment experience in our environment. I really like the fact that there is already so much work done. Thanks for that. Still there is some space for improvements. Some of them are general and some are more specific for my use cases. - 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. - coverage: currently there are several launch types (run, (unit)test, coverage) and two modes (exec/debug) while more natural to me is two launch types (run / test) and three modes (exec/debug/coverage). Note that this is similar to an approach taken by popular plugin for Java coverage EclEmma (http://eclemma.org/). Also the UI provided by current coverage supprt can by improved a lot - I'd like to see the result as some kind of annotation in editor - follow more Eclipse API/SPIs. Now I have some troubles as PyDev converts eclipse Path to java.io.File almost instantly. This makes it hard to use Eclipse links to link only to a specific directories (I do that to work around a problem mentioned above). I can submit patches for some of these as well as do some bugfixes if there is an agreement that these are good ideas. Comments, feedback? I'd also like to know what is current estimation for Ganymede (Eclipse 3.4) support? -Radim |
From: Marcelo de S. L. <mar...@gm...> - 2008-07-23 19:16:51
|
Ok, its working. Thanks for all the help! 2008/7/23 Marcelo de Sena Lacerda <mar...@gm...>: > Ok its installed. Now, how do I check if pylint is running on eclipse? > > 2008/7/23 Hannes Brandstätter-Müller <han...@gm...>: > > there is a site-packages directory as a subdirectory of whereever your >> python is installed. >> >> hth >> Hannes >> >> On Wed, Jul 23, 2008 at 3:20 PM, Marcelo de Sena Lacerda >> <mar...@gm...> wrote: >> > What does mean "installed in the site package" in : >> > "NOTE: Pylint is disabled by default, so, if you want to activate it, >> you >> > should go to the pylint preferences page, specify its location (it MUST >> be >> > installed in the site-packages) and activate it (note: after activating >> it, >> > you can clean your project on the project menu so that the files are >> checked >> > with pylint, or you can do it on deltas as you go and change your >> files). " >> > >> > Thanks for any help. >> > >> > 2008/7/22 Heikki Toivonen <hj...@co...>: >> >> >> >> Marcelo de Sena Lacerda wrote: >> >> > Hi, I'm new to pydev and to CVS and still, I want to help. I have >> seen >> >> > that pydev do not have warning messages for variables that are never >> >> > read locally. Well, right now that all I think its missing. >> >> >> >> I think the functionality you are looking for is provided by the >> >> optional pylint integration. Install pylint, then look at Pydev > >> pylint >> >> preferences in Eclipse. >> >> >> >> -- >> >> Heikki Toivonen >> >> >> >> >> ------------------------------------------------------------------------- >> >> 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 >> > >> > >> > >> > -- >> > Marcelo Sena(Diones) >> > >> ------------------------------------------------------------------------- >> > 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 >> > > > > -- > Marcelo Sena(Diones) > -- Marcelo Sena(Diones) |
From: Marcelo de S. L. <mar...@gm...> - 2008-07-23 14:16:13
|
Ok its installed. Now, how do I check if pylint is running on eclipse? 2008/7/23 Hannes Brandstätter-Müller <han...@gm...>: > there is a site-packages directory as a subdirectory of whereever your > python is installed. > > hth > Hannes > > On Wed, Jul 23, 2008 at 3:20 PM, Marcelo de Sena Lacerda > <mar...@gm...> wrote: > > What does mean "installed in the site package" in : > > "NOTE: Pylint is disabled by default, so, if you want to activate it, you > > should go to the pylint preferences page, specify its location (it MUST > be > > installed in the site-packages) and activate it (note: after activating > it, > > you can clean your project on the project menu so that the files are > checked > > with pylint, or you can do it on deltas as you go and change your files). > " > > > > Thanks for any help. > > > > 2008/7/22 Heikki Toivonen <hj...@co...>: > >> > >> Marcelo de Sena Lacerda wrote: > >> > Hi, I'm new to pydev and to CVS and still, I want to help. I have seen > >> > that pydev do not have warning messages for variables that are never > >> > read locally. Well, right now that all I think its missing. > >> > >> I think the functionality you are looking for is provided by the > >> optional pylint integration. Install pylint, then look at Pydev > pylint > >> preferences in Eclipse. > >> > >> -- > >> Heikki Toivonen > >> > >> > ------------------------------------------------------------------------- > >> 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 > > > > > > > > -- > > Marcelo Sena(Diones) > > ------------------------------------------------------------------------- > > 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 > -- Marcelo Sena(Diones) |
From: H. Brandstätter-M. <han...@gm...> - 2008-07-23 13:24:43
|
there is a site-packages directory as a subdirectory of whereever your python is installed. hth Hannes On Wed, Jul 23, 2008 at 3:20 PM, Marcelo de Sena Lacerda <mar...@gm...> wrote: > What does mean "installed in the site package" in : > "NOTE: Pylint is disabled by default, so, if you want to activate it, you > should go to the pylint preferences page, specify its location (it MUST be > installed in the site-packages) and activate it (note: after activating it, > you can clean your project on the project menu so that the files are checked > with pylint, or you can do it on deltas as you go and change your files). " > > Thanks for any help. > > 2008/7/22 Heikki Toivonen <hj...@co...>: >> >> Marcelo de Sena Lacerda wrote: >> > Hi, I'm new to pydev and to CVS and still, I want to help. I have seen >> > that pydev do not have warning messages for variables that are never >> > read locally. Well, right now that all I think its missing. >> >> I think the functionality you are looking for is provided by the >> optional pylint integration. Install pylint, then look at Pydev > pylint >> preferences in Eclipse. >> >> -- >> Heikki Toivonen >> >> ------------------------------------------------------------------------- >> 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 > > > > -- > Marcelo Sena(Diones) > ------------------------------------------------------------------------- > 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: Marcelo de S. L. <mar...@gm...> - 2008-07-23 13:19:56
|
What does mean "installed in the site package" in : "NOTE: Pylint <http://www.logilab.org/projects/pylint> is *disabled by default*, so, if you want to activate it, you should go to the pylint preferences page, *specify its location* (it MUST be installed in the site-packages) and activate it (note: after activating it, you can clean your project on the project menu so that the files are checked with pylint, or you can do it on deltas as you go and change your files). " Thanks for any help. 2008/7/22 Heikki Toivonen <hj...@co...>: > Marcelo de Sena Lacerda wrote: > > Hi, I'm new to pydev and to CVS and still, I want to help. I have seen > > that pydev do not have warning messages for variables that are never > > read locally. Well, right now that all I think its missing. > > I think the functionality you are looking for is provided by the > optional pylint integration. Install pylint, then look at Pydev > pylint > preferences in Eclipse. > > -- > Heikki Toivonen > > ------------------------------------------------------------------------- > 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 > -- Marcelo Sena(Diones) |
From: Heikki T. <hj...@co...> - 2008-07-23 01:17:59
|
Marcelo de Sena Lacerda wrote: > Hi, I'm new to pydev and to CVS and still, I want to help. I have seen > that pydev do not have warning messages for variables that are never > read locally. Well, right now that all I think its missing. I think the functionality you are looking for is provided by the optional pylint integration. Install pylint, then look at Pydev > pylint preferences in Eclipse. -- Heikki Toivonen |
From: Marcelo de S. L. <mar...@gm...> - 2008-07-22 17:38:53
|
Hi, I'm new to pydev and to CVS and still, I want to help. I have seen that pydev do not have warning messages for variables that are never read locally. Well, right now that all I think its missing. I have read the developers guide < http://pydev.sourceforge.net/developers.html> and everything worked out just fine, but now I don't know where to start to find what code I should edit. If anyone could point me to the right direction I would appreciate a lot -- Marcelo Sena |
From: Fabio Z. <fa...@gm...> - 2008-07-13 18:20:56
|
I believe that's only a problem with Eclipse 3.4 (which is not currently supported) -- please report that as a bug so that it's addressed when the support for Eclipse 3.4 is added. Cheers, Fabio On Sun, Jul 13, 2008 at 2:06 PM, chris vigelius <chr...@gm...> wrote: > > When viewing a project in PyDev perspective, the context menu entries > for "rename" and "move" are there in the Project Explorer / Pydev Package > Explorer, but they do nothing when they are selected. > > On the other hand, if viewing the same project in another perspective (e.g. > Aptana or Java perspective), these actions work as expected. So this problem > seems related to Pydev. > > Notice: I am using Pydev 1.3.18 with Eclipse 3.4.0 (SDK Download, if that > matters) on Ubuntu 8.04. > > kind regards, > chris > > ------------------------------------------------------------------------- > Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! > Studies have shown that voting for your favorite open source project, > along with a healthy diet, reduces your potential for chronic lameness > and boredom. Vote Now at http://www.sourceforge.net/community/cca08 > _______________________________________________ > pydev-code mailing list > pyd...@li... > https://lists.sourceforge.net/lists/listinfo/pydev-code > |
From: chris v. <chr...@gm...> - 2008-07-13 17:06:15
|
When viewing a project in PyDev perspective, the context menu entries for "rename" and "move" are there in the Project Explorer / Pydev Package Explorer, but they do nothing when they are selected. On the other hand, if viewing the same project in another perspective (e.g. Aptana or Java perspective), these actions work as expected. So this problem seems related to Pydev. Notice: I am using Pydev 1.3.18 with Eclipse 3.4.0 (SDK Download, if that matters) on Ubuntu 8.04. kind regards, chris |
From: Abhishek W. <abh...@gm...> - 2008-06-27 20:18:23
|
I'm making a software which can detect d usb circuit made by me without any usb driver ....just using a microcontroller & coding in it.......based on AVR309 application note available at:- www.atmel.com/dyn/resources/prod_documents/doc2556.pdf So what basically i'm doing is programming a AVR-ATTINY-44 to do functions of a USB-driver and when connected to USB port, should be automatically detected by the computer. Now i'm also making a GUI using Tkinter in Python to read data from the microcontroller & to write in it. I have to basically perform digital & analog input-output in microcontroller through my GUI. So what my problem is , i'm unable to understand how to read & send through python Gui. i didn't even find any documentations to use pyUSB. See if u can help me in any way. Thanks. -- View this message in context: http://www.nabble.com/Enquiry-about-PyUSB-tp17980110p18163067.html Sent from the pydev-code mailing list archive at Nabble.com. |
From: Michael P. <mic...@go...> - 2008-06-27 19:26:13
|
Fabio Zadrozny schrieb: >> I'm working at a research prototyp and I want to add a new eclipse view >> to PyDev. So far the view is finished but I want to open a new Editor >> window in the PyDev Editor with a double click of a row of my table >> view. I have the filename and the line number. So my questions are: >> >> Which package I have to include as dependencies? >> How is the name of the editor Plugin or how could I access it? And last >> but not least what looks like the method call for my parameters >> (filepath (as String) and line number)? A short example would be perfect >> or the hint to look at for the same behavior for instance in the >> Resource or Class View. > > It's something like: > > new org.python.pydev.editor.actions.PyOpenAction().run(itemPointer) > > It depends on the org.python.pydev plugin. > > The FilePointer can be customized with a file and the location for the > cursor (in many ways). > > Cheers, > > Fabio > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > pydev-code mailing list > pyd...@li... > https://lists.sourceforge.net/lists/listinfo/pydev-code > Thank you very much! It works. For completness I have to add org.python.pydev.parser dependency but it doesn't matter. I'm happy that my plugin works. Kind regards, Michael |
From: Fabio Z. <fa...@gm...> - 2008-06-27 11:23:04
|
> > I'm working at a research prototyp and I want to add a new eclipse view > to PyDev. So far the view is finished but I want to open a new Editor > window in the PyDev Editor with a double click of a row of my table > view. I have the filename and the line number. So my questions are: > > Which package I have to include as dependencies? > How is the name of the editor Plugin or how could I access it? And last > but not least what looks like the method call for my parameters > (filepath (as String) and line number)? A short example would be perfect > or the hint to look at for the same behavior for instance in the > Resource or Class View. It's something like: new org.python.pydev.editor.actions.PyOpenAction().run(itemPointer) It depends on the org.python.pydev plugin. The FilePointer can be customized with a file and the location for the cursor (in many ways). Cheers, Fabio |
From: Michael P. <mic...@go...> - 2008-06-27 08:51:48
|
Hi list, I'm working at a research prototyp and I want to add a new eclipse view to PyDev. So far the view is finished but I want to open a new Editor window in the PyDev Editor with a double click of a row of my table view. I have the filename and the line number. So my questions are: Which package I have to include as dependencies? How is the name of the editor Plugin or how could I access it? And last but not least what looks like the method call for my parameters (filepath (as String) and line number)? A short example would be perfect or the hint to look at for the same behavior for instance in the Resource or Class View. Thanks for any advice. Kind regards, Michael |
From: Sébastien / Seb-b. <seb...@gm...> - 2008-06-25 13:05:45
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, I am been using PyDEV for a while but I just discovered a feature I didn't know: http://pydev.sourceforge.net/contentassist.html It seems to be cool... Except I just can't get it to work! Since I am working on Ubuntu, I first checked if keybindings bug was "in action" (http://pydev.sourceforge.net/faq.html#some_keybindings_ctrl_don_t_work_under_ubunt) even if, for instance, ctrl+9 key binding (collapse all) just works fine. Anyway, when I tried to change keybinding for pydev content assistant (in Eclipse preferences), I discovered that "Quick Fix / Content Assistants" action from "Pydev - Editor" category is not accessible. Actually Ctrl+1 was bound to "Quick Fix" action from "Edit" category. Ctrl+Space is also bound to "Content Assist" from "Edit" category (i.e. not the one from "Pydev - Editor" category); code suggestion is fully fonctionnal though. Does anybody have an idea on why some of the Pydev features (like "Quick Fix / Content Assistants") are not visible in Eclipse keybindings settings? And how I can make Pydev content assistants work? Here is my configuration: System: Ubuntu 8.04 Eclipse version: 3.2.2 (Ubuntu version: 3.2.2-5ubuntu2) JVM version: 1.5.0_15-b04 from Sun PyDev version: 1.3.18 (no mylyn support nor pydev extensions installed) Cheers, Sébastien -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFIYkKvlabueleSRzIRAuEwAKCN2uubRMH6dr6xa3T/n2zM1gACBgCgwiFW jlY4zqPee03U6pICsVq8utE= =+A45 -----END PGP SIGNATURE----- |
From: Fabio Z. <fa...@gm...> - 2008-06-19 16:11:05
|
Hi All, Pydev and Pydev Extensions 1.3.18 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: ----------------------------------------------------------------- * Auto-import: Groups imports when possible. * Auto-import: Doesn't bring imports for completions already in the document even if a parse is not successful. * Organize Imports (ctrl+shift+O): Suggests imports to the undefined tokens in the editor. * Import quick-fix: Icons correspondent to the element being imported. Release Highlights in Pydev: ---------------------------------------------- * Executing external programs: Using Runtime.exec(String[] cmdargs) instead of a string with the generated command (fixes problems regarding having spaces in the installation). * Organize Imports (ctrl+shift+O): Imports can be grouped. * Cygwin: sys.executable in cygwin was not returning '.exe' in the end of the executable as it should. * Additional paths for PYTHONPATH (Patch from Eric Wittmann): extension point allows plugins to contribute paths to the PYTHONPATH. * Code-completion: typing '.' won't apply the selected completion, but will still request a new one with the current contents. * Pydev Package Explorer: Problem while trying to show active editor on the pydev package explorer. 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: Mike H. <mhu...@gm...> - 2008-06-18 11:00:17
|
Abhishek, First Link - http://pyusb.berlios.de/ Second Link - http://www.labjack.com/forums/index.php?showtopic=3025 Third Link - http://olpcnews.com/forum/index.php?topic=2793.0 Just for starting out. If you could be more specific about your concerns, perhaps I can help you... On Wed, Jun 18, 2008 at 5:44 AM, Abhishek Wadhava <abh...@gm...> wrote: > Hi.. > I'm trying to make a gui in tkinter with python which can send commands to > a microcontroller connnected to the usb port. > But i'm not getting enough info about connecting my python code to USB so > that i can use it to read and write through usb port. > I have came to know that pyUSB can do my work , but i'm not getting good > stuffs about pyUSB to help me out. > So please any1 help me out....!!! > Thanks. > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > pydev-code mailing list > pyd...@li... > https://lists.sourceforge.net/lists/listinfo/pydev-code > > -- JMH |
From: Fabio Z. <fa...@gm...> - 2008-06-18 10:56:40
|
Hi Abhishek, > I'm trying to make a gui in tkinter with python which can send commands to a > microcontroller connnected to the usb port. > But i'm not getting enough info about connecting my python code to USB so > that i can use it to read and write through usb port. > I have came to know that pyUSB can do my work , but i'm not getting good > stuffs about pyUSB to help me out. > So please any1 help me out....!!! I think that the pydev (eclipse plugin) list is not the most suitable for that... you should probably ask at the python-list. Cheers, Fabio |
From: Abhishek W. <abh...@gm...> - 2008-06-18 10:44:53
|
Hi.. I'm trying to make a gui in tkinter with python which can send commands to a microcontroller connnected to the usb port. But i'm not getting enough info about connecting my python code to USB so that i can use it to read and write through usb port. I have came to know that pyUSB can do my work , but i'm not getting good stuffs about pyUSB to help me out. So please any1 help me out....!!! Thanks. |
From: Radim K. <ra...@ku...> - 2008-06-15 18:20:57
|
That's great explanation! Thanks. I'll add a few comments. On Sun, Jun 15, 2008 at 5:37 AM, Fabio Zadrozny <fa...@gm...> wrote: > Hello Radim, > >> I noticed this interesting commit and want to ask: >> >> Why do you think StringBuffer performance is a problem (for PyDev)? >> Why do you think this FastStringBuffer is better? >> Did you consider to use StringBuilder? >> What are result of your measurements? > > StringBuilder is not an option because pydev needs to support java 1.4 > / Pydev does lot's of string concatenations in a good number of cases. > Almost every Java program does so this is indeed a common hot spot. > The results here are on java 1.5... the microbenchmark is committed at > http://pydev.cvs.sourceforge.net/pydev/org.python.pydev.core/tests/org/python/pydev/core/structure/FastStringBufferTest.java?view=markup > (although the benchmark part is commented out). > > It's optimized for: creating a string, filling it, calling clear() and > then reusing it again (which is what the benchmark does). > > In the microbenchmark it runs at 0.4 times the time the actual > StringBuffer runs in java 1.5. > I do not any actual numbers in the log or test source itself and my runs showed smaller improvement. This is not a problem. Hopefully there is some task where this change maps to improved perceived performance - a user action that is noticeably faster. Re reusing: object allocation is basically bump up a pointer and return it. Only when a thread local allocation buffer is exhausted this needs to get a new slice of memory (your microbenchmark is not covering any threading). > Basically on that case it saves a couple of calls to a super.append > method, does not check for null strings and has no len check (so, > basically it does less checking to gain speed -- it'll still throw > exceptions, but not exceptions as given by a StringBuffer, only on > invalid array accesses). Also, a clear() method and deleteLast() were > added which are also much faster (basically, they just change the > marked size of the buffer -- pydev relies on test-cases instead of > having checks for abnormal cases, so, I'm not sure I'd recommend it as > a general case StringBuffer). > Generaly most of these optimization can be done in HotSpot and some of them really are. Aggressive inlining is common, then you can analyze flow and avoid null check. Array bounds checking can be simpler with loop unrolling. It takes a while but current compilers are really smart. >> Few things to note: be carefull to do enough run to avoid results >> skewed by interpreted runs before JIT compiles the code. >> >> Look at the difference between server and client VM (at server VM I do >> not see any difference). >> >> Check various JDKs - StringBuffer can be slower on JDK 1.5 but gets to >> comparable level on JDK6 with its biased locking. >> >> Generally it can happen that JIT will optimize your code completely >> and remove it ;-) It is really hard to write correct microbenchmark >> for Java code. > > Yeap, I've taken that into account, but as you never know which jdk > the client will be using, even if in the end it only significantly > does a change for some java vms, it's worth it -- if it does not get > slower on another version... but I'm pretty confident that this will > not happen in this case -- it's amazing that some versions of MacOS > are bounded to a JDK 1.4 and you can't update it (at least that's the > complain I got a lot when pydev started to support only java 1.5 -- > so, 1.4 support was restored). > The opposite way is: just by upgrading to JDK6 users get a nice benefit of a performance on the same level as you current have and there is no need for code changes. If you really have a lot of users running JDK1.4 this is a valid use case (especially if they use pydev ext). Though these folks are in a really troubled situation. Now Apple released Java6 and I wonder how long they will support 1.4 an old systems. Well that's a strange world of Java on Mac. Regards, Radim >> I do not see where you saved allocations/GC (javadoc says that this >> new class is more effective). Even if you do - GC of an object dying >> in eden is not a problem. Only surviving objects are important. > > You're right, it does not save allocations (I'll update the docs). The > idea is to save allocations on the case where it says that should be > used in the docs: create the buffer, do lot's of things then call > clear() and do things again... so, loops should only allocate one and > rely on cler() instead of creating a new buffer to save allocations > (in that commit a number of places were updated for that case). So, > one of the advantages of that case is that I also know which places > I've re-reviewed for that case (basically, if it's not using that > version of the buffer it's not reviewed for that case -- although some > reviewed places kept on using StringBuffer because of features that > won't be added to that version). > > Cheers, > > Fabio > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > pydev-code mailing list > pyd...@li... > https://lists.sourceforge.net/lists/listinfo/pydev-code > |
From: Fabio Z. <fa...@gm...> - 2008-06-15 12:37:44
|
Hello Radim, > I noticed this interesting commit and want to ask: > > Why do you think StringBuffer performance is a problem (for PyDev)? > Why do you think this FastStringBuffer is better? > Did you consider to use StringBuilder? > What are result of your measurements? StringBuilder is not an option because pydev needs to support java 1.4 / Pydev does lot's of string concatenations in a good number of cases. The results here are on java 1.5... the microbenchmark is committed at http://pydev.cvs.sourceforge.net/pydev/org.python.pydev.core/tests/org/python/pydev/core/structure/FastStringBufferTest.java?view=markup (although the benchmark part is commented out). It's optimized for: creating a string, filling it, calling clear() and then reusing it again (which is what the benchmark does). In the microbenchmark it runs at 0.4 times the time the actual StringBuffer runs in java 1.5. Basically on that case it saves a couple of calls to a super.append method, does not check for null strings and has no len check (so, basically it does less checking to gain speed -- it'll still throw exceptions, but not exceptions as given by a StringBuffer, only on invalid array accesses). Also, a clear() method and deleteLast() were added which are also much faster (basically, they just change the marked size of the buffer -- pydev relies on test-cases instead of having checks for abnormal cases, so, I'm not sure I'd recommend it as a general case StringBuffer). > Few things to note: be carefull to do enough run to avoid results > skewed by interpreted runs before JIT compiles the code. > > Look at the difference between server and client VM (at server VM I do > not see any difference). > > Check various JDKs - StringBuffer can be slower on JDK 1.5 but gets to > comparable level on JDK6 with its biased locking. > > Generally it can happen that JIT will optimize your code completely > and remove it ;-) It is really hard to write correct microbenchmark > for Java code. Yeap, I've taken that into account, but as you never know which jdk the client will be using, even if in the end it only significantly does a change for some java vms, it's worth it -- if it does not get slower on another version... but I'm pretty confident that this will not happen in this case -- it's amazing that some versions of MacOS are bounded to a JDK 1.4 and you can't update it (at least that's the complain I got a lot when pydev started to support only java 1.5 -- so, 1.4 support was restored). > I do not see where you saved allocations/GC (javadoc says that this > new class is more effective). Even if you do - GC of an object dying > in eden is not a problem. Only surviving objects are important. You're right, it does not save allocations (I'll update the docs). The idea is to save allocations on the case where it says that should be used in the docs: create the buffer, do lot's of things then call clear() and do things again... so, loops should only allocate one and rely on cler() instead of creating a new buffer to save allocations (in that commit a number of places were updated for that case). So, one of the advantages of that case is that I also know which places I've re-reviewed for that case (basically, if it's not using that version of the buffer it's not reviewed for that case -- although some reviewed places kept on using StringBuffer because of features that won't be added to that version). Cheers, Fabio |
From: Radim K. <ra...@ku...> - 2008-06-15 05:51:05
|
Hello, I noticed this interesting commit and want to ask: Why do you think StringBuffer performance is a problem (for PyDev)? Why do you think this FastStringBuffer is better? Did you consider to use StringBuilder? What are result of your measurements? Few things to note: be carefull to do enough run to avoid results skewed by interpreted runs before JIT compiles the code. Look at the difference between server and client VM (at server VM I do not see any difference). Check various JDKs - StringBuffer can be slower on JDK 1.5 but gets to comparable level on JDK6 with its biased locking. Generally it can happen that JIT will optimize your code completely and remove it ;-) It is really hard to write correct microbenchmark for Java code. I do not see where you saved allocations/GC (javadoc says that this new class is more effective). Even if you do - GC of an object dying in eden is not a problem. Only surviving objects are important. -Radim On Sat, Jun 14, 2008 at 3:14 PM, Fabio Zadrozny <fa...@us...> wrote: > Update of /cvsroot/pydev/org.python.pydev.core/src/org/python/pydev/core/structure > In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27891/src/org/python/pydev/core/structure > > Added Files: > FastStringBuffer.java > Log Message: > Using faster version of StringBuffer: FastStrintgBuffer / Better icons for auto-import. > > --- NEW FILE: FastStringBuffer.java --- > package org.python.pydev.core.structure; > > /** > * This is a custom string that works around char[] objects to provide minimum allocation/garbage collection overhead. > * To be used mostly when several small concatenations of strings are used and in local contexts while reusing the > * same object to create multiple strings. > * > * @author Fabio > */ > public final class FastStringBuffer { > > /** > * Holds the actual chars > */ > private char[] value; > > /** > * Count for which chars are actually used > */ > private int count; > > /** > * Initializes with a default initial size (128 chars) > */ > public FastStringBuffer() { > this(128); > } > > /** > * An initial size can be specified (if available and given for no allocations it can be more efficient) > */ > public FastStringBuffer(int initialSize) { > this.value = new char[initialSize]; > this.count = 0; > } > > /** > * initializes from a string and the additional size for the buffer > * > * @param s string with the initial contents > * @param additionalSize the additional size for the buffer > */ > public FastStringBuffer(String s, int additionalSize) { > this.count = s.length(); > value = new char[this.count + additionalSize]; > s.getChars(0, this.count, value, 0); > } > > /** > * Appends a string to the buffer > */ > public FastStringBuffer append(String string) { > int strLen = string.length(); > > if (this.count + strLen > this.value.length) { > resizeForMinimum(this.count + strLen); > } > string.getChars(0, strLen, value, this.count); > this.count += strLen; > > return this; > } > > private void resizeForMinimum(int minimumCapacity) { > int newCapacity = (value.length + 1) * 2; > if (newCapacity < 0) { > newCapacity = Integer.MAX_VALUE; > } else if (minimumCapacity > newCapacity) { > newCapacity = minimumCapacity; > } > char newValue[] = new char[newCapacity]; > System.arraycopy(value, 0, newValue, 0, count); > value = newValue; > } > > public final FastStringBuffer append(int n) { > append(String.valueOf(n)); > return this; > } > > public final FastStringBuffer append(char n) { > if (count + 1 > value.length) { > resizeForMinimum(count + 1); > } > value[count] = n; > count += 1; > return this; > } > > public final FastStringBuffer append(long n) { > append(String.valueOf(n)); > return this; > } > > public final FastStringBuffer append(boolean b) { > append(String.valueOf(b)); > return this; > } > > public FastStringBuffer append(char[] chars) { > if (count + chars.length > value.length) { > resizeForMinimum(count + chars.length); > } > System.arraycopy(chars, 0, value, count, chars.length); > count += chars.length; > return this; > } > > public FastStringBuffer append(FastStringBuffer other) { > append(other.value, 0, other.count); > return this; > } > > public FastStringBuffer append(char[] chars, int offset, int len) { > if (count + len > value.length) { > resizeForMinimum(count + len); > } > System.arraycopy(chars, offset, value, count, len); > count += len; > return this; > } > > public FastStringBuffer reverse() { > final int limit = count / 2; > for (int i = 0; i < limit; ++i) { > char c = value[i]; > value[i] = value[count - i - 1]; > value[count - i - 1] = c; > } > return this; > } > > public void clear() { > this.count = 0; > } > > public int length() { > return this.count; > } > > @Override > public String toString() { > return new String(value, 0, count); > } > > public void deleteLast() { > if (this.count > 0) { > this.count -= 1; > } > } > > public char charAt(int i) { > return this.value[i]; > } > > public FastStringBuffer insert(int offset, String str) { > int len = str.length(); > int newCount = count + len; > if (newCount > value.length){ > resizeForMinimum(newCount); > } > System.arraycopy(value, offset, value, offset + len, count - offset); > str.getChars(0, str.length(), value, offset); > count = newCount; > return this; > } > > public FastStringBuffer appendObject(Object attribute) { > return append(attribute != null?attribute.toString():"null"); > } > > public void setCount(int newLen) { > this.count = newLen; > } > > } > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Pydev-cvs mailing list > Pyd...@li... > https://lists.sourceforge.net/lists/listinfo/pydev-cvs > |
From: Fabio Z. <fa...@gm...> - 2008-06-05 10:55:32
|
Hi Pierre, > > I am completely new to PyDev, and I am using the one delivered on the > Fedora Core 8 with Eclipse. > Once I configured Jython either with the one shipped with Fedora or > the one I downloaded from the jython web site I get this error when > opening a python file within a PyDev project: > > Traceback (innermost last): > File "<string>", line 1, in ? > File "/usr/share/eclipse/plugins/org.python.pydev.jython_1.3.17/jysrc/pyedit_assist_assign_value_to_var_if_None.py", > line 91, in ? > File "/usr/share/eclipse/plugins/org.python.pydev.jython_1.3.17/jysrc/assist_regex_based_proposal.py", > line 32, in ? > File "/usr/share/eclipse/plugins/org.python.pydev.jython_1.3.17/jysrc/assist_regex_based_proposal.py", > line 62, in RegexBasedAssistProposal > AttributeError: module 're' has no attribute 'compile' > > > I really don't understand where that could come from, but this is > really annoying as this generates a lot of errors in the console (plus > I imagine that the regex-based extensions doesn't work). > That seems a packaging error in the pydev that comes with Fedora... Pydev uses a jython version that's distributed within it for that. The module re.py and sre.py that it uses should be at eclipse/plugins/org.python.pydev.jython_1.3.17/Lib. I suggest trying to uninstall your current pydev version and getting the latest from the pydev update site (see http://fabioz.com/pydev/manual_101_install.html ). Cheers, Fabio |
From: Pierre B. de R. <pie...@gm...> - 2008-06-05 10:06:26
|
Hello, I am completely new to PyDev, and I am using the one delivered on the Fedora Core 8 with Eclipse. Once I configured Jython either with the one shipped with Fedora or the one I downloaded from the jython web site I get this error when opening a python file within a PyDev project: Traceback (innermost last): File "<string>", line 1, in ? File "/usr/share/eclipse/plugins/org.python.pydev.jython_1.3.17/jysrc/pyedit_assist_assign_value_to_var_if_None.py", line 91, in ? File "/usr/share/eclipse/plugins/org.python.pydev.jython_1.3.17/jysrc/assist_regex_based_proposal.py", line 32, in ? File "/usr/share/eclipse/plugins/org.python.pydev.jython_1.3.17/jysrc/assist_regex_based_proposal.py", line 62, in RegexBasedAssistProposal AttributeError: module 're' has no attribute 'compile' I really don't understand where that could come from, but this is really annoying as this generates a lot of errors in the console (plus I imagine that the regex-based extensions doesn't work). Thanks, -- Barbier de Reuille Pierre |