| Summary: | Eclipse hangs when typing anything of the form $foo->bar | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Hugh Messenger <hugh.messenger> |
| Component: | PDT | Assignee: | PHP Core <php.core-inbox> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | critical | ||
| Priority: | P3 | CC: | hugh.messenger, privat, silviya, zhaozhongwei, zulus |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
I still could not reproduce this bug following your steps:( I can also reproduce it. On my box, this happens in larger projects, even with a very fast PC (mine got a Quad-Core i7 3.06GhZ and 12GB RAM). This is most probably due to lookups in some huge array which contains all found methods and their signatures. It also happens when commenting. The lag is virtually the same when pressing Ctrl+Space. Measured lags on my platform are from 0.5-10 seconds, I can also see a peak in the CPU usage. This is not limited to the PHP editor; the JavaScript Editor shows exactly the same problem when using lots of classes (which is usually the case nowadays, even in small projects). is this still relevant? Probably fixed indirectly. Please reopen if you not agree. Closing |
Build Identifier: I20100608-0911 When working on a simple PHP file, with no class structure, Eclipse hangs when typing anything of the form $foo->bar, after creating the $foo object using a method which is not specifically "known" to the file. If you are wondering why I would write code like the "Steps to Reproduce" shows, it's a simple admin definable plugin script which my main app (a Joomla! extension) includes at runtime, so assumes the existence of the Joomla! framework. PDT 2.2.0. Reproducible: Always Steps to Reproduce: 1. Create a new PHP file within an existing project. 2. Type (or try and type): $db =& JFactory::getDBO(); $db->setQuery("SELECT * FROM #__users"); Eclipse will hang within typing a few characters of 'setQuery' 3. Kill off Eclipse and restart it. Now try: class TestFoo { $db =& JFactory::getDBO(); $db->setQuery("SELECT * FROM #__users"); } ... and everything should be OK. 4. If Eclipse doesn't hang in step 2, maybe try some object creation method which exists in your test project?