[resolved] why I get this code completion error. |
Veteran
|
That means that the class JSite is not known to PhpED's code insight. You need to describe it - there is a similar post on this subject:
mysqli-in-oo-autocomplete-t2605.html?highlight=spl |
||||||||||||
|
Veteran
|
Ok I found a file where $mainframe = new JSite() but that was not in scope where I use the $mainframe variable.
So I deleted that file, and searched for any other file where JSite was used, and there is none. I have restarted PHPEd, to make it reload my workspace, but it still gives me the same error message when I try to lookup $mainframe-> And there is absolutely no code left where $mainframe is declared as an instance of JSite. Is there a function that can re-index the code completion on the worspace ? |
||||||||||||
|
Veteran
|
|
||||||||||||
|
Veteran
|
|
||||||||||||
|
Veteran
|
what is $mainframe instance of now?
|
||||||||||||
|
Veteran
|
|
||||||||||||
|
Site Admin
|
Restart the IDE won't help. You need to refresh Code Explorer.
Still the same it's Refresh in Code Explorer window. |
||||||||||||||||
_________________ The PHP IDE team |
Veteran
|
Sorry but I have done this many times, by right clicking on the workspace in the explorer view and select refresh, and it still claims that $mainframe is defined as an instance of JSite.
It is like there is something written in cache, that is not cleard by refreshing. |
||||||||||||
|
Site Admin
|
Please check that Code Explorer is not in "Single file" mode. In this case it re-parses only current file. Otherwise it refreshes all the project and all the libraries in the 'Code Insight Includes' list of directories.
|
||||||||||||
_________________ The PHP IDE team |
Veteran
|
That was the answer. When I changed it to Project view and refreshed the workspace, the lookup worked again.
But this is the tricky part. I really love the singel file mode, because I get a good overview of the current file I am editing. But how to I then make sure that the code completion will refresh automaticly? |
||||||||||||
|
Site Admin
|
It does refresh automatically in most cases.
It didn't refresh in your cases b'ze you deleted file and probably you didn't do it PhpED's workspace window, otherwise it would refresh too. |
||||||||||||
_________________ The PHP IDE team |
[resolved] why I get this code completion error. |
|
||
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