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

user2636208 picture user2636208 · May 18, 2016 · Viewed 7.2k times · Source

I am using Intellij IDea ultimate 15.

I want to compile/test/deploy on a remote host. So this is what I did: 1. File -> New -> Project -> Empty Project -> Specify project name/location

  1. Preferences -> Deployment -> add host(Test SFTP connection successfully)
  2. Modify mappings: set the Local path to the same as project location

Then it complains:

Local Path '[my local path]' is out of project

The path is the project location that I set to, it exists, and I have the right permission. So don't know why it complains.

Thanks for your time!

Answer

BelgishChoko picture BelgishChoko · Jun 5, 2016

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