Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Quickly switching between js files causes freezing. #11046

Open
PabloK opened this issue May 4, 2015 · 11 comments
Open

Quickly switching between js files causes freezing. #11046

PabloK opened this issue May 4, 2015 · 11 comments

Comments

@PabloK
Copy link

PabloK commented May 4, 2015

Hi I'm using brackets on a high-end machine but a simple task such as switching quickly between js files in the GUI causes it to freeze. This seems to occur even for small js files. Eventually the GUI catches up but some times I have to wait for several minutes.

@PabloK
Copy link
Author

PabloK commented May 4, 2015

I'm using brackets 1.3 on windows 8.1

@prafulVaishnav
Copy link
Contributor

@PabloK Hii.. Are you facing this problem only with js files? Do these js files contain long lines (eg. minified js)? What is the size of the project opened (1> Right Click on folder opened in Brackets, go to Properties, what is shown in 'Contains :' 2> Or please run following command on Brackets Developer Tool console : require("project/ProjectManager").getAllFiles().done( function (fileLists) { console.log(fileLists.length); }); and check the number.

@PabloK
Copy link
Author

PabloK commented May 4, 2015

Some files contain minified javascript but quickly pressing the files generated the same problem for short 100-200 row javascript files as well. I will aquire the information and return as soon as I can.

@PabloK
Copy link
Author

PabloK commented May 4, 2015

54 files in the project. I have a minified copy of require js in the project and switching from that file to another js file causes the problem immediately.

@d-akara
Copy link
Contributor

d-akara commented May 11, 2015

I'm seeing this as well. Freezing up to 30 seconds. But not just js files. HTML as well. I hadn't seen this prior to 1.3. Happens on both my Mac and Windows 8.1 machine. It doesn't always consistently happen. Haven't been able to identify exactly what types of files are causing this issue.
My cpu will be 100% during the file switching, and on windows I think the task that was taking 100% was something called brackets helper.

@PabloK
Copy link
Author

PabloK commented May 11, 2015

I have win 8 aswell. My problems are exactly the same. 100% Cpu load and about 30s of freezing. Json files have the same problem as js and html. Do you have javascript in your html templates? Thinking it might be somthing with the highlightibg engine.

@d-akara
Copy link
Contributor

d-akara commented Jun 3, 2015

I was able to resolve my issue by removing the Ternific extension.

@marcelgerber
Copy link
Contributor

@PabloK does removing the Ternific extension resolve your issue, too?

cc @MiguelCastillo

@PabloK
Copy link
Author

PabloK commented Jun 4, 2015

Is that an extension that comes with brackets? I only installed the theme extension. I have actually uninstalled brackets after this bug. because I could not open it without having it crash.

@marcelgerber
Copy link
Contributor

Sorry to hear that!

No, it's not an extension that comes bundled with Brackets, so apparently it's not what caused the issue for you.

@MiguelCastillo
Copy link
Contributor

@dalekprime sorry for the inconvenience. Someone else had reported this issue with ternific and I have not had the chance to profile the code to find the issue. I will hopefully have some time this weekend.

To be perfectly clear though, ternific is only for JS. So if you are having performance issues with other file types, then I am not sure it would be ternific.

MiguelCastillo/Brackets-Ternific#41

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

7 participants
@PabloK @MiguelCastillo @nethip @marcelgerber @prafulVaishnav @d-akara and others