-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
typing is choppy/slow, except in comments or small files #13472
Comments
Comment by abose can you do some typing operations, project switches and general susage for some time in brackets and then comment |
Comment by caleb87 was still open from yesterday { |
Comment by ozzyjr Hello I'm with the same problem. Even with all extensions disabled, the editor is too slow to position the cursor, enter the codes and navigating through it. { |
Comment by FLasH3r {
"uuid": "a727db62-798c-4b2e-aa25-63686fb36f6f",
"snapshotTime": 1452241359546,
"os": "win",
"userAgent": "Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Brackets/1.5.0.0 Chrome/39.0.2171.36 Safari/537.36",
"osLanguage": "en-US",
"bracketsLanguage": "en-US",
"bracketsVersion": "1.5.0-16538",
"fileStats": {
"openedFileExt": {
"php": 4,
"json": 5
},
"workingSetFileExt": {
"php": 1
}
},
"ProjectDetails": {
"prj3059181": {
"numFiles": 478,
"cacheSize": 6255919
}
},
"projectLoadTimes": ":180",
"fileOpenTimes": ":676",
"ModuleDepsResolved": 59899,
"AppStartupTime": 61131,
"prefNodeSearchDisabled": false,
"prefInstantSearchDisabled": false,
"installedExtensions": [],
"bracketsTheme": "dark-theme"
} |
Comment by azinod I do have the same problem. Will edit this later with Health data. Also, there is this other ticket with apparently the same issue. You may want to make it a single thing:
What I did was close Brackets and run it as an Administrator in Windows 10. Try it in your systems. Now I am using the admin profile in my notebook so that option is always visible... if you are not using the built in admin profile, I think you have to 'shift+rightclick' or 'ctrl+rightclick' the icon to get the 'Open as Administrator'. In windows 10, if you go to: right click on brackets > properties > compatibility, you have the option to permanently open it as Administrator (at least I see it, but again I am using the built in Admin account). Keep in mind that you may need to provide Admin credentials, if you are not an admin yourself or are not using the built in Admin profile. I hope this also solve the problem for you.
|
Comment by caleb87 azinod, thanks for the suggestion, but running as Administrator did not solve the issue for me. I'm running Windows 7 Ultimate. I will open the same files on my Ubuntu laptop and see if I can replicate the problem. Has anyone experienced this on Linux? |
Comment by ozzyjr Hello Let's see if the solution remains stable over the course of the day.
|
Comment by FLasH3r I must admit it did give a bit of a boost, I'm going to test it tomorrow a bit more on larger files (3k+ JS files). FYI. the slowness happens on my laptop only. my desktop machine works without this "hack" |
Comment by azinod It also only happened on my Windows 10 personal Notebook, which is a Lenovo T450. The notebook at my work is a previous version (a T430) with Windows 7 that is much less capable than my personal notebook and does not have the problem. I do think the problem should be related to some kind of permission that Brackets is not getting into the system, and that is making it performs very heavily. Running it in Admin mode is granting that permission, but for those that are still facing the problem maybe there is more to it. Maybe reinstalling Brackets and making sure you are clicking on 'Allow' on all those 'Brackets is trying to do stuff to your system, will you allow it?' questions? Or even going to your User Account Control Settings and set it to Never notify, and then reinstall Brackets... and ultimatelly try the Run as Admin trick again. Hopefully this problems get some attention and they find the issue and eventually a fix for it so we don't need to run Brackets as Admin... thankfully not the whole community is being impacted by it though. |
Comment by caleb87 I want to note again that the problem only happens in large files. I can even type fast in comments in those large files. The problem doesn't occur in small files. Since comments have no code parsing, it's easy to see the problem is related to code parsing. I have an index.html web app that is heavy in JS. Files that are under 1000 lines are fast. It seems that there may be two problems causing choppy typing.
Has anyone not experienced this issue with 5000+ lines of code? 10k+? Those who solved their issue with permissions have any issues with files with 5k+ lines? |
Comment by azinod I loaded some heavy files to test and mine worked fine, as soon as the document was loaded. Using the admin permission of course. |
Comment by swmitra I had analysed this issue sometime back. The actual problem is not related to permission rather extraction of js code from an html file slows it down. We use linear token parsing on the html doc to preserve location info of each and every js statement in script blocks. Parsing time is directly proportional to the number of lines in the html file. As this linear parsing happens in the main thread itself , typing performance is affected. In a large html file you might find slugging cursor movement, key buffering while typing in a script block only. One of the convenient way to fix this issue is to have the parsing out of the main thread. It can be in the web worker where we do tern analysis or in node ( a separate PR exists to move tern analysis on node ) . |
Comment by ozzyjr Hello everyone
So I think it's a bug same as in previous versions did not have this problem and theazinod tip of all is ok now. |
Comment by FLasH3r
|
Comment by zbandhan same issue here in linuxmint. |
Comment by proto-typical There is definitely a lag problem, and I have pinpointed that it's directly related to the size of the file you are editing and codehint.JSHints flag set to true. If I start a new file or open one with just 10 lines, there is no lag whatsoever. But working with a file of 2500 lines, it's a horrific lag. Obviously a workaround is breaking my project down into smaller files, however I think many users would choose to just use a editor that doesn't lag on a 102k text based file. Let me know if you need more information, I am experiencing this on a Macbook Pro with OSX 10.11.4 (El Capitan) 16GB i5 SSD and version 1.6 of Brackets, no extensions running. I also posted this on bug #9486 and #9980 because this is imo the same issue. |
Comment by zbandhan Big |
Comment by pozitronix same issue with a large complex HTML/JS/CSS file. Really slow |
Comment by cdpritcha Still seeing the same issue here. I can't believe this is still an ongoing problem. 2 years later... I'd love to dump Brackets, but it has a few features that I love. But the lag is killing me! |
Issue by caleb87
Wednesday Dec 16, 2015 at 21:27 GMT
Originally opened as adobe/brackets#12011
I have code hints off, no line highlighting (i dont even see this feature, but the line doesn't highlight)
When typing in my index.html file, the typing is really slow; it takes about almost a full second for a letter to show up. If I type in a commented area it's instant.
It's apparent that some kind of parsing is slowing it down.
My computer is Windows 7 Ultimate with 6 core 3.2GHz 3930k, 32GB RAM. Lots of resources left. I also tried running it as Administrator which didn't help, but did finally allow me to install extensions with the Extension Manager.
Edit: The only extensions installed were Beautify extensions. I removed them and restarted app which also didn't fix it.
The text was updated successfully, but these errors were encountered: