func-own.rel - duplicated in completion list |
|
Hi all,
i have a problem with this own completion list feature for functions. I would like to add full sqlsrv_* support to my completion list. I spent some time to figure out how can i do this and i found this solution (some more documentation about this helpful feature would not be bad, like syntax or so...) Anyway, i wrote my own func-sqlsrv.rel file and saved it into %appdata%/phped/config/func-sqlsrv.rel The file loaded correctly when i restart phped - the code completion works and my sqlsrv_* functions and constants now listed, BUT, every function is double listed, first as constant and secondly as the correct function. I tried to add the functions directly to the func.rel file but always the same "bug" occurs. Did i anything wrong? False syntax or so? Or is this a bug? Here is my file content from func-sqlsrv.rel and a screen of the completion list Screen: http://postimage.org/image/35uicx0qs
|
||||||||||||||
|
|
Thanks for the idea. I know that sort of workspace/project auto completion.
But especially in this case its better to add it directly to the php ed "core" without having extra php files only for auto completion. Cause this are PHP extension classes/functions/constants like sqlite and so (for example sqlite is in the func.rel) for which completion works perfectly. I filled my func-sqlsrv.rel now with all existing functions and constants. It works but the duplicate listing slow down my workflow. I only want to know if that is a bug or a problem in my xml structure. I write now a support ticket too to get a answer from dev's. I will write my further experience about that feature in the post. Greetz |
||||||||||||
|
Site Admin
|
<sqlsrv _n="sqlsrvfnc" d="SQLSRV Functions and Constants">
^^^^^^ Node names in this file are meaningfull. You can't pick arbitrary ones. I'd recommend you to create an empty project, add this "stub" file named sqlsrvfnc.php, then quit the IDE, find <project name>.ppx file, open it in an xml editor, find node with full file name listed in _n attribute, then grab the content of this node for your func-sqlsrv.rel file. |
||||||||||||
_________________ The PHP IDE team |
func-own.rel - duplicated in completion list |
|
||
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