Eclipse files does not exist in workspace but does in remote system - eclipse

I have a remote project in eclipse. Usually it works fine but sometimes, my explorer, says a file does not exist when I open it. The files does exist in my remote system explorer and in my local explorer file list, it just cant open.
Even if I refresh the project. Any suggestions.

Possible suggestions
You might be having your workspace in virtual machine, which keeps refreshing at regular intervals. Recommending to save your workspace in myDrive or myDesktop (yours) where it would be safe.
You eclipse might have synced up with version control( like svn/cvs) at remote. Always disconnect from your version control while you have with development work for the day. And i recommend you to make a local copy of remote repository in your desktop.

Related

Cannot Clone EGit Repo on Eclipse

everyone. I've been struggling with this for a long time now. So I started an Android application using the Android Development Tools (ADT) on my computer and now I want to move this project into a repository on my Ubuntu Desktop 12.04 server, so I can work on it with a friend without constantly overwriting one another. I zipped the project on my computer, extracted and imported it on the server (using Eclipse on both ends) and created a git repository on the server by right clicking and going to Team -> Share Project
Now when I try to clone it from my (Windows) computer, I can't seem to connect properly no matter what protocol I use, be it git, SSH, FTP or HTTP. I want to try HTTP since it's the easiest (or am I totally wrong?)
The server has a static IP address, namely 192.168.1.42 (it also has a WAN address which I'll give my friend once this gets sorted out), and the project, along with the .git folder inside it, are under var/www/git/Eclipse Workspace/Musica
I can browse to that folder on Chrome from my computer, and to the hidden .git folder as well, but whenever I try to connect on Eclipse it says:
[address]/info/refs?service=git-upload-pack not found
And I can't seem to get around that. I've also tried using SSH, but the first time I connect it asks me to add a key, then fails loading the files, and every attempt thereafter fails to connect in the first place. FTP isn't cooperating either, nor is git nor file.
I'm out of ideas. I would really appreciate any guidance. Thanks!

Recovering netbeans local history

I had a Virtual Machine inside which I had my PHP project. The project was developed using Netbeans, and I used its local history extensively.
My VM Ubuntu installation got corrupted, so I ended up creating a new VM. I was able to copy over most of the files from the VDI (I attached it to the new VM), but I can't figure out where netbeans' local history is saved. I copied over the Netbeans project folder, but the history doesn't seem to be saved here.
Does anybody know how I can recover the Netbeans history?
Local History is kept in the .netbeans settings folder. On my Windows 7 machine that is located at <HOME>/.netbeans/<NB_VERSION>/var/filehistory where HOME is my user home and NB_VERSION is the version of NetBeans (e.g. 7.0).
Unfortunately this is an all or nothing thing. There is no way, that I can tell, to find specific projects. So, if you have local history for projects on your host machine you run the risk of overwriting these.
If you're looking for it on a Mac, the file local history is located at /Library/Application Support/Netbeans//var/filehistory.

how to use eclipse workspace on different computers

I have 3 developer machines (office desk, office laptop and home laptop) and I would like to keep my eclipse workspace and projects on usb drive and use it on all 3 computers... is this possible and how?
Though it is possible by indicating the folder on your usb to be your workspace, I'd recommend using version control if you have access to some server. This way you can work on your projects anywhere, have constant backup, and keep track of the changes.
Try using dropbox folders for your workspace (with their packrat feature its even better). That will keep all your files up to date :D.
Yes it is. Copy the workspace folder to your usb drive and open the workspace from any Eclipse installation you want to.
By the way, it may be a better idea to use a version control system. Sure, you'd have to synchronize your workspace every time you make a change in the code and commit it, but usb drives can get lost, or stolen, and I'm sure you wouldn't want to lose all of your projects if you lost your usb drive.
It's possible. Change your workspace to point to your shared drive. This is easier on OS's like linux as you can mount the USB drive to a specific directory.
Or, do what I do and copy the workspace directory for specific projects from one machine to another. This was covered here :
How to share eclipse configuration over different workspaces

Deleting files on remote server

I have a PHP project in NetBeans with remote files (over sftp). When I create, modify anything these changes happening both locally and on my web server. However when I'm trying to delete a file or a folder it gets erased only locally. What could be the problem?
Permissions seems to be ok, all files belong to the user I'm using to access the server.
I'm using Netbeans 6.9.1, default configuration, all updates installed.
Netbeans does not have a synchronization function. It is limited to downloading and uploading files. What you can do is to use some external tool, for example WinSCP is capable of synchronizing local and remote directories.
I read what you wrote... but I think it could be a permissions problem.
I also use NetBeans and when I delete a file from the project window it first erase it locally and then syncs with my server.
I login through sftp (using vsftp) as root, which is a bad thing, but you could try this too to be sure if it's a permission issue.
You mistakenly turned off the settings. Please follow these steps:
Right click on the project name
Select properties
From the list of the left select 'Run configuration'
On the left almost down, look for the setting 'Upload files:'
Make sure you set that to 'On Save'
All the best man

Can I access remote files on a different OS from Eclipse?

I remember i could remotely open files that are on my server via Notepad++. Can I do that with Eclipse so that I can edit files on my computer and when I save it saves on that file directly on the server.
I am using Windows 7 and my server is CentOS (I think).
The Remote Systems Explorer lets you do this. Open "Help > Install new software...", select the "Galileo Update Site", find the Remote Systems Explorer and install it.
Once you've got it installed, open the "Remote Systems" view and add a connection to your favourite server. I use it all the time; works like a charm.
Eclipse normally needs files to be in a project, but if you are able to map the network drive, you can add the remote folder into a project as a linked resource, then it can be modified as if it is on the local machine (except for additional latency).
To maintain portability, you can specify a path variable for the remote file system and define a relative path from that variable. See this answer for details of setting up linked resources.
If mapping the drive is not an option, there is the Remote System Explorer architecture. I've not used it myself so I can't say how well it works, but this blog describes how to use RSE to browse remote files.