phpfmt_stable icon indicating copy to clipboard operation
phpfmt_stable copied to clipboard

Build autocomplete database

Open loranger opened this issue 9 years ago • 3 comments

I try to make the message autocomplete database not found disappear from my project.

I searched a little and found that I have to build this autocomplete database from the command palette, so I ran it and selected phpfmt: build autocomplete database

Then a message opens up, asking me to “fill in below” a path.

Autocomplete and autoimport need building a database of terms.
Please, fill in below with the proper location for this database.
Keep in mind that the best location is always the root of the project, therefore limiting the size and ensuring speed.

But below what ? I'm not even able to edit this message which seems to be read-only.

What am I supposed to do ? What is the requested database format (text, sqlite...) ? Am I supposed to create the database file before adding the database path ? Where can I add this database path ?

loranger avatar Oct 31 '16 10:10 loranger

@nanch Can we have insights regarding this issue, please ?

loranger avatar Apr 19 '17 10:04 loranger

@loranger SQLite3 must be enabled in your PHP configuration. The generated file will be named '.php.tools.cache'

MKCG avatar Dec 06 '17 16:12 MKCG

@MKCG Thank you so much for your support.

SQLite 3 is enabled

$ php -m | grep sqlite
pdo_sqlite
sqlite3

But I can't find any .php.tools.cache anywhere. Am I supposed to build it ?

loranger avatar Dec 06 '17 16:12 loranger