Question

Configuring

I'm creating .codeintel/config in project folder

{
    "PHP": {
        "php": 'D:\xampp\php',
        "phpExtraPaths": ["D:\xampp\phalcon-devtools-master\ide\1.2.6\Phalcon"],
        "phpConfigFile": 'php.ini'
    }
}

There is no autocomplete, how do I get this working?

Was it helpful?

Solution

Try setting your project_root/.codeintel/config file to exactly these contents (erase what you had before):

{
    "PHP": {
        "php": "D:\\xampp\\php.exe",
        "phpExtraPaths": ["D:\\xampp\\phalcon-devtools-master\\ide\\1.2.6\\Phalcon"],
        "phpConfigFile": "php.ini",
        "codeintel_scan_files_in_project": true,
        "codeintel_max_recursive_dir_depth": 25        
    }
}

Your old file had a couple of issues. First, Windows file paths should either use forward slashes / or double back-slashes \\ as delimiters. Second, the file needs to be valid JSON, so you need to use double quotes everywhere. Third, I added .exe to the "php" key's value - please ensure that this is the correct location of php.exe. Finally, I added the last two settings to ensure that your project is being indexed, and that the indexing runs deep enough. If you have other paths that contain library files, make sure you add them to "phpExtraPaths" as well.

Also, please remember that SublimeCodeIntel takes some time to index everything, so autocomplete may not work right away. If things still aren't working after coding for a while and restarting once or twice, you may wish to try the suggestions in the Troubleshooting section of the README, especially the one regarding deleting the database to force a fresh reindexing.

Good luck!

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top