pydev-code Mailing List for PyDev for Eclipse (Page 13)
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: Fran B. <fra...@gm...> - 2013-03-23 02:08:29
|
On 23 March 2013 02:01, Fabio Zadrozny <fa...@es...> wrote: > Unfortunately yes, right now it's limited to Jython 2.2 (which is the > internal version used). There are currently no plans to upgrade that version > (mostly because it'd raise the size of PyDev a lot -- the jython jar is > currently 1.5 MB, and the update would make it around 8 MB... The whole > PyDev with Jython is right now 7 MB, so, it'd double the size just for that > update). I did spot the size bump & wondered if that was a factor. > I'd consider adding it only if it makes the startup of the PyDev editor much > faster (right now, the first time you open a PyDev editor, it has a delay: > that's Jython loading... I'm almost considering removing it because of that > delay -- or at least making it optional, in which case it might be worth > putting it in a separate plugin -- then, maybe it'd be worth updating the > version, as users that don't want it don't need to get it). Makes sense - I've been a happy PyDev user for a couple of years without touching Jython, but am seeing the Scripting as being a majorly useful feature. Being able to plug-in any Jython version would be ideal...how hard would it be to separate out the bridging code to enable pointing to any Jython install? Many thanks, Fran. > Cheers, > > Fabio > > > On Fri, Mar 22, 2013 at 10:47 PM, Fran Boon <fra...@gm...> wrote: >> >> I have been playing with the Jython scripting interface which I just >> discovered & have been very excited about, however I find that it >> seems to be limited to v2.2, is that true? >> I have 2.7b1 installed & can launch an interactive console with that >> version, however this isn't what is used for the scripts & I can't see >> a way to set it for the scripts? >> >> Many thanks for any help, >> Fran. >> >> >> ------------------------------------------------------------------------------ >> Everyone hates slow websites. So do we. >> Make your web apps faster with AppDynamics >> Download AppDynamics Lite for free today: >> http://p.sf.net/sfu/appdyn_d2d_mar >> _______________________________________________ >> pydev-code mailing list >> pyd...@li... >> https://lists.sourceforge.net/lists/listinfo/pydev-code > > > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_mar > _______________________________________________ > pydev-code mailing list > pyd...@li... > https://lists.sourceforge.net/lists/listinfo/pydev-code > |
From: Fabio Z. <fa...@es...> - 2013-03-23 02:02:00
|
Hi Fran, Unfortunately yes, right now it's limited to Jython 2.2 (which is the internal version used). There are currently no plans to upgrade that version (mostly because it'd raise the size of PyDev a lot -- the jython jar is currently 1.5 MB, and the update would make it around 8 MB... The whole PyDev with Jython is right now 7 MB, so, it'd double the size just for that update). I'd consider adding it only if it makes the startup of the PyDev editor much faster (right now, the first time you open a PyDev editor, it has a delay: that's Jython loading... I'm almost considering removing it because of that delay -- or at least making it optional, in which case it might be worth putting it in a separate plugin -- then, maybe it'd be worth updating the version, as users that don't want it don't need to get it). Cheers, Fabio On Fri, Mar 22, 2013 at 10:47 PM, Fran Boon <fra...@gm...> wrote: > I have been playing with the Jython scripting interface which I just > discovered & have been very excited about, however I find that it > seems to be limited to v2.2, is that true? > I have 2.7b1 installed & can launch an interactive console with that > version, however this isn't what is used for the scripts & I can't see > a way to set it for the scripts? > > Many thanks for any help, > Fran. > > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_mar > _______________________________________________ > pydev-code mailing list > pyd...@li... > https://lists.sourceforge.net/lists/listinfo/pydev-code > |
From: Fran B. <fra...@gm...> - 2013-03-23 01:47:31
|
I have been playing with the Jython scripting interface which I just discovered & have been very excited about, however I find that it seems to be limited to v2.2, is that true? I have 2.7b1 installed & can launch an interactive console with that version, however this isn't what is used for the scripts & I can't see a way to set it for the scripts? Many thanks for any help, Fran. |
From: Fabio Z. <fa...@gm...> - 2013-03-15 16:16:38
|
Hi All, PyDev 2.7.2 has been released and needs help to be kept being developed. Release Highlights ---------------------------- * Updated icons in PyDev to match better a dark theme. * Improved minimap. * Fixed issue copying qualified name when editor is not in the PYTHONPATH. * Removed call home ping from PyDev. * Fixed issue on Ctrl+1 assist to ignore some warning. * Improved comment/uncomment to deal properly with pep8 formatting. Helping PyDev --------------------------- Currently, PyDev is raising funds so that it's development can be continued and a lightweight toolchain for editors inside Eclipse can complement it. Please help keeping PyDev alive! More details can be seen at: http://igg.me/at/liclipse What is PyDev? --------------------------- PyDev is a plugin that enables users to use Eclipse for Python, Jython and IronPython development -- making Eclipse a first class Python IDE -- It comes with many goodies such as code completion, syntax highlighting, syntax analysis, refactor, debug and many others. Cheers, -- Fabio Zadrozny ------------------------------------------------------ Software Developer PyDev - Python Development Environment for Eclipse http://pydev.org http://pydev.blogspot.com |
From: Jeremy J C. <jj...@sy...> - 2013-03-01 23:34:52
|
I have submitted a patch concerning organize imports, providing: - pep8 compliance - unused import removal - bulk processing If you would like to check it out, you can download an eclipse feature patch here: https://github.com/jeremycarroll/Pydev/wiki Feedback welcome Jeremy |
From: Jon J. <jos...@gm...> - 2013-03-01 19:20:08
|
I see some references to starting an interactive interpreter but I have been unable to do so. Is this possible and if so how do I go about it? Thanks, Jon. |
From: Malte F. <mal...@be...> - 2013-02-09 09:28:55
|
Hi, I order to do some remote debugging, I recently copied pysrc to the server and modified pydevd_file_utils.py as described in http://pydev.org/manual_adv_remote_debugger.html. As far as I understand, there is no separation between the (potentially) system-wide module pysrc and its user-specific or project-specific configuration. I would like to suggest refactoring the configuration variables out of pydevd_file_utils.py into a new file pydevd_config.py. That way, it should be possible to package pysrc and install it as a system-wide module on a remote debugging server. Each user or project could specify an appropriate configuration in a copy of pydevd_config.py. Of course, that copy must be placed where it is found and imported before the generic version in the system-wide package is found. I'm attaching my versions of pydevd_file_utils.py and pydevd_config.py, based on pydev 2.7.1, which I created for testing this approach. Malte |
From: Sayth R. <fle...@gm...> - 2013-02-06 00:11:57
|
From: Sayth R. <fle...@gm...> - 2013-01-25 23:26:57
|
Is it possible to create run configurations with autoreload. Was reading here http://pydev.org/manual_adv_django.html For Run Django with autoreload it notes this. import pydevd pydevd.patch_django_autoreload( patch_remote_debugger=False, #Note that the remote debugger patch setting should be False on a regular run patch_show_console=True ) just *before* the *if _name_ == "_main_":* in your manage.py module Is it possible though instead of adding this to each project to set up a run configuration that will run with autoreload each time I open a new Django project? Sayth |
From: Mason W. <mas...@gm...> - 2012-11-20 21:06:44
|
Hello, I've been struggling for over a month now to try to get Eclipse to recognize Jython classes within Java when my plugin is activated. I've posted several times to Stack Overflow with the PyDev tag but haven't gotten much in the way of responses so I thought I'd give this a try. Even if you don't have an answer for me, I'd appreciate a quick reply so I know this email hasn't simply gone to the bit bucket. I'm using the JythonObjectFactory described in http://www.jython.org/jythonbook/en/1.0/JythonAndJavaIntegration.html#using-jython-within-java-applications . When I run a JUnit test in an Eclipse plugin (not a JUnit-Plugin test and so I'm not activating the plugin), the factory works just fine. When I call validateFactory.createObject(), I can cast it to the Java Interface I wrote and everyone is happy. When I try to do the same thing when I activate the plugin (via a product run configuration), I get the error: java.lang.ClassCastException: org.python.core.PySingleton cannot be cast to com.myorg.MyInterface. When I run the unit test, if I call System.out.println(validateFactory.createObject().getClass().getName()); the output is org.python.proxies.MyInterfaceDefinition$MyInterfaceDefinition$3 MyInterfaceDefinition is a Jython module that defines a class MyInterfaceDefinition that inherits from com.myorg.MyInterface but when I do the same call from my plugin, the output is: org.python.core.PySingleton Does this ring any bells for anyone? Thanks for taking a look at this. Mason Wardle P.S. Here's a little background info: I'm running in Eclipse 3.8.1 on Linux using PyDev 2.5.7. Note that in order to get this far with the plugin, I had to create a Jython plugin from the jython-2.5.3 jar and make it a dependency in my plugin. I also had to manually set JYTHONPATH in environment variables in the run configuration and append to sys.path in my Jython module, both are things that seem to be automatically done by the PyDev plugin when running my JUnit test. |
From: Fabio Z. <fa...@es...> - 2012-10-25 10:32:19
|
Just replied there too. Thanks, Fabio On Thu, Oct 25, 2012 at 3:10 AM, Sayth Renshaw <fle...@gm...> wrote: > Regarding Jinja2 support in PyDev here is a question on stackoverflow that > has plenty of up votes but no answer. > > http://stackoverflow.com/questions/10086078/jinja2-template-support-in-eclipse > > Might be able to provide an easily accessible public answer on Junja > support. > > Chees > > Sayth > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_sfd2d_oct > _______________________________________________ > pydev-code mailing list > pyd...@li... > https://lists.sourceforge.net/lists/listinfo/pydev-code > |
From: Sayth R. <fle...@gm...> - 2012-10-25 05:10:57
|
Regarding Jinja2 support in PyDev here is a question on stackoverflow that has plenty of up votes but no answer. http://stackoverflow.com/questions/10086078/jinja2-template-support-in-eclipse Might be able to provide an easily accessible public answer on Junja support. Chees Sayth |
From: Andreas P. <an...@fr...> - 2012-10-22 13:55:17
|
Hi, I'm wondering wether its possible to somehow teach PyDev about global functions that are automatically available in the interpreter? I have an application which adds a few modules via the C API to a Python interpreter and imports all symbols from one of these modules into the global namespace. I can provide a predefinition file for all the modules and that works fine, but I haven't found a way to tell PyDev that there are additional functions in the global namespace. Is there a way to do this? I'm including PyDev in an Eclipse app, so having a way to do this via API would be fine for me. Andreas PS: That application using the python interpreter can unfortunately not be used as interpreter in PyDev since it does not allow running arbitrary python scripts at the moment. |
From: Paul <pau...@af...> - 2012-10-20 20:44:58
|
Hi All, Sorry for long time no reply, has been a busy week. I appear to be mostly set, I'm managing to make changes and test them, so everything seems to be configured correctly. > This link explains this process: > > https://help.github.com/articles/fork-a-repo Thanks Andornaut, I must still look at this. In the mean time I'm progressing on my own branch, so it hopefully won't be too difficult to merge the changes back in or post a patch. > Before you can "run" your changes, you will need to "build" (compile) > the code. Therefore, you will need to meet all of the "build" > dependencies. Luckily this is not the case. Or rather, AFAIU, the only project I am changing is org.python.pydev, so only that one needs to be built each time (and, apart from my changes, it does build), it's the other projects that have missing deps, but as I'm not changing them, I don't need to build them. So far everything seems to work, I can make changes, run as "Eclipse Application", and see a new Eclipse with my changes, so I can test. I must still have a look at the test suite and see how to add one. I'm leaving that for last :) mostly because I'm not familiar enough with anything to have clear ideas of how I intend to implement it. I'm happy to report some success so far. I've got code folding working for some hard coded tags, and have finally managed to get somewhere on figuring out the whole preferences page stuff. I'm still busy putting custom tag preferences together, then I need to expand the folding code to allow multiple tags instead of just one, then it's on to the test cases. I have found some other stuff that looks weird, but I don't think it's due to what I'm doing, but I still need to verify that it exists in the current code folding. A few hurdles, and much learning still to do. Probably going to take more time than it should, but at least I feel I have a solid start. Many thanks for the help so far Paul |
From: Fabio Z. <fa...@gm...> - 2012-10-19 20:53:56
|
Hi Sayth, as Jinja2 seems very close to Django, it may be worth using the Django templates editor (it's distributed along with Aptana Studio 3 -- you just have to change the file association to open html files with that editor in the file association). Aside from that, from what I understood, Flask itself would already work right? Cheers, Fabio On Fri, Oct 19, 2012 at 10:43 AM, Sayth Renshaw <fle...@gm...> wrote: > Hi > > Was hoping that PyDev could support Flask. In respect to flask itself > it is python and templates structured under 2 folders so it is > relatively easy to add the basic structure. > > Flask however uses Jinja2 templates http://jinja.pocoo.org/docs/ for > its html. This is where I am requesting more help as the templates > don't format well in eclipse. > > Is this at all likely? > > Sayth > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_sfd2d_oct > _______________________________________________ > pydev-code mailing list > pyd...@li... > https://lists.sourceforge.net/lists/listinfo/pydev-code |
From: Sayth R. <fle...@gm...> - 2012-10-19 13:43:36
|
Hi Was hoping that PyDev could support Flask. In respect to flask itself it is python and templates structured under 2 folders so it is relatively easy to add the basic structure. Flask however uses Jinja2 templates http://jinja.pocoo.org/docs/ for its html. This is where I am requesting more help as the templates don't format well in eclipse. Is this at all likely? Sayth |
From: Andornaut <and...@gm...> - 2012-10-12 16:40:06
|
Thought I'd tackle a few of the lower hanging fruit =-) > Firstly, they talk about changing the compliance level from 1.4 to 5.0. > I don't have a 5.0 in Eclipse, only 1.3 through 1.7, and it's currently > on 1.6, so I can only assume this is correct. The numbering must have > changed, and I assume 1.6 is java 6 and the 5.0 was java 5, so this > should be fine. I assume that it's referring to the Java version, not eclipse. So, Java 1.5 (5.0) > Secondly, they talk about forking the code at github, then creating > your own branch. I'm not really familiar with git, or github, so I'm > not sure if I should be doing the fork on github or what, but for now > I've "git-clone"d the github code to my machine and made a feature > branch (with git checkout -b), so if I work on that local copy I should > be able to submit a patch later, right? This link explains this process: https://help.github.com/articles/fork-a-repo > There's stuff in the guide about creating a pull request on github, but I don't have a public IP, so I think I'll need to mail patches. A static IP is not a requirement. > Then the developers guide talks of having a dependancy on Aptana, but > only if building the code, not if just running the changes in Eclipse. > As I understand it, I will just be making changes, and then running it > in a new Eclipse from inside Eclipse, so I won't need Aptana? Before you can "run" your changes, you will need to "build" (compile) the code. Therefore, you will need to meet all of the "build" dependencies. HTH On Fri, Oct 12, 2012 at 11:13 AM, Paul <pau...@af...> wrote: > Hi Fabio, > > Thanks for the reply. I've got started already, but there are some > things that I'm not clear on. See comments inline. > >> For this situation I think doing it in the code directly (and not in >> scripting) would be a better choice, as you'll be able to edit the >> preferences and the current code isn't really meant to be extended for >> what you want in scripting. > Ah, so? Pity, scripting would have been easier, I think, but I will > experiment with the plug-in code. Probably a better solution in the > long run. > >> The first thing would be the code there compiling properly. Make sure >> you have downloaded the java SDK (preferably Java 5, but could be a >> later version too) and the latest Eclipse 3.8 SDK and try following >> the instructions from: http://www.pydev.org/developers.html > Ok, I have java version 1.6.0_21, which is java 6 AFAIU. I also have > Eclipse Juno, version 4.2.0. The instructions at the given link have a > few things I don't understand. > > Firstly, they talk about changing the compliance level from 1.4 to 5.0. > I don't have a 5.0 in Eclipse, only 1.3 through 1.7, and it's currently > on 1.6, so I can only assume this is correct. The numbering must have > changed, and I assume 1.6 is java 6 and the 5.0 was java 5, so this > should be fine. > > Secondly, they talk about forking the code at github, then creating > your own branch. I'm not really familiar with git, or github, so I'm > not sure if I should be doing the fork on github or what, but for now > I've "git-clone"d the github code to my machine and made a feature > branch (with git checkout -b), so if I work on that local copy I should > be able to submit a patch later, right? There's stuff in the guide about > creating a pull request on github, but I don't have a public IP, so I > think I'll need to mail patches. > > Then the developers guide talks of having a dependancy on Aptana, but > only if building the code, not if just running the changes in Eclipse. > As I understand it, I will just be making changes, and then running it > in a new Eclipse from inside Eclipse, so I won't need Aptana? > > It also talks of making changes to > org.python.pydev.core/tests/org.python.pydev.core/TestDependent.OS.properties, > which I assume would be > org.python.pydev.core/tests/org.python.pydev.core/TestDependent.windows.properties > for me. I see a lot of stuff in there, including things like > IronPython. Do I need all of that installed? There are things there I > don't even know, like PIL. And the google app engine? Surely I don't > need all of that to make the simple changes I am contemplating? Is > that stuff only needed for running the tests? > > Lastly, the guide talks about reading the instructions > at /plugins/org.python.pydev.build/build_cmd.txt, but that seems to do > a lot of git stuff and I'm not sure quite what that relates to. I'm > hoping I don't need that stuff just to test and submit a patch. > >> After that, the related classes would be: >> >> org.python.pydev.editor.codefolding.CodeFoldingSetter: It'd be mainly >> configuring >> org.python.pydev.editor.codefolding.CodeFoldingSetter.getMarks(IDocument, >> SimpleNode) to return more folding entries. >> >> org.python.pydev.editor.codefolding.CodeFoldingSetterTest: Please do a >> test-case for your situation so that it keeps working after the >> initial implementation is done :) >> >> org.python.pydev.editor.codefolding.PyDevCodeFoldingPrefPage: add the >> related preferences for the option you want to add. > Thanks, I've started poking around, and I think I can make a stab at > it, although I may be mailing with a few more issues as I progress, I'm > sure :) >> >> Note that you may run an Eclipse with your own code changes doing a >> run configuration: >> >> menu: run > run configurations > eclipse application (right-click for >> new eclipse application) > run. > What am I trying to run? I tried to right-click on the org.python.pydev > project (in the package explorer), and under the "Run As" submenu of > the context menu was "Eclipse Application", but this complains about > errors in com.aptana.interactive_console, > org.python.pydev.django_templates and org.python.pydev.mylyn. I have > tried clicking "Proceed", and sure enough a new Eclipse opens with my > changes, so I'm assuming that despite the errors I'm on the right track > and can safely ignore the errors to proceed. > > Sorry if I sound terribly noobish, but I've not had much exposure to > either java or Eclipse before (and only fairly recently to python). I > think I've got things chugging along enough to make the changes I need, > and hopefully submit a patch at the end. > > Again, many thanks for the help. > > Paul > > ------------------------------------------------------------------------------ > Don't let slow site performance ruin your business. Deploy New Relic APM > Deploy New Relic app performance management and know exactly > what is happening inside your Ruby, Python, PHP, Java, and .NET app > Try New Relic at no cost today and get our sweet Data Nerd shirt too! > http://p.sf.net/sfu/newrelic-dev2dev > _______________________________________________ > pydev-code mailing list > pyd...@li... > https://lists.sourceforge.net/lists/listinfo/pydev-code |
From: Paul <pau...@af...> - 2012-10-12 15:40:58
|
Hi Fabio, Thanks for the reply. I've got started already, but there are some things that I'm not clear on. See comments inline. > For this situation I think doing it in the code directly (and not in > scripting) would be a better choice, as you'll be able to edit the > preferences and the current code isn't really meant to be extended for > what you want in scripting. Ah, so? Pity, scripting would have been easier, I think, but I will experiment with the plug-in code. Probably a better solution in the long run. > The first thing would be the code there compiling properly. Make sure > you have downloaded the java SDK (preferably Java 5, but could be a > later version too) and the latest Eclipse 3.8 SDK and try following > the instructions from: http://www.pydev.org/developers.html Ok, I have java version 1.6.0_21, which is java 6 AFAIU. I also have Eclipse Juno, version 4.2.0. The instructions at the given link have a few things I don't understand. Firstly, they talk about changing the compliance level from 1.4 to 5.0. I don't have a 5.0 in Eclipse, only 1.3 through 1.7, and it's currently on 1.6, so I can only assume this is correct. The numbering must have changed, and I assume 1.6 is java 6 and the 5.0 was java 5, so this should be fine. Secondly, they talk about forking the code at github, then creating your own branch. I'm not really familiar with git, or github, so I'm not sure if I should be doing the fork on github or what, but for now I've "git-clone"d the github code to my machine and made a feature branch (with git checkout -b), so if I work on that local copy I should be able to submit a patch later, right? There's stuff in the guide about creating a pull request on github, but I don't have a public IP, so I think I'll need to mail patches. Then the developers guide talks of having a dependancy on Aptana, but only if building the code, not if just running the changes in Eclipse. As I understand it, I will just be making changes, and then running it in a new Eclipse from inside Eclipse, so I won't need Aptana? It also talks of making changes to org.python.pydev.core/tests/org.python.pydev.core/TestDependent.OS.properties, which I assume would be org.python.pydev.core/tests/org.python.pydev.core/TestDependent.windows.properties for me. I see a lot of stuff in there, including things like IronPython. Do I need all of that installed? There are things there I don't even know, like PIL. And the google app engine? Surely I don't need all of that to make the simple changes I am contemplating? Is that stuff only needed for running the tests? Lastly, the guide talks about reading the instructions at /plugins/org.python.pydev.build/build_cmd.txt, but that seems to do a lot of git stuff and I'm not sure quite what that relates to. I'm hoping I don't need that stuff just to test and submit a patch. > After that, the related classes would be: > > org.python.pydev.editor.codefolding.CodeFoldingSetter: It'd be mainly > configuring > org.python.pydev.editor.codefolding.CodeFoldingSetter.getMarks(IDocument, > SimpleNode) to return more folding entries. > > org.python.pydev.editor.codefolding.CodeFoldingSetterTest: Please do a > test-case for your situation so that it keeps working after the > initial implementation is done :) > > org.python.pydev.editor.codefolding.PyDevCodeFoldingPrefPage: add the > related preferences for the option you want to add. Thanks, I've started poking around, and I think I can make a stab at it, although I may be mailing with a few more issues as I progress, I'm sure :) > > Note that you may run an Eclipse with your own code changes doing a > run configuration: > > menu: run > run configurations > eclipse application (right-click for > new eclipse application) > run. What am I trying to run? I tried to right-click on the org.python.pydev project (in the package explorer), and under the "Run As" submenu of the context menu was "Eclipse Application", but this complains about errors in com.aptana.interactive_console, org.python.pydev.django_templates and org.python.pydev.mylyn. I have tried clicking "Proceed", and sure enough a new Eclipse opens with my changes, so I'm assuming that despite the errors I'm on the right track and can safely ignore the errors to proceed. Sorry if I sound terribly noobish, but I've not had much exposure to either java or Eclipse before (and only fairly recently to python). I think I've got things chugging along enough to make the changes I need, and hopefully submit a patch at the end. Again, many thanks for the help. Paul |
From: Fabio Z. <fa...@es...> - 2012-10-11 12:10:43
|
Hi Paul, For this situation I think doing it in the code directly (and not in scripting) would be a better choice, as you'll be able to edit the preferences and the current code isn't really meant to be extended for what you want in scripting. The first thing would be the code there compiling properly. Make sure you have downloaded the java SDK (preferably Java 5, but could be a later version too) and the latest Eclipse 3.8 SDK and try following the instructions from: http://www.pydev.org/developers.html After that, the related classes would be: org.python.pydev.editor.codefolding.CodeFoldingSetter: It'd be mainly configuring org.python.pydev.editor.codefolding.CodeFoldingSetter.getMarks(IDocument, SimpleNode) to return more folding entries. org.python.pydev.editor.codefolding.CodeFoldingSetterTest: Please do a test-case for your situation so that it keeps working after the initial implementation is done :) org.python.pydev.editor.codefolding.PyDevCodeFoldingPrefPage: add the related preferences for the option you want to add. Note that you may run an Eclipse with your own code changes doing a run configuration: menu: run > run configurations > eclipse application (right-click for new eclipse application) > run. Cheers, Fabio On Thu, Oct 11, 2012 at 8:32 AM, Paul <pau...@af...> wrote: > Hi List, > > I see from this > (http://sourceforge.net/tracker/index.php?func=detail&aid=1841410&group_id=85796&atid=577332), > that PyDev still doesn't support code folding on custom tags. Not sure > if this is the latest word on it or if I'm missing something, but from > my searching on the net and the mailing list archives, I can find > nothing more on it, and it seems at least a few people would like to > see this feature. > > I've had a stab at it myself, trying both hacking the PyDev plug-in, > and scripting it with the jython scripting support, but so far no luck. > I'm afraid I'm new to Eclipse plug-in dev, and am having some troubles. > > I was wondering if there was any further info on this, anybody already > involved in PyDev work that would add this (as it seems like it would > be fairly quick to add for someone who knew the internals of PyDev), or > if not, anybody who could help me get pointed in the right direction? > > For hacking the plug-in, I grabbed the code off github, unzipped the > zip (I didn't want to clone the repo yet, as I just wanted to poke > around quickly for now, and don't already have git installed), loaded it > into Eclipse, but can't seem to run it. Something about the build path > being incomplete and not being able to find java.lang.Object. I'm sure > this is really simple, but I'm not very experienced with Java or Eclipse > dev, so I'm just not quite sure how to set it up correctly. > > For the scripting approach, I've gotten further. I have hooked up an > IDocumentLister in the 'onSetDocument' event to listen for changes to > the document, but from looking at the plug-in code, it looks like I may > actually want an IModelListener hooked up instead. I can't seem to get > that part working, tho. Once I have the correct listener, I'm thinking > I can check the document to get access to the comments, look for a > custom comment, and add the mark to the listener (simple, right?). > > Either approach should do, and both seem to have their advantages, > although the scripting approach may be easier for me to get working. Any > comments as to which is preferable? > > Anybody able and willing to help me out? > > Thanks all > > Paul > > ------------------------------------------------------------------------------ > Don't let slow site performance ruin your business. Deploy New Relic APM > Deploy New Relic app performance management and know exactly > what is happening inside your Ruby, Python, PHP, Java, and .NET app > Try New Relic at no cost today and get our sweet Data Nerd shirt too! > http://p.sf.net/sfu/newrelic-dev2dev > _______________________________________________ > pydev-code mailing list > pyd...@li... > https://lists.sourceforge.net/lists/listinfo/pydev-code |
From: Paul <pau...@af...> - 2012-10-11 11:53:34
|
Hi List, I see from this (http://sourceforge.net/tracker/index.php?func=detail&aid=1841410&group_id=85796&atid=577332), that PyDev still doesn't support code folding on custom tags. Not sure if this is the latest word on it or if I'm missing something, but from my searching on the net and the mailing list archives, I can find nothing more on it, and it seems at least a few people would like to see this feature. I've had a stab at it myself, trying both hacking the PyDev plug-in, and scripting it with the jython scripting support, but so far no luck. I'm afraid I'm new to Eclipse plug-in dev, and am having some troubles. I was wondering if there was any further info on this, anybody already involved in PyDev work that would add this (as it seems like it would be fairly quick to add for someone who knew the internals of PyDev), or if not, anybody who could help me get pointed in the right direction? For hacking the plug-in, I grabbed the code off github, unzipped the zip (I didn't want to clone the repo yet, as I just wanted to poke around quickly for now, and don't already have git installed), loaded it into Eclipse, but can't seem to run it. Something about the build path being incomplete and not being able to find java.lang.Object. I'm sure this is really simple, but I'm not very experienced with Java or Eclipse dev, so I'm just not quite sure how to set it up correctly. For the scripting approach, I've gotten further. I have hooked up an IDocumentLister in the 'onSetDocument' event to listen for changes to the document, but from looking at the plug-in code, it looks like I may actually want an IModelListener hooked up instead. I can't seem to get that part working, tho. Once I have the correct listener, I'm thinking I can check the document to get access to the comments, look for a custom comment, and add the mark to the listener (simple, right?). Either approach should do, and both seem to have their advantages, although the scripting approach may be easier for me to get working. Any comments as to which is preferable? Anybody able and willing to help me out? Thanks all Paul |
From: Fabio Z. <fa...@gm...> - 2012-10-05 00:03:27
|
Hi All, PyDev 2.7.0 has been released Details on PyDev: http://pydev.org Details on its development: http://pydev.blogspot.com Release Highlights: ------------------------------- * **Code formatter**: * Number of spaces before a comment can be configured (default: 2 spaces as pep-8 recommends) * Minimum number of spaces before start of comment may be configured (default: 1 space as pep-8 recommends) * Right trim lines now also properly trims comments. * When the auto-formatter is enabled, if syntax errors are present the code-formatting is not applied (it could end up getting things wrong in this situation). * Python 3.3 'yield from' syntax now properly supported. * Fixed issue when unable to get filesystem encoding when configuring interpreter. * Debugger: 'Enable Condition' checkbox in break properties dialog no longer ignored. * Fixed ClassCastException during parse in Python file with yield in global scope. * Fixed StackOverflowError in fast parser (i.e.: parser used to get only the outline of the code). * PyDev Mylyn integration can now be installed on Eclipse 4.2. * Fixed NPE when trying to add interpreter and it detected directory which we could not list() in Java. * Fixed cache issue in code-completion (nature.startRequests() could end up not having nature.endRequests() called). * Save a bit faster on big files (i.e.: No longer doing invalidateTextPresentation on each save). What is PyDev? --------------------------- PyDev is a plugin that enables users to use Eclipse for Python, Jython and IronPython development -- making Eclipse a first class Python IDE -- It comes with many goodies such as code completion, syntax highlighting, syntax analysis, refactor, debug and many others. Cheers, -- Fabio Zadrozny ------------------------------------------------------ Software Developer Appcelerator http://appcelerator.com/ Aptana http://aptana.com/ PyDev - Python Development Environment for Eclipse http://pydev.org http://pydev.blogspot.com |
From: Fabio Z. <fa...@es...> - 2012-09-11 13:16:51
|
It seems this is related to using python 3 (where print is no longer a statement and must be called as print('something')). Note: this forum is not the appropriate location for these questions... please ask at stackoverflow (and you may add a 'pydev' tag if you think it's related to pydev). Cheers, Fabio On Tue, Sep 11, 2012 at 10:08 AM, julius <com...@ya...> wrote: > hi, > > i tried some testcode on windows 7 in eclipse with pydev and it worked, but somehow now i cant even use a simple print statement. > the error is: SyntaxError: invalid syntax > > > example: > > print "lala" > > > > console: > > File "C:\Users\julius\workspace\tcpdump\testing\test.py", line 1 > print "lala" > ^ > SyntaxError: invalid syntax > > > > > the code is in a python module, but eclipse refuses to even run one line. > however, import statements are recognized somehow. > what could this be? > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > pydev-code mailing list > pyd...@li... > https://lists.sourceforge.net/lists/listinfo/pydev-code |
From: julius <com...@ya...> - 2012-09-11 13:08:59
|
hi, i tried some testcode on windows 7 in eclipse with pydev and it worked, but somehow now i cant even use a simple print statement. the error is: SyntaxError: invalid syntax example: print "lala" console: File "C:\Users\julius\workspace\tcpdump\testing\test.py", line 1 print "lala" ^ SyntaxError: invalid syntax the code is in a python module, but eclipse refuses to even run one line. however, import statements are recognized somehow. what could this be? |
From: Minjae D. K. <min...@gm...> - 2012-08-31 06:04:08
|
Hello, PyDev has a 'Mark Occurrences' that I find useful. However, I realized that it does not work when I use vi keystrokes (h,j,k,l) to move the cursor (I am using a vi-emulator plugin, and there are several vi and emacs plugins out there). The mark occurrences feature works only when I use arrow keys or the mouse to move the cursor, and this strange behavior has been noted before me as well. I wondered why, so I took a look into the code and found the logic in PyEdit.java: public void keyReleased(KeyEvent e) { if (e.character == '\0') { switch (e.keyCode) { case SWT.ARROW_DOWN: case SWT.ARROW_UP: case SWT.ARROW_LEFT: case SWT.ARROW_RIGHT: case SWT.HOME: case SWT.END: case SWT.PAGE_UP: case SWT.PAGE_DOWN: int offset = getOffset(); if (offset != lastOffset) { notifyCursorPositionChanged(); lastOffset = offset; } default: return; } } } In the code, to the best of my knowledge, {notifyCursorPositionChanged} is the part that eventually triggers mark occurrences. As the above logic filters for arrow keys and several others, obviously vi movement keys never make to the {notifyCursorPositionChanged}. Now, this is not strictly a bug as PyDev works fine. However, it makes me wonder why there is that keycode switch logic in the first place. The {if (offset != lastOffset) } conditional already and correctly tests whether the cursor position has changed. And this condition alone should be enough to trigger notifyCursorPositionChanged(). I simply do not understand the reason behind switch logic filter. So, my question is, could we get rid of the switch logic completely and use the if conditional alone? This would coincidentally solve my problem :) Please feel free to provide opinions -- this is my first time looking at the pydev source code, and I will be happy to be enlightened. Best Regards, Minjae |
From: Martin C. M. <ma...@ma...> - 2012-08-16 22:25:24
|
Hi all, I'd like to modify how the Python code is rendered on the screen, to make it different from how it's stored on disk. Some random examples: - Display list comprehensions as [for x in foo: expr(x)] - Display return statements -- "return expr" -- without the return keyword, i.e. just "expr". - For a pair of statements like this: local_var = expr my_func(local_var) render them as this: my_func(expr) I'm pretty familiar with Python and Java, but have never developed Eclipse plugins before. Any suggestions as to what parts of the code I should read first? What docs? The existing "collapse comments" is an example of this. Would that be a good place to start? Thanks, Martin |