Bug 541589 - Dirs marked as "derived" are removed during synchronization
Summary: Dirs marked as "derived" are removed during synchronization
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: remote (show other bugs)
Version: Next   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-11-27 05:30 EST by Benjamin Caputo CLA
Modified: 2022-03-09 14:35 EST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Benjamin Caputo CLA 2018-11-27 05:30:03 EST
In Photon 4.8.0 when I create a synchronized remote project that has a vendor folder, after a synchronization the vendor folder on the server is deleted. This don't happens with oxygen.3.

This happens with a yii2 project created on the server with:

composer create-project --prefer-dist yiisoft/yii2-app-basic basic

When I create in Photon a Synchronized PHP Project ..... after some work in local, and a synchronization .... Eclipse completely remove the vendor folder on the server.
Comment 1 John Eblen CLA 2018-11-30 11:12:59 EST
Could you explain what you mean by "derived" directory and how it was marked as such?

By default, sync projects mirror any local changes to remote. Thus, if the directory is removed locally, sync'ing will remove it remotely. You can add the directory to the filter when the project is created to keep it from being sync'ed.
Comment 2 Benjamin Caputo CLA 2018-12-04 05:00:40 EST
My original title was:
When synchronizing a remore yii2 project the composer folder vendor are completely deleted on server. 
Someone changed it ... with the "derived" ....

I know that when I delete local directory they are removed on remote after sync, but this is not the case.

The problem happens only for the directory "vendor" and all the subdir that are managed by composer.

The first sync I do correctly copy on local the entire /vendor directory .... but after I sync again from local to remote on remote the /vendor directory are completely removed.
Comment 3 Benjamin Caputo CLA 2018-12-04 05:01:34 EST
How I wrote before ... this happens only in photon .... in oxygen all works as expected.
Comment 4 Dawid Pakula CLA 2018-12-04 05:04:02 EST
(In reply to John Eblen from comment #1)
> Could you explain what you mean by "derived" directory and how it was marked
> as such?
> 
> By default, sync projects mirror any local changes to remote. Thus, if the
> directory is removed locally, sync'ing will remove it remotely. You can add
> the directory to the filter when the project is created to keep it from
> being sync'ed.

PDT automark dirs called "vendor" as derived, if this happen during synchronization from remote, PTP remove dir from localhost and remote.
Comment 5 Jonah Graham CLA 2022-03-09 14:35:05 EST
The org.eclipse.remote component of the Eclipse Ecosystem has a new home. It is now part of the Eclipse CDT project[1].

This change means a new Git repo[2], P2 site[3] and Bugzilla component. The org.eclipse.remote will continue to be delivered as part of the quarterly Simultaneous Release of Eclipse as well.

If this bug is no longer relevant, please feel free to comment or close the bug. If you can confirm if this issues still occurs in the latest release please do let me know in a comment.

[1] https://wiki.eclipse.org/CDT/User/NewIn106
[2] https://git.eclipse.org/c/cdt/org.eclipse.cdt.git (in the remote
directory)
[3] first CDT release will be 10.6 - P2 site will be
https://download.eclipse.org/tools/cdt/releases/10.6/

(This comment was added to all relevant org.eclipse.remote bugs along with changing the Product/component pair to CDT/remote.)