Showing posts with label aptana. Show all posts
Showing posts with label aptana. Show all posts

Saturday, April 3, 2010

PyDev 1.5.6 has been released

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.

Fabio Zadrozny from Aptana, the author of PyDev plugin,  passed this information through mailing list:

This Release Highlights:

  • Django integration:





    • New Django project can be created through twizard

    • Can set an existing porject as a Django project (right-click project > pydev > set as django project) I think this is a kind of Eclipse's personality, like those of Maven2 plugins where you can declare that this project is a  Maven project

    • New Django project can be created throughtwizard

    • Can remove Django project config (righ-click project > django > remove django project config)

    • Custom actions can be passed to the configured manage.py through ctrl + 2 + dj django action -- if not action is passed, will open to choose from a list of previously used command

    • Predefined/custom actions can be used through right-clicking the project > django > select custom action

    • manage.py and settings module configured

    • Django shell (with code-completion, history, etc) available

    • Run/Debug as Django available

    • See: http://pydev.org/manual_adv_django.html for more details





  • Find/Replace:

    • The search in open files is no longer added in the find/replace dialog and now works through Ctrl  + 2+  s word_to_find (in the PyDev editor) and if no word is passed, the editor selection is used





  • Go to definition:

    • Properly works with unsaved files (so, it will work when searching for a definition on an unsaved file)

    • Properly working with Eclipse 3.6 (having FileStoreEditorInput as the editor input)





  • Editor:

    • Automatically closing literals

    • Removing closing pair on backspace on literal

    • Improved heuristics for automatically closing (, [ and {

    • Removing closing pair on backspace on (, [ and {

    • Ctrl + 2 + sl (sl comes from 'split lines' -- can be used to add a new line after each comma in the selection

    • Ctrl + 2 + is (is comes from 'import string' -- can be used to transform the selected import into a string with dots



  • General:

    • Code-completion properly working on relative import with an alias

    • Fixed racing issue that could deadlock pydev (under really hard to reproduce circumstances)

    • Removing reloading code while debugging until (if) it becomes more mature in the python side

    • Fixed issue where a new project created didn't have the source folder correctly set

    • Text selection in double click no longer has weird behavior

    • Local refactoring working on files not in the PYTHONPATH

    • Edit properly working on string substitution variables

    • Using with statement on python 2.5 no longer makes lines wrong in the AST



Wednesday, October 21, 2009

PyDev 1.5 on Eclipse Galileo 3.5 SR1

I begin to have more time to explore the Eclipse Galileo Service Release 1 (Eclipse 3.5.1). This time I want to set it up for my Python development, using the PyDev plugin.

PyDev is an Eclipse plugin for Python language application development. It supports CPython, Jython and IronPython runtimes. It supports the interactive as well as non-interactive Python development on Eclipse IDE.

Eclipse IDE (and platform) has become the de facto industry standard IDE. More and more free software, open source software, and proprietary software makers build their systems on Eclipse platform. Galileo is the codename for 3.5 release, and now the latest one is the SR1 (Service Release 1).

There has been interesting development on PyDev since its last 1.4.7 version. PyDev has moved to be sheltered under the umbrella of Aptana. PyDev and PyDev Extension now has been merged and both now open source (previously the PyDev Extension, the advanced version of PyDev was not an open source).

The update site has been moved from domain www.fabioz.com (http://www.fabioz.com/pydev) to domain pydev.org (http://pydev.org/updates) . Aptana  This development looks good for me, means that PyDev now being maintained by its own organization, and hopefully in more serious efforts.

In Eclipse Galileo, you need to go to the menu and choose: Help > Install New Software...

eclipse-pydev-update-01

It will show the Install dialog.

eclipse-pydev-update-02

Click the [Add] button on the upper of menu dialog. You will get the "Add Site" dialog.

Type name and location.
Name: "PyDev Update  Site" (you can feel with any arbitrary name though)
Location: http://pydev.org/updates

eclipse-pydev-update-03

Back to the "Install" dialog, the previous "Add Site" will fill up the "Work with" field for you.

eclipse-pydev-update-04

Now tick the Checkbox "PyDev for Eclipse" under "PyDev". You may also optionally tick the "Pydev Mylyn Integration". In this example we don't tick.

Click the [Next >] button. It will show you the Install Details:

eclipse-pydev-update-05

Proceed by clicking [Next >] button. Review Licenses dialog will be displayed.

eclipse-pydev-update-06

Click the radio button "I accept the terms of the license  agreement" when you are agree with the licenses. Proceed by clicking [Finish] button.

eclipse-pydev-update-08

You will see the progress bar. Somewhere around the progress, you will be asked whether to install software that contains unsigned content.
eclipse-pydev-update-09

Click [OK] to proceed (we have no choice as long as the provider of this plugin hasn't signed the content).

eclipse-pydev-update-10

Click the [Yes] button to restart your Eclipse IDE.