Intellij: Setting Remote host Mappings: Local path is out of project

Solution 1:

I have just now done hit this problem myself, and came up with a solution. The problem is that in an empty project, if you open the project tree, you will see that there are no directories in your project.

If you open a "static web page" project, for example, you will notice that the directory is now a part of your project.

try doing the same thing, but in a "static web" project and the error will not occur any more

Solution 2:

Configure your Projectdeployments and save this. Pay attention to correct paths! Then open "Directories" in the "Settings". Mark the baseline of your project as "Resource root" (required) and the other folders (as example - adjust to the project) as Sources. Apply and the problem is solved.