Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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!

like image 536
user2636208 Avatar asked May 17 '16 22:05

user2636208


People also ask

Can IntelliJ connect to remote host?

On the IntelliJ IDEA welcome screen, select Remote Development. In the Run the IDE Remotely section, click SSH Connection. If you have the IDE already running on the remote server and you have a connection link, you can use the Connect to Remote Host With a Link section.


3 Answers

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

like image 107
BelgishChoko Avatar answered Oct 20 '22 12:10

BelgishChoko


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.

like image 37
Alph Soldner-Raue Avatar answered Oct 20 '22 12:10

Alph Soldner-Raue


Check if the folder you want to exclude is not excluded from the project under Settings->Directories

like image 39
Nikolay Ivanov Avatar answered Oct 20 '22 11:10

Nikolay Ivanov