Code completion and duplicated classes |
Guru master
|
The problem is clear but the solution isn't. I've ran into a similar problem myself but unfortunately there is no method to fix this at this point afaik. The thread here is the discussion about it.
|
||||||||||||
|
|
Aloha, I have a code completion problem, too. It is not the same as mentioned above (I think), but since the topic fits perfectly, I will add my post here.
In short, Code Completion sometimes works, sometimes not. Let me describe the problem in detail: I use a central configuration file which loads some required classes and instantiates them. This simply looks like that:
In this configuration file I also instantiate a dummy class, which is defined within the file. This looks like that:
Now, what happens with this instances? While $t offers code completion throughout the project, $player doesn't. Code completion for $player is only available in the config file. I'm pretty sure this has to do something with the configuration on my side, but I can't find a solution for this. If I try to jump to the definition of a method of $player, phped says: "unable to find class of "$player" member, (declared as int)" Any ideas on how to fix this? TIA Marcus |
||||||||||||||||
_________________ |
Guru master
|
If it says "declared as int" that probably means you declared an int somewhere else that hides the global $player variable imho.
|
||||||||||||
|
|
Since the project is a fork from another project here this most likely could be the problem. Will be funny to find that declaration somewhere in over 500 files... Thank god phped offers a code explorer Thank you again, this was the relevant information, sometimes you don't see the wood for the trees...
|
||||||||||||
_________________ |
Site Admin
|
Order of includes makes no sense for code completion. If two files are included, it does not matter in which order they are included. The resulting set of functions and classes will be the same. (although the output may vary depending on the code executed). Conditional statements around include() calls can't be evaluated anyway, so the IDE does not know that some of the includes are bypassed.
Having duplicated classes is not helpful for codecompletion. I'd recommend you to hide core/finalClasses directory in the project and refresh Code Explorer. |
||||||||||||||||
_________________ The PHP IDE team |
|
Its excellent idea! 10x |
||||||||||||||
|
Code completion and duplicated classes |
|
||
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