webstorm is fetching even deleted files - phpstorm

I am using webstorm to load a project via sftp.
The remotely mapped directory had some files, which have been deleted via ssh from terminal.
These files still show up in the project, even If I try synchronizing the project dir with server, or download from server options.
The problem persists even if I create new projects, after delete existing ones.
ALso when I am creating a new project and trying to set project root at the dir in the server, when I go along the path to selecting that dir, all other dirs are not shown.
my remote path on server is ~/Desktop/jekyll_files
I have other directories on Desktop in the server, but these dont show up when I navigate to the jekyll_files dir

It was a problem unrelated to webstorm

Related

deleting files from local netbeans without removing it from server

I am working on remote server using netbeans.
I wish to remove files or directories from my local computer without deleting it from server.
As for now I didn't find a way to do so.
Does anyone have a solution for this?
Thanks!!
Just close Netbeans, then delete files or directories from computer and reopen Netbeans.
Files or directories were deleted only from locale project. At least it worked for me.
For my project > properties > Run configuration > Upload files: I have set to 'On Save'.

How to only download specific files from remote server instead of whole project?

I created a new project from remote sources and entered my servers data. PhpStorm instantly began to download the whole Magento project, even though I only need specific files for development, e.g. I don't need all the images or cache folders for my purpose. Now it takes 4-5 hours to download the whole project.
In NetBeans you can choose which folders you want to download to your machine, is this also possible in PhpStorm?
Yes it's possible.
You should have marked such unwanted folders as "Excluded from Download" --
See official help page for appropriate wizard step.
Other ways of creating a project:
Just create empty local project and then configure the rest manually (deployment etc); once done use "Browse Remote Host" and download folders/files you need.
Another way -- download all needed files locally first using you preferred program (e.g. FileZilla) and then just point to the project root folder in "Open" dialog -- IDE will create new project from those files.

How to create a wordpress database file with existing files in my site directory?

I have a live wordpress website, due to some problem my database table become empty. Now I have only files and folders of my website. So please guide me how to create a clone of my website in my wamp server localhost with existing file/folders in root directory without database file?
This plugin is an excellent tool to migrate from live to local and vice versa All in one wp migrator copies all files and database. But in your case not sure if it will help .
To copy the files locally all you need is filezilla and the ftp credentials which may be the same as cpanel credentials. Then copy all files to local folder for website of your wamp. Php myadmin on your live site dump the sql and import into your local wamp php .
Can you check if you have a back up via the cpanel under softaculous installer you may be able to restore a back up of the site.
If your database is empty and there is no backup then all the contents of your website (except for photos) are lost.
Your hosting company may have made automatic backups and you ought to contact them right away.
You can make a MAMP clone using your current files and images, but none of your old content will appear and your images will not appear in the Media Manager. The images will need to be re-imported.
To make a local MAMP site with your existing files, first create a new blank Wordpress installation using the following instructions:
https://codex.wordpress.org/Installing_WordPress_Locally_on_Your_Mac_With_MAMP
A new contentless Wordpress database will be created in this process.
Then remove all the Wordpress files except wp-config.php and copy all your old live site's files into the folder. When you reload Wordpress it will be running off the live site's code and plugins.

PhpStorm configure to work remotely

Hi is there a way for PhpStorm to work directly on a remote server? No local files. Because as of the moment PhpStorm has local files wherein it just automatically uploads all files during save on remote.
My problem is if someone changes something remotely I need to manually download it first before seeing the changes.
It's not possible to fully operate on a remote server. Phpstorm need a local project, which contain the .idea folder. You can edit remote files without downloading them to the project folder. But in this case the entire list of features is not available.
For you can be useful the following settings:
tools->Deployment->Options:
warn when uploading over newer file
Notify about remote changes

Open folder vs create new project from existing files, located under shared network drive in PhpStorm

It's not clear to my why I should use the option in PhpStorm to create a new project from existing files instead of just opening a folder and declaring the project directory.
I have a web server installed and I can access it's root by a shared network drive. Now I can just open the a folder in PhpStorm and declare it's root. It will generate a PhpStorm project at the given directory.
But there is also an option to open a new project from existing files (located under shared network drive). My best guess is that this option is the way to go. Is this true and if so, why? Or if it doesn't matter, why doesn't it?
There will be several people using the same shared drive to work in different projects in the webroot.
You can, of course, create a project on mounted network drive via File/Open, but note that this is not officially supported. All IDE functionality is based on the index of the project files which PHPStorm builds when the project is loaded and updates on the fly as you edit your code. To provide efficient coding assistance, PHPStorm needs to re-index code fast, which requires fast access to project files and caches storage. The latter can be ensured only for local files, that is, files that are stored on you hard disk and are accessible through the file system. Sure, mounts are typically in the fast network, but one day some hiccup happen and a user sends a stacktrace and all we see in it is blocking I/O call.
So, the suggested approach is downloading files to your local drive and use deployment configuiration to synchronize local files with remote. See https://confluence.jetbrains.com/display/PhpStorm/Sync+changes+and+automatic+upload+to+a+deployment+server+in+PhpStorm