[resolved] Code completion seems broken |
|
that'd be right - I should have checked if I was running the latest version of PhpEd *before* I posted.
I am downloading v7.0 b7021 which the changelog says fixes this problem. |
||||||||||||
|
|
Well, I have installed the latest and greatest v7.0 b 7021 version of PhpEd and there is still a problem with code completion and my wordpress install.
With just my theme file (sidebar.php) open, and the following code I get the following error:
The problem disappears when I open the wp-includes/wp-db.php file (the one that has the class) and explicitly specify the variable type
It appears that PhpEd also caches these results, as once it have figured out the type it remembers it. now this could just be a wordpress thing and phped has a hard time trying to figure out what is going on, but it would be nice if it all just worked out of the box |
||||||||||||||||||
|
Guru master
|
That's strange, because I'm on 7021 and just opened a WordPress site that I haven't opened in 7.x before, I closed all files, stuck this into a new unsaved file:
and code completion works, automatically listed the methods as I type including get_results(). I also did save/close, re-opened and did ctrl+space after the $wpdb-> and it listed all the methods. |
||||||||||||||
|
|
I concur with this one.
7019, the code above triggers autocompletion/code insight, with get_results() contained in, just right. Maybe you try to reindex the whole project? There is another topic on this same problem just few topics away in the forum. |
||||||||||||
|
Site Admin
|
Indeed 7019 had problems with refreshing Code Insight DB, as a result some (or even all) classes would not be found. It has been fixed in 7020.
But, no build would find your class if corresponding source file is not in your project tree. In other words, if you work with WordPress classes, you have to include WP directory as "Additional" project directory or make sure the sources are somewhere insight the project root directory tree. As soon as you add it either way, it will appear in Code Explorer tab, and Code Comletion dropdown will show it and its members too. |
||||||||||||
_________________ The PHP IDE team |
|
Is this only when upgrading from a previous version, or even after a totally clean install and indexing of projects? |
||||||||||||||
|
Site Admin
|
It is a problem of 7019. What's unclear?
|
||||||||||||
_________________ The PHP IDE team |
|
I have written what's unclear. Just read again. For my testing clean, fresh install, I have not been witnessing this classes not found problem you talk about, that's why I was curious if this manifests itself only when upgrading. Anyway, thanks for your support.
|
||||||||||||
|
Site Admin
|
I didn't say that 7019 was 100% broken otherwise we'd notice this before the release and would stopped it. I mean it didn't re-index in <b>some</b> cases. If it did re-index for you, it's just fine. But it didn't work for some other customers regrdless how they installed - after v6 or clean. We released 7021 to fix this problem.
|
||||||||||||
_________________ The PHP IDE team |
[resolved] Code completion seems broken |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by