editor-bootstrap / emacs-bootstrap

Your on-the-fly Emacs development environment.
http://emacs-bootstrap.com
MIT License
166 stars 23 forks source link

Unresponsive Python Emacs #30

Open PieterPaulussen opened 7 years ago

PieterPaulussen commented 7 years ago

Hello, I just generated a config folder using your bootstrapper. However when I run emacs I notice that it becomes really sluggish in response. Navigating with an arrow to the next line takes like 2 seconds... Any indication where I could start looking for a solution? Perhaps too many plugins are being loaded? I'm running (16.04 ubuntu) Thanks

rakanalh commented 7 years ago

Hi Pieter,

I wouldn't think that the reason is because many plugins are being loaded. Could you share a bit more information about your issue?

  1. What languages did you choose for the generation?
  2. What was the major mode when you were experiencing the slow responses? did you open a text file, python, C?
PieterPaulussen commented 7 years ago

I installed Python combined with the theme Spacemacs and tried Ivy and Helm as completion frontend. After installation I let the installer complete (the theme changed etc) and then opened a python file (just a small one ,500 lines or so) When you open a file, does the completion frontend need to load or construct the data for it?

rakanalh commented 7 years ago

Interesting... i think i've seen this before and the reason could be elpy trying to connect to the backend to retrieve auto-complete information. What you could do is try elpy-config and verify that you've installed the requirements elpy needs in your local virtualenv: pip install jedi at the very least. elpy-config should show you the rest of it's requirements or you can check out it's github page.

Otherwise, i would profile the code using this guide: https://www.gnu.org/software/emacs/manual/html_node/elisp/Profiling.html

And you'll get a report where the code is spending most of the time in execution. Let me know how it goes for you.