Gert-dev / php-ide-serenata

Atom IDE package that integrates the Serenata server to provide PHP code assistance
https://serenata.gitlab.io/
Other
275 stars 22 forks source link

Indexing files are stored in /tmp instead of storage path #504

Closed albert200000 closed 4 years ago

albert200000 commented 4 years ago

This makes my projects to reindex often

Gert-dev commented 4 years ago

Hi.

Have you tried manually setting up your project via Set Up Current Project via the action in the command palette? Afterwards you can configure where the database should be saved in the indexDatabaseUri setting in .serenata/config.json, see also the wiki for more information.

Or did you perhaps already do this, but did you mean that the path is being ignored?

albert200000 commented 4 years ago

Set Up Current Project from command palette fixed the issue. Now the storagePath config is used. But before executing this command it used /tmp directory.

Gert-dev commented 4 years ago

Yes, that is expected behavior since 5.0 to allow for easier setup towards new users; this way you can just start working with the package without having to do any additional setup - it should then just work.

Of course, if you don't want /tmp to be used (i.e. because it is cleared by certain tools or, after reboot, or stored in memory), you will likely want to actually set it up yourself.

I'll close this since the original issue is solved, but thanks for taking the time to report issues!