Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why typing in Eclipse/PyDev editor became very slow?

Tags:

eclipse

pydev

Recently, typing python code in PyDev editors became extremely slow. Slow to the point that after typing a function name I have to wait to see letters appear one after another over several seconds. Even inside comments and strings. Other editors are fine.

I tried suggestions in other questions like disabling automatic building but got no effect.

Restarting Eclipse does not resolve the problem but after a reboot the situation is better.

I'm running PyDev 3.9.2/Eclipse 4.4.2 with Oracle Java 1.8 64bit on CentOS 7. Eclipse is started with -Xms512m and -Xmx2048m. The System is an old Intel Core i7 with 8GB Ram.

Here is my current installed Plugin

I appreciate any suggestions to find the problem cause.

Update: Still have the same issue with PyDev v4.1. I filed a bug report on the PyDev issue tracker: ID 582

Update 2: The bug was fixed in PyDev v4.2.

like image 380
Mohammad Alhashash Avatar asked Mar 07 '15 19:03

Mohammad Alhashash


People also ask

How do I run code in PyDev?

Go to the menu: Alt + R + S + The number of the Run you wish (It can be Python, Jython, unit-test, etc). Note: if you were using unit-tests, you could use: Ctrl+F9 to run the unit-tests from the module (and even selecting which tests should be run -- and if Shift is pressed it's launched in debug mode).

Does PyDev have auto indentation?

Although auto-indentation is not a feature of PyDev because of the language design you should be able to indent with a simple tab. Just select the lines you want to indent and press Tab. If you want to unindent lines you have to press Shift+Tab. Thats all.

What is PyDev Eclipse?

PyDev is a plugin that enables Eclipse to be used as a Python IDE (supporting also Jython and IronPython).


1 Answers

Ok, it seems that different reasons can cause it, but turning off vertical guidelines solved it for me:

Preferences -> PyDev -> Editor -> Vertical Indent Guide -> Show vertical indent guide set to False

like image 54
Dimath Avatar answered Oct 16 '22 04:10

Dimath