Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PyCharm indexing goes into infinite loop

Tags:

pycharm

I opened up a directory with PyCharm, and after it was done indexing, I still didn't get code completion suggestions, so I invalidated the cache. When I reopened PyCharm, I noticed that it was indexing

/usr/local/google_appengine/google_appengine/google_appengine/...

so it turns out there's a symlink or alias (not sure which) to itself. So I removed it, invalidated the cache and restarted PyCharm. When PyCharm started, the same problem was back, so it looks like PyCharm put the symlink back. How do I tell pycnarm to use the file system as its source of information?

like image 420
bigblind Avatar asked Jul 25 '14 12:07

bigblind


People also ask

What does PyCharm indexing do?

Indexing in PyCharm is responsible for the core features of the IDE: code completion, inspections, finding usages, navigation, syntax highlighting, and refactorings. It starts when you open your project, switch between branches, after you load or unload plugins, and after large external file updates.

How do I stop PyCharm indexing?

In order to stop PyCharm from indexing the 'lib' directory, right-click on this directory and select Mark Directory as, then Excluded. This directory will now no longer be indexed by PyCharm.

Why does IntelliJ indexing take so long?

If indexing takes a significant amount of time, then it's likely that your project has more than two modules. Normally, you don't need all of them at same time. If this is the case, you can temporarily set aside (unload) the modules that you don't need right now.

How do I stop auto indexing in IntelliJ?

You can stop synchronizing/indexing each time you switch to the IDEA and it's quite useful when dealing with big projects and outside build process which triggers indexing. Just disable checkbox System Settings -> Synchronize files on frame or editor tab activation .


1 Answers

Open up

Preferences > Project Settings > Project Structure

Select the symlink and exlcude it from the project. This will prevent Pycharm from including and indexing the folder.

like image 115
cbrendanprice Avatar answered Sep 28 '22 05:09

cbrendanprice