Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Synchronization doesn't work properly for directories #35

Open
AlexeyZhulyov opened this issue Jul 8, 2016 · 6 comments
Open

Synchronization doesn't work properly for directories #35

AlexeyZhulyov opened this issue Jul 8, 2016 · 6 comments

Comments

@AlexeyZhulyov
Copy link

AlexeyZhulyov commented Jul 8, 2016

Hi,
I tried to sync some file to server where folder with this file is absent, and file with name of folder appeared on server in target path:

Server - Linux
Connection Type - SCP

@xayangjing
Copy link

I used SFTP to upload files from windows to redhat 6.5 but failed. I got this message from pycharm eventlog windows, Sync error: Remote dir \root\flask\John might not exist or you don't have permission on this path!

@apoloval
Copy link

I have the same issue:

Given:

  • Using SCP connection to the remote.
  • A new directory/foo/bar is created in the local source tree.
  • A new file /foo/bar/mysourcefile is added to that directory in the local source tree.

When:

  • The sync this file to the remote target action is executed.

Expected result:

  • The directory /foo/bar is created in the remote.
  • The regular file /foo/bar/mysourcefile is created in the remote.

Actual result:

  • The regular file /foo/bar is created in the remote.

@p00j4
Copy link

p00j4 commented Feb 21, 2017

I too face the same
trying sftp from pycharm and on "syncing file to remote" fails with "Remote dir ............. not exist or you don't have permission on this path!"

any pointers?

@fioan89
Copy link
Owner

fioan89 commented Feb 21, 2017

@p00j4 Can you try an scp connection and see if it fails the same? Also, is your project/module configuration file stored in a different location than that where your sources are?

@p00j4
Copy link

p00j4 commented Feb 22, 2017

with scp,

  1. using "remote sychronize > synchronize this" fails with:
symbols : (+):added, (/):replaced, (=):identical, (-):deleted, (?):class file not found, (^):source excluded
1 file ignored   (my file path)
  1. using "Sync this file to remote target", shows uploaded successfully, but I can find changes reflected on remote, no idea which path it is uploading , because have checked on all related paths as given under "Root path" while setting up scp

"is your project/module configuration file stored in a different location than that where your sources are?"
sorry, I didn't get it clear.
I'm having a python flask project containing all related files opened in pycharm, same structure is in remote too.

@fioan89
Copy link
Owner

fioan89 commented Feb 22, 2017

IntelliJ/PyCharm allows you to keep your project configuration files in a different place than your sources, or, and this is more common, keep the them in the same root location where your sources are. The first option is not supported by source sync.

sing "remote sychronize > synchronize this" fails with

I don't understand :) source has only three options: synchronize this file, synchronize changed files and synchronize selected files. Which one you used? Also, I don't recognize the trace you provided, are you sure it was logged by sourcesync?

For number 2: when you created your connection configuration you provided a Root path on the remote machine. Your files should be uploaded starting from that location, plus the subsequent packages.

Let me explain: say on your local project you have a myproject/package/subpackage/module_to_import.py, and your root path is configured to /home/p00j4/myproject. When you sync module_to_import_py, sourcesync will try to upload the file at /home/p00j4/myproject/package/subpackage/module_to_import.py

Because you've used the SCP protocol which does not create folders you will have to make sure /home/p00j4/myproject/package/subpackage/ already exist on the remote machine. SSH connections can create the structure for themselves so you won't have anything to do.

On the other hand you said in step 2 that PyCharm said the file was succesfully synchronized, so I guess the structure was already there, no?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants