JCraft SFTP for eclipse Luna - eclipse

I've been using for the last 6 years JCraft's SFTP plugin.
It's quite simple to use and the only problem i ever had with it is that it doesn't know how to delete recursivly files and folders (it tries to delete folders before files).
Today i tried to update eclipse to Luna and I can't seem to install this plugin anymore.
I get the following error:
An error occurred while installing the items
session context was:(profile=epp.package.standard, phase=org.eclipse.equinox.internal.p2.engine.phases.Install, operand=null --> [R]com.jcraft.eclipse.team.sftp 0.0.4, action=).
Failed to prepare partial IU: [R]com.jcraft.eclipse.team.sftp 0.0.4.
Any ideas on how to solve this ?
Thanks

From the error message "Failed to prepare partial IU" I found this thread: https://code.google.com/p/veloeclipse/issues/detail?id=47
The suggested workaround is to install the "Eclipse 2.0 Style Plugin Support", which adds support for "running old Eclipse plugins that are not proper OSGi bundles."

You can use Remote System Explorer (RSE) to replace the sftp plugin. It has sftp capabilities (use ssh connection) and allows you to synchronize files between local and server storage

I too struggled to get JCraft installed and then I discovered that Remote System Explorer (RSE) comes already installed in Eclipse Luna in the Java EE version but it may be baked into other versions of Eclipse as well. All I had to do was navigate to Window > Open Perspective > Other... > Remote System Explorer.
Once in the Remote Systems perspective, you will see links to your local files. To create a SSH connection to a remote server (even if it is in the same location as you but requires SSH protocol), just right-click anywhere in that Remote Systems tab and choose New > Connection and then under the General folder, select SSH Only. Fill out the host name or IP address.
If successful, the server will appear as a folder under the Local one. Attempt to navigate below the server's 'SFTP Files' folder and you will be prompted for your user ID and password on that remote server. Say yes to the prompt about trusting the certificate and you are good to go. Your remote files will appear in the file explorer type of GUI in that Remote Systems perspective.
Switch back to your regular local environment in any other perspective in the upper right corner of the Eclipse window just as you normally would.

Related

Remote search not working in eclipse RSE

I'm trying to search for a string in eclipse. I'm currently connected to a remote linux server using RSE. but the search doesn't yield any results. I'm sure that the string is present in some of the files in the directories I'm searching in. I have search in sub-folder options checked.
Any setting I need to change for it search successfully?
Thanks in advance!
Which version of Eclipse are you using and which protocol do you use for your connection (ssh, ftp, or dstore)? In addition, it would be good to know which kind of project you are working on (Java, C/C++, ...). From what you stated in your question, I would guess that your project is not fully indexed yet so that most of the files are not being searched. Try rebuilding your index and see if this helps.
You are best advised to permanently forget about searching in remote repositories using Eclipse RSE. Remote Search requires running a dedicated daemon on the remote server, so unless you own the server and have root access (necessary for launching daemons and opening ports on the firewall), remote searching functionality will be unavailable to you, full stop.
It eludes me why RSE doesn't just use find | grep over SSH. </rant>

Eclipse : Whether to select Local Or Shared File during Remote Debugging

I have made some code changes and deployed the code to Jetty Server which is located Remotely .
Accessed the application through browser and I am trying to debug a Application .
Please tell me whether i need to select the Local File Or Shared File from the Eclipse Debug Configurations .
Please see the screen shot here .
The option shown in your screenshot will not help you automatically get code deployed to your remote Jetty.
The option simply allows you to Share your launch configuration (Remote Java Application - ManageWatchlistCall) in your eclipse workspace. This will allow you to checkin the launch configuration in a versioning control system so your colleagues automatically get the sme Remote Java Application launch configuration.
in order to get new code to your remote server, there are only 2 options :
Redeploy your application on the remote server.
Hotdeploy pieces of code to the remote supported (if the server supports it)
Use Hotswap Bug Fixing (works for small fixes) (*)
(*) If you are running Java Virtual Machine (JVM) V1.4 or higher,
Eclipse supports a feature called Hotswap Bug Fixing (not available in
JVM V1.3 or lower). It allows the changing of source code during a
debugger session, which is better than exiting the application,
changing the code, recompiling, then starting another debugging
session. To use this function, simply change the code in the editor
and resume debugging.

Setup eclipse PDT to debug website residing on remote server with Xdebug

