Bug 263436 - [ssh] RSE Import fail to PDT's php project
Summary: [ssh] RSE Import fail to PDT's php project
Status: NEW
Alias: None
Product: Target Management
Classification: Tools
Component: RSE (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows All
: P3 normal with 3 votes (vote)
Target Milestone: ---   Edit
Assignee: dsdp.tm.rse-inbox CLA
QA Contact: Martin Oberhuber CLA
URL:
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2009-02-03 05:13 EST by snakewa CLA
Modified: 2014-05-01 16:17 EDT (History)
11 users (show)

See Also:


Attachments
screenshot RSE Import window (43.29 KB, image/png)
2009-06-30 08:35 EDT, Jens Ansorg CLA
no flags Details
RSE import htdocs not working (96.66 KB, image/png)
2009-11-18 08:56 EST, Missing name CLA
no flags Details
import RSE subfolder DOES work (87.05 KB, image/png)
2009-11-18 09:01 EST, Missing name CLA
no flags Details
Unable to import; says source is not selected but it is (65.01 KB, image/jpeg)
2010-09-30 20:11 EDT, David Hollingshead CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description snakewa CLA 2009-02-03 05:13:35 EST
The problem concerns importing files, using Remote System Explorer, from a remote location (eg hpux build server) to a current project in the Eclipse workspace.  The version of Eclipse where the defect occurs is 3.4.0/Ganymede and the latest version of the TM/RSE plugin.

The case is when I am trying to import a remote file system. I could not import any files from remote site via SSH. The finish button never shown up. The error indicates always shows "Enter or select a source folder". I make sure I have fill anything. But the same setting and source location and I try to import remote file system from a local drive, the finish button is shown.
Comment 1 Jens Ansorg CLA 2009-06-30 08:35:59 EDT
Created attachment 140495 [details]
screenshot RSE Import window

this screenshot shows the state of the RSE import window - as far as I can bring it. The "select ..." buttons are disabled as well, indicating that the file selection above - although clearly checked as to be included - is not providing any files? 

I think this is not related to PDT; the "test" I have selected as target is a plain empty project.
Comment 2 Jens Ansorg CLA 2009-06-30 08:40:09 EDT
forgot to mention: this is with a fresh Galileo, "Eclipse IDE for PHP Developers" + RSE added

Eclipse BuildID 20090619-0625
Comment 3 David McKnight CLA 2009-06-30 11:59:11 EDT
I just tried this out with my 3.1 dev environment and it seems fine.  Which client platform are you on?  What happens if you retype the target folder name?
Comment 4 Jens Ansorg CLA 2009-06-30 14:55:16 EDT
this was on my work computer, Eclipse running on WinXP and running in Linux in a virtual box. 

Meanwhile ... i'm home and try again (WinXP) and now I get it to work ?! I think I followed the same steps as earlier and do not know what I did differently this time

I will try once more on the other two setups by tomorrow.
Comment 5 Missing name CLA 2009-11-18 08:29:42 EST
(In reply to comment #3)
> I just tried this out with my 3.1 dev environment and it seems fine.  Which
> client platform are you on?  What happens if you retype the target folder name?

I have exactly the same problem (import or export, PHP Explorer or Project Explorer, local or remote).
(Platform 3.5.1.R35 / WTP 3.1.1 / RSE 3.1.1).
I can't retype the folder sync however.  It's a drop down without typing option (after "From directory:").
Comment 6 Missing name CLA 2009-11-18 08:56:52 EST
Created attachment 152467 [details]
RSE import htdocs not working
Comment 7 Missing name CLA 2009-11-18 09:01:37 EST
Created attachment 152470 [details]
import RSE subfolder DOES work
Comment 8 Missing name CLA 2009-11-18 09:03:14 EST
I've discovered something very weird.  If I select a folder below the folder I originally selected (when I had this error above), then the "Enter or select a source folder" disappears (Finish button is available)!
The original folder was htdocs, the subfolder htdocs/CC.
I've made 2 images with each 3 screenshots pasted together to illustrate.

Huh??
Comment 9 David McKnight CLA 2009-11-18 15:33:20 EST
(In reply to comment #8)
> I've discovered something very weird.  If I select a folder below the folder I
> originally selected (when I had this error above), then the "Enter or select a
> source folder" disappears (Finish button is available)!
> The original folder was htdocs, the subfolder htdocs/CC.
> I've made 2 images with each 3 screenshots pasted together to illustrate.
> 
> Huh??

I'm wondering if you wait a little while after selecting the source and the target whether the Finish button eventually becomes enabled.  There's a query that happens before the Finish button becomes enabled - I wonder if it has to do with that.  Could you see what happens if you wait a bit longer?
Comment 10 Missing name CLA 2009-11-18 17:08:16 EST
(In reply to comment #9)
> (In reply to comment #8)
> > I've discovered something very weird.  If I select a folder below the folder I
> > originally selected (when I had this error above), then the "Enter or select a
> > source folder" disappears (Finish button is available)!
> > The original folder was htdocs, the subfolder htdocs/CC.
> > I've made 2 images with each 3 screenshots pasted together to illustrate.
> > 
> > Huh??
> 
> I'm wondering if you wait a little while after selecting the source and the
> target whether the Finish button eventually becomes enabled.  There's a query
> that happens before the Finish button becomes enabled - I wonder if it has to
> do with that.  Could you see what happens if you wait a bit longer?

Hmm, I tried several things and after something else than what you suggested, it works!  
First I'll tell all the other things I tried, so you can make out what is or what is not the problem.

So, starting with my non-working case described previously, I..

1. right-click on htdocs (Remote Systems View), then "Import to project"
  (which gives a preselected "From directory" (source) in the Import dialog)
2. Selecting "Into folder" (target), wait 10 sec., no change.
3. Hitting the drop-down on the "From directory", selecting something else, waiting 5 sec., no change
4. Reselect the right remote directory in that drop-down, waiting 5 sec. , no change
5. Select the checkmark nextto "htdocs" (since it was unchecked), waiting 20 sec., no change.
6. Click mouse on "Into folder" (cursor appears), waiting 5 seconds, no change
7. Press TAB, waiting 5 seconds. no change.
8. Several other combinations unsuccessful. 
  (Such as going with TAB through all form elements, selecting this and that, etc...) 

NOW, what I did was starting from this (which is still the same as attachment htdocs):
1. I tried to set everything as in the other screenshot (attachment subfolder) except for the parent folder that stays visible (htdocs), though unchecked, still no luck, still the same problem.
2. BUT THEN I changed the "Into folder" into an unexisting one ("EVA ww3/CC" into "EVA_ww3/CC")and the same for "Description file" ("/EVA ww3/test.rimpfd" into "/EVA_ww3/test.rimpfd".  
  (I don't know which one I did first and which next..)
  Now a red error appears where the never-disappearing "Enter or select a source folder" stood. (The error was right, since I changed into folders which didn't exist). 
3. And THEN, when changing those two folders back as they were (don't remember order again), VOILA, no more messages there and the Finish button appears! Hooray!

Seems something is not updating all right..except when an error was there before or something.. 

---------------------------------------

But what happens further now:
Mouse changes into an hourglass for about two minutes.  Then the Import dialog finally disappears.
Then I am checking out the Synchronize View and then a "Synchronzing RSE Synchronize" appears, but also again mouse in an hourglass.  After clicking on details, I see that i'ts half way (of 6387 items). After at least 25 minutes it's done.
 
I didn't expected such a long time, since I selected "Review/Synchronize" in the Import dialog.  My understanding is that this allows you to up-, download and compare manually and thus nothing needs to download.  I didn't ask anything after switching to this View.
It seems that my local files are not overwritten, but what díd happen, is that all the folders that didn't exist locally but did exist remotely, were created locally (without files).  It's not what I wanted, but I can live with that. (Wíth files would be a PITA though.)  Still complications afterwards, but I'll stop here.. :-)

Is this normal or should I make another bug for this?
Comment 11 Missing name CLA 2009-11-18 17:21:09 EST
This might be important, but in the last point 3. above, I changed "Into Folder" back to the original folder (not the CC one!).  So:" EVA ww3". Which is what I wanted.
Comment 12 Artyom Loenko CLA 2010-02-19 04:06:23 EST
same problem. Eclipse Galileo Version: 3.5.1 Build id: M20090917-0800 Cocoa 64bit.
one year old bug...
Comment 13 Martin Oberhuber CLA 2010-02-19 09:39:38 EST
(In reply to comment #12)
> one year old bug...

Contributions are welcome, unfortunately committer's time is not unlimited...
Comment 14 sil2 CLA 2010-05-19 12:27:04 EDT
I have the same error. 
and more: sometimes during a new plug-in installation process license agreement page Finish button disabled too. I think this is a similar issue.
Comment 15 dc CLA 2010-06-06 21:24:31 EDT
This bothered the hell out of me.  My best guess is you have to wait 10-15 minutes or some amount of time before it acknowledges the local directory.  Probably scanning the FTP or some crap... sloppy coding.

I fiddled with the paths/buttons/checkboxes in the dialog for a long time before it randomly removed the error and I was able to import.
Comment 16 David Hollingshead CLA 2010-09-30 20:10:01 EDT
Happening to me on PHP project from FTP import.

Brand new installation of Eclipse Helios for PHP (Build id: 20100617-1415). See screenshots.
Comment 17 David Hollingshead CLA 2010-09-30 20:11:32 EDT
Created attachment 180005 [details]
Unable to import; says source is not selected but it is
Comment 18 sukorn CLA 2011-02-14 13:37:23 EST
I've observed the console tab until the FTP activities is done. Then make some change by clicking the remote list, and found that the Finish button is available.

But maybe a big list of Joomla files so my Eclipse is gone sleeping.

---
Window 7
Helios + RSE 3.2
Comment 19 Missing name CLA 2011-09-13 14:07:17 EDT
Confirmed with Eclipse 3.6.2 (M20110210-1200) running on Fedora 15, RSE 3.3, Helios for PHP.

It's consistent too. I haven't found a workaround except to open the dialog and wait 15 minutes before proceeding.
Comment 20 Missing name CLA 2011-09-13 17:06:32 EDT
Just tested 3.7 (I20110613-1736 from rawhide) under Fedora 15 and had the same bug there as well. I am also intermittently hit by Bug 277265 mentioned above.
Comment 21 William Lovaton CLA 2013-01-06 23:15:50 EST
It would seem that RSE is downloading certain info at a very low speed (like 3 Kb/s) and it won't show the finish button until its done which could take about one or two hours just for an empty Zend Framework 2 project as provided by phpcloud.com.

Is there something that can be done about it? it is really frustrating to wait for such a long time just to do a simple procedure.
Comment 22 Jason Clutterbuck CLA 2013-06-08 05:05:48 EDT
I'm also having this problem in juno trying to import php from an ftp. I left it overnight just in case it was something to do with time needed to reference the ftp and 12 hours later still no finish button. so cancel and try something else..

then i saw the create remote project option on a right click of the folder but that took to long so i cancelled it and not eclipse hangs with the creating remote project dialogue still visible and movable and the screen repaints but the cancel button is now inactive. 

wait while ......( the time it took to type this + 3min..)
end task..
start again.

if my config info would be helpful i can post it..

The RSE Core I have is 3.3.201209191030
RS EImport/Export  1.2.300.201209191030

It looks like all the RSE packages i have installed were built at 2012-09-19 10:30

Thanks guys.
Comment 23 Lee Hart CLA 2014-04-30 07:38:42 EDT
This bug (or identical) still occurs on this environment:

Ubuntu 12.04
Eclipse v3.7.2
PHP Development Tools (PDT) SDK Feature v2.2.1
Remote System Explorer End-User Runtime v3.2.2

Could someone please advise me on how I could start to investigate the source code and try to develop a patch?
Comment 24 David Hollingshead CLA 2014-04-30 12:11:44 EDT
Um, how do I stop getting email notifications for this?
Comment 25 David McKnight CLA 2014-05-01 16:17:03 EDT
(In reply to Lee Hart from comment #23)
> This bug (or identical) still occurs on this environment:
> 
> Ubuntu 12.04
> Eclipse v3.7.2
> PHP Development Tools (PDT) SDK Feature v2.2.1
> Remote System Explorer End-User Runtime v3.2.2
> 
> Could someone please advise me on how I could start to investigate the
> source code and try to develop a patch?

Hi Lee,

If you'd like to investigate this, you can bring in the source via the process described here:
http://wiki.eclipse.org/TM/Git_Workflows