Copy link to clipboard
Copied
I have a PHP file totalling around 7,000 lines of code. When I write { or }, ( or ), or a comma, at any point in the file, DW locks-up for a few seconds, then continues. This has been happening ever since I started using Dreamweaver CS4 - it never occurred with older versions.
Any ideas?
[Post moved to more appropriate forum -Forum Moderator]
Copy link to clipboard
Copied
I don't have PHP files that are as long as that, so have no way of testing. However, one possibility is that Syntax Error Alerts are turned on. Dreamweaver CS4 doesn't check for PHP syntax errors; the syntax checker is for JavaScript. However, having the option turned on might cause the problem, because PHP and JavaScript both use braces and parentheses. Try turning off real-time syntax checking. It's toggled on and off by clicking the button in the Coding toolbar, as shown in the following screenshot:

When turned on, the button looks pressed in like the two immediately above it in the screenshot.
If that doesn't improve the situation, I suggest that you file a report to the Dreamweaver engineering team through the bug report form at http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform. Give as much detail as possible to help the engineers try to reproduce the problem.
Copy link to clipboard
Copied
Just to re-clarify what characters are causing it to hang, this is actually only limited to ) and comma, not the others - my bad.
I haven't got syntax error alerts enabled. One thing I am noticing though is it doesn't hang at the start of the file, only as you go down the page. So for example if I were to add a function on line 3000, it'll hang for a second when using ) or comma. However do the same thing on line 4000 and it hangs for a bit longer... Line 5000 and a bit longer again, when you reach line 7000 and try doing the same, it hangs for 3 seconds or so, then continues.
I have tried duplicating the code to double the size of the file - now showing 14,238 lines of code... When using ) or comma it's now hanging for exactly 8 seconds! In addition the CPU is spiking to 100% and memory usage is also increasing. This is also happening on multiple machines.
I'll submit this as a bug to the Engineering Team. Thanks for your time.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now