goto icon indicating copy to clipboard operation
goto copied to clipboard

Indexing hangs Atom

Open robingram opened this issue 10 years ago • 13 comments

Indexing completely fails on my codebase which is reasonably large but not huge (about 35MB). Atom hangs completely and the memory use of the process keeps growing. I've had this continue for up to 15 minutes before giving up and killing the process. I do have a very large media folder but I assume it will be ignoring image asset files. The code base is a PHP/Magento installation. Running on Windows, Atom v0.129.0.

robingram avatar Sep 19 '14 00:09 robingram

Having the same issue on a moderate size Symfony PHP project, zipped 35 MB. btw, I tried using the CTAGs building and stopped that after 15 minutes and a tags file of 12GB

Elexy avatar Oct 09 '14 12:10 Elexy

Same issue with a crash at the end. I have a crash stack trace if needed.

dMathieuD avatar Nov 24 '14 10:11 dMathieuD

Same issue here, had to close Atom since it appeared to get stuck

danjuls avatar Dec 18 '14 07:12 danjuls

Same here.

gustavolobo avatar Dec 18 '14 13:12 gustavolobo

I'll look into this, but I am actually switching back to Emacs for a while. I'll be looking for someone to take over my Atom projects. If anyone is interested, let me know. I'll also check on the Atom discussion board.

mkleehammer avatar Dec 18 '14 14:12 mkleehammer

Same here

talcloudshare avatar Apr 05 '15 12:04 talcloudshare

@v3ss0n To my mind, this is the biggest issue with the package, but I also think the general problem is largely unsolvable (it takes a long time to go through all the files in the project, parse them using the corresponding grammar, and then iterate through parsed tokens to figure out if they are symbols).

It might help, however, to make the SymbolIndex::processDirectory and SymbolIndex::processFile logic async. This would also mean that we could try to show the symbol list immediately and update it in realtime as the index builds itself.

acusti avatar Jun 11 '15 18:06 acusti

I just reproudced it , it makes my atom crashed too and had to disable. making it async or worker proecess will help a lot. We need to test a bit .

v3ss0n avatar Jun 11 '15 20:06 v3ss0n

same here

kazkovsky avatar Jun 29 '15 08:06 kazkovsky

This is happening to me on two code bases that it used to work fine with, one of which I haven't touched.

jarhart avatar Jul 01 '15 21:07 jarhart

same here

rolfrussell avatar Sep 02 '15 13:09 rolfrussell

Removing this line could also help. Logging that much does affect performance (I tried to save the whole log for an elm project, it was over 10mb, also atom crashed while saving it).

despairblue avatar Mar 11 '16 09:03 despairblue

This is by no means fixed, but it is improved as of 1.8.0. Also, I can recommend a few techniques to help:

  • Make sure to include file names and extensions you don’t care about in your “More ignored names” options, like: .css .svg webpack.config.js package.json
  • Exclude your test files (could just be tests if all your tests are in a directory names tests or *.test.js if all of your test files have that suffix)

acusti avatar Dec 11 '16 07:12 acusti