mikaeljorhult / brackets-todo

Brackets/Edge Code extension that displays all TODO comments in current document or project.
144 stars 37 forks source link

Brackets crash when search on project #55

Closed cyrakuse closed 10 years ago

cyrakuse commented 10 years ago

When i configure the extension to search in the whole project ("scope": "project"), Brackets crash after many second of freeze. I use Brackets 37

mikaeljorhult commented 10 years ago

I am unable to reproduce this error. Could you try the newly released 0.5.2?

cyrakuse commented 10 years ago

I've the same problem with the last update. It's like Brackets freeze during search and Windows detect that spend too much time and display "Brackets stop working" error. i'm on win 8 x64

mikaeljorhult commented 10 years ago

Is it a large project? Have you tried it with a smaller one?

cyrakuse commented 10 years ago

I is a relation with a Brackets issue (https://github.com/adobe/brackets/issues/6091) when we "search on files", it bug when we have binary files like PDF, PSD, MP4, AVI.... So i exclude these binary files in the .todo config file and it work properly. Maybe these files could be excluded by default.

mikaeljorhult commented 10 years ago

Thank you for looking into it. I'll have a go at it this week to see how to best avoid the binaries.

cyrakuse commented 10 years ago

i have an idea : in the new preference system, you can add a list of autorized types of files (because a list of excluded files is impossible to make)

Another idea : the options of the .todo file could be injected in the prefernce system. Then all users can customize their option for all projects. If we have specifics option for one project, we also can add a .todo file in it.

Then this should limit the problems

mikaeljorhult commented 10 years ago

I'm working on a settings dialog for the extension so that you can set your own defaults for all projects. My plan is that you will also be able to override these using the .todo to be able to have project specific settings.

cyrakuse commented 10 years ago

exactly my second idea. perfect :+1:

just need to resolve the binary files issue now ;)

zaggino commented 10 years ago

You should be able to easily check for binary files like this in your FileManager.js I think. https://github.com/zaggino/brackets-git/blob/master/src/Panel.js#L507-L508

mikaeljorhult commented 10 years ago

Thank you @zaggino. That seems to do the trick.

@cyrakuse Could you please try the current version in the repository to see if it solves your problems.

mikaeljorhult commented 10 years ago

A fix for this is included in version 0.5.3 (db8b1f66838f83d13d2470c53cb8b399a2dd6710).