I have tried a lot but not been able to understand the steps involved in debugging a PHP website residing on a remote server with eclipse Indigo PDT and Xdebug. Following is my configuration.
Remote:
LAMP, Xdebug(fully setup)
Local:
LAMP, Eclipse PDT with RSE,
My main problem is about the setup that I need to do locally with eclipse to be able to debug the remote website.
Specifically:
Do I need to create a new eclipse project locally? If yes, where should I load the source files from and how? Do I need an exact copy of the source files as on the server?
Do I need to have all the files locally before I can start debugging? I copied only index.php to a local project and started debugging. I received the remote connection when I started debugging the website and could step through index.php, but not after that. If I don't need to have all the source files locally beforehand, how can I set a break point in a file that is reached after 20 function calls?
What other settings need to be setup to link the local and remote projects. Do I need to add a new PHP server? What should be the settings of the debug configuration?
I know about sshfs and tried to set it up using this link:
http://www.docplanet.org/php/how-to-debug-php/
but eclipse took forever to build project files on the server and hung.
I have looked all over. A good link to go with the answers will be appreciated.
Thank you.
I posted the question on eclipse forums too and got an answer:
http://www.eclipse.org/forums/index.php/mv/msg/365474/890896/#msg_890896
So here are the answers:
Yes, you need source files and an eclipse project locally. No debugger delivers source files. I read on SO that for PHP we only need the lines that are being debugged to be same, while for C# the whole project has to be a copy.
Yes, you need the files locally and set your break point in them.
One thing I found is that you don't need to start the debugger like we do with normal projects. Eclipse starts accepting the debugging connection the moment you setup the debugger.
So you just need to open the webpage with debugging enabled and eclipse will catch the connection and let you know.

Subclipse and Eclipse - RA layer request failed

I'm following the instructions for installing Ardor3D as an Eclipse Project Set via Subclipse; instructions at:
http://www.ardor3d.com/wiki/svneclipsetutorial
I installed Subclipse from
http://subclipse.tigris.org/
and installed fine. If I go to Eclipse's Preferences and Team|SVN I can see that the SVN Interface Client is JavaHL, and hence installed fine.
However, when I come to checkout the code at:
http://ardorlabs.svn.cvsdude.com/Ardor3Dv1
by selecting New|Other|SVN|Check Projects from SVN I get the following error message:
RA layer request failed
svn: Unable to connect to a repository at URL 'http://ardorlabs.svn.cvsdude.com/Ardor3Dv1'
svn: OPTIONS of 'http://ardorlabs.svn.cvsdude.com/Ardor3Dv1': could not connect to server (http://ardorlabs.svn.cvsdude.com)
I know the URL is valid as I can install the above fine on my work m/c of WinXP. However, the same installation on my personal laptop of Win7 fails to connect.
I tried temporarily disabling the firewall and it still fails.
I've tried playing around with the config and server files in:
C:\Documents and Settings\Administrator\Application Data\Subversion
but to be honest not 100% sure as what to change, if anything as I'm not using proxy settings.
If there's an expert out there who's knows the solution to this problem I would greatly appreciate hearing from you.
Thanks
Graham
PS. I find the error message "RA layer request failed" confusing as the URL is valid.
I had exactly the same problem, which turned out to be caused by a proxy server. The solution to my problem was to configure subversion to work with the proxy server, however it was not obvious how to do this.
You should have a directory similar to : C:\Documents and Settings\UserName\Application Data\Subversion
In that directory there will be a file called servers.
I un-commented and edited the following entries and my subversion is now working fine with Eclipse:
http-proxy-host
http-proxy-port
http-proxy-username
http-proxy-password
Why exactly you can't configure this through Eclipse is abit of a mystery, but there you go.
Another user account could login, I got the error as described above. The difference was the Proxy setting which was missing in my account. It is stored per user in the Registry and I could easily change this in the Tortoise SVN config.
We encountered this error with our server. While we were able to successfully access the CollabNet 5 SVN admin console, navigating to the repository to browse it from the admin console would fail. We also were not able to connect from Subclipse clients.
The problem turned out we were not hitting the correct port on the server. We had reconfigured the default port from 80 to 4343 and the admin console reported the changed setting but the server was still running on 80.
For what it's worth, in order for the configuration change to stick, we had to bring the repo server down and make the change in the admin console and then restart the machine. We were then able to browse the repo from the link in the admin console.

How can I set up Eclipse to use ssh-agent for cvs?

Several ways to ask this question:
How can I get eclipse to use my ssh-config?
How can I get eclipse to use /usr/bin/ssh instead of the internal implementation? (I am not completely sure it does, but it does not read Host-entries in .ssh/config)
This is what I have tried:
have CVS_ROOT in the environment eclipse starts in (I am asked for username and password, I know this setup works with command-line cvs)
create a new repository location, with connection-type ext (message: unknown response received from cvs server: )
same, with extssh (error: cannot locate host, which means that .ssh/config is not being read, I refer to a Host-alias defined there)
same, but with the dns-name of the server, this time I'm asked for the passphrase for my id_rsa-file, so eclipse seems to be aware of atleast parts of my ssh-setup. The passphrase-dialog is from eclipse, not the usual ssh-agent-dialog.
I am using eclipse 3.4.1 on ubuntu 08.10
I expect you have looked at SSH in the Windows --> Preferences.
I have used ssh with eclipse. IIRC, I needed to add a key into
Window --> Preferences --> General --> Network Connections --> SSH2.
You can also change the program you use for SSH (e.g. you don't trust the Java implementation of SSH) in
Window --> Preferences --> Team --> CVS --> Ext Connection Method.
Eclipse can use ssh-agent like this:
Window / Preferences / Team / CVS /Ext Connection Method
Select "Use an external program to connect"
CVS_RSH: ssh
Parameters: -l {user} {host}
CVS_SERVER: cvs
Pay attention that your cvs urls have "ext:" in there .cvs directory
This way eclipse just uses ssh like you do on your shell. If ssh-agent works inb your shell it works with eclipse too.