Saturday, February 27, 2021

PyDev 8.2.0 released (external linters, Flake8, path mappings, ...)

 PyDev 8.2.0 is now available for download.

This release has many improvements for dealing with external linters.

The main ones are the inclusion of support for the Flake8 linter as well as using a single linter call for analyzing a directory, so, that should be much faster now (previously it called external linters once for each file) .

Note: to request code analysis for all the contents below a folder, right-click it and choose PyDev > Code analysis:

Another change is that comments are now added to the line indentation... 

This means that some code as:

  def method():  
     if True:  
         pass

Will become:

  def method():  
     # if True:  
         # pass

p.s.: it's possible to revert to the old behavior by changing the preferences at PyDev > Editor > Code Style > Comments. 

Also note that after some feedback, on the next release an option to format such as the code below will also be added (and will probably be made the default):

  def method():  
     # if True:  
     #     pass

Interpreter configuration also got a revamp:

So, it's possible to set a given interpreter to be the default one and if you work with conda, select Choose from Conda to select one of your conda environments and configure it in PyDev.

Path mappings for remote debugging can now (finally) be configured from within PyDev itself, so, changing environment variables is no longer needed for that:

 

Note that Add path mappings template entry may be clicked multiple times to add multiple entries.

That's it... More details may be found at: http://pydev.org.

Hope you enjoy the release 😊


5 comments:

  1. I recently upgraded, but lost my templates and the 'New' button doesn't work. I note there's an 'import' function. Can you tell us where the templates are stored, or how to get templates back? Thanks.

    ReplyDelete
  2. This seems to be some breakage from the latest Eclipse (i.e.: Eclipse 2021-03 broke some things that used to work on Eclipse 2020-12).

    Hopefully this should be fixed for the next PyDev release.

    ReplyDelete
  3. p.s.: The workaround for now is using Eclipse 2020-12

    ReplyDelete
  4. Geoff Alexander10:21 AM

    Where can I get PyDev 8.2.0 as I need to use Eclipse on Java 8. https://github.com/fabioz/Pydev/releases/download/pydev_8_2_0/ gives a 404 Not Found error.

    ReplyDelete
  5. https://github.com/fabioz/Pydev/releases/download/pydev_8_2_0/ is the proper url (it is however an Eclipse update site and doesn't have an index.html -- you can verify that be accessing: https://github.com/fabioz/Pydev/releases/download/pydev_8_2_0/content.jar).

    i.e.:
    It's possible to add it as an Eclipse update site using the url:

    https://github.com/fabioz/Pydev/releases/download/pydev_8_2_0/

    Or get a .zip to install manually by unzipping it in the dropins:

    https://github.com/fabioz/Pydev/releases/download/pydev_8_2_0/PyDev.8.2.0.zip

    ReplyDelete