Changes in project unwantingly deployed also to other project

Hi,

I have project A and B and Folder C. Folder C contains classes I use in A and B and therefore C is included in Project A and B.

Problem is that when I upload files in C in Project B, they are also uploaded in Project A. A und B are deployed to completely different servers, and the server config A only shows in Project A, same to B.

C is also shared in other projects, but in these other projects this does not happen.

I checked in the .idea folders, but I can't find where the connection comes from.

0

Could you please tell a little bit more about your setup?

How exactly C is included both in A and B, with any symlinks or something?

Do I understand it correctly that you have both projects opened at the same time (a new window or attached?) and when upload is triggered in B, files are uploaded automatically in A?

 

Thanks!

0
Avatar
Permanently deleted user

Hi,

I include C in both projects by clicking 'Open' and then choose 'Attach'.

 

"Do I understand it correctly that you have both projects opened at the same time (a new window or attached?) and when upload is triggered in B, files are uploaded automatically in A?"

Correct. 

 

0

Correct

Please clarify whether you have one A + C window and one B + C window or one A + B + C window? I suppose it's the first option, but just to make it sure.

I include C in both projects by clicking 'Open' and then choose 'Attach'.

Unless I am missing something, this does not explain how C files are being uploaded by A and B deployment configurations. If you just attach C to another project, you'll see it in the Project tool window, but deployment configurations won't have any effect on it unless C is somehow put inside the project.

Maybe you can record a brief screencast displaying your issue?

0
Avatar
Permanently deleted user

Thanks for answering. Before I do the screencast: I include C in the mappings of the FTP settings.

0

Oh, OK, thank you.

Sorry for being insistent, but could you please answer the first question too?

Please clarify whether you have one A + C window and one B + C window or one A + B + C window? I suppose it's the first option, but just to make it sure.

0
Avatar
Permanently deleted user

Sorry, missed that. A+C and B+C

0

How exactly are you uploading C project? Literally: right click this, select that, etc... Or have you an auto-deployment enabled?

Please also attach a screenshot of your FTP mappings for B+C project.

0
Avatar
Permanently deleted user

Hi,

thanks for helping:

Auto Deployment.

I made a video, hope that helps.

https://1drv.ms/v/s!An8DmI2d7yYBlcAQURdbaKbQVJb3dA?e=thY2Ap

0

Thank you for your descriptive video! I tried to replicate your setup, but the bug just isn't there for me: https://recordit.co/86c1QzF5Vc

A couple of questions:

  1. It sure doesn't, but still - it doesn't happen when the second project is not opened, is it?
  2. Have you tried to re-create both deployment configuration separately, not inheriting one from another?

It makes sense to backup both .idea folders (just to keep it for the history) and try item 2 if you haven't tried it yet.

0
Avatar
Permanently deleted user

Only now managed to try. I deleted .idea in one project and created the Deployment a new. Still the same problem ...

0
Avatar
Permanently deleted user

When I switch off Automatic Upload in both(!) projects, I seem to be fine.

0

请先登录再写评论。