Can someone, in a step by step manner, please explain how to get code completion for Phalcon in Sublime Text without assuming anything?
|
Nov '19 |
7 |
5986 |
0 |
I am not familiar to Sublime Text, I am using aptana studio.
Maybe it can help you if I explain how I fixed the problem.
I downloaded the whole phalcon dev-tools ide library 1.3.1 to my disk. In Aptana studio I can go to preferences -> libraries and add an php library to locate the phalcon dev-tools ide library 1.3.1/phalcon
First, you'll need to install the SublimeText Package manager plugin. Do a Google search for instructions on how to do that.
Then, you'll need to install the SublimeCodeIntel Package that @Sum mentioned. Again, Google for instructions on that.
You'll also need to install the dev-tools IDE like @noonecaresreally mentioned. I have no experience doing that, so I can't help.
Finally, in SublimeText, go to Preferences > Package Settings > SublimeCodeIntel > Settings - User, and add the line that @Sum showed.
This was asked again about in some other posts recently, I think this thread is the best place to give the instructions.
vendor/phalcon/devtools/ide/1.3.1/Phalcon
Edit: it DOES seem you can also add the path to your user config. Sorry, my molestake. Just make sure you add the whole "codeintel_config"
setting, that includes the "PHP"
config.
Note that everything you add to your user settings, overwrites the corresponding default setting. (It does not complement it.)
And you might have to wait a bit till you see stuff starting to work. The plugin might be busy indexing. It also might help, if nothing seems to be happening, to close/reopen your files and/or resart SublimeText.
my directory for developer tools "PHP": { "phpExtraPaths": ["C:\phalcon-tools\ide\1.3.2\Phalcon"], "codeintel_scan_files_in_project": false, "codeintel_max_recursive_dir_depth": 5 }
I Hope this helps someone!!
I made a completions library for Sublime Text. You can get here on github or search package control for phalcon
and it should come up.