Eclipse whole code went missing after Team-Share-Git - eclipse

I have a project and i was trying to upload to GIT and did team--> share project and then it failed after some time but the whole src folder went missing.
The whole code that was developed is nowhere to be found, the default location it took was -
C:\Users\ad\git\repository\project1

Related

Unable to get xcode project to index appropriate directories

So I had to delete my project and then reclone it from my repository, but when I clone down the project and I open it, other files from some time ago show in there, how is this possible?
Example this is the cloned directory:
But when I open the project, it shows this project structure:
Also it produces the following error when attempting to build the project:
Build input file cannot be found: '/Users/Development/Projects/MapGlider/Application/Utilities/Extensions.swift'. Did you forget to declare this file as an output of a script phase or custom build rule which produces it?
All help will be appreciated!
The structure of the project as you see it in Xcode is a combination of file system + information about your project in YourProject.xcodeproj/project.pbxproj file. So you have a mismatch between file system and that file, which is typically a result of inaccurate checkin (for example some changes were done directly in file system, and the project was not updated), or a bad merge (developer A did everything right, developer B, or even the same developer on a different branch, overrode those changes incorrectly).
So what you need to do is to fix those errors one by one.
Note: the steps below assume the project is in your control. If you are using some script or tool to generate the project, you will have to address those issues via that tool or script instead.
First, fix the project structure:
Make sure Inspectors on the right side in Xcode are open. Choose File inspector tab
Focus on a folder inside Xcode, and check Name, Location and Full Path of the folder. Especially notice the Full Path, if it's incorrect, change it to a correct one. Here's the example how. Repeat for all folders and files you want to have in the project
Delete all folders and files you don't want to have in the project from Xcode. For example you can delete Extensions which appears as a file in your project, while it's actually a folder. Typically while deleting you should be able to delete them from file system as well if it exists, but if not, you can double check in file system and delete files / folders from there as well.
Add folders and files missing from the project if needed. Follow Add existing files and folders to a project section in the linked page.
Once you cleaned up the project, you need to review / fix all your project targets:
To fix the Project targets
Try to build each target. If it succeeds, most likely everything is resolved (although watch out for runtime errors for resource files - so you may need to test your app to ensure nothing is missing too).
If building a target fails, you will need to see why. For example
if file is missing from the target, but you already added it to the Xcode project, you can add it to the target (see this page).
if file is missing from the target and is not visible in Xcode, go back to step 4 of the previous procedure and add those files to Xcode project, and then add them to the target
if a file is nowhere to find and is not needed, you can delete it from target. If it was needed, then... well, you have a problem and need to locate your missing code in your source repo or rewrite it.

Linked file in Eclipse not found by C files when building project

I created a linked file in eclipse, it was created fine and I can see it in the folder where I created it.
However, when I go an build the project I get an error saying:
fatal error: myfile.h: No such file or directory
If I instead place the actual file in that folder it builds fine.
Do I need to do something additional?
Pd. I already refreshed the project and did a clean build...
Thanks in advance.

Can't import project into Eclipse - "Gradle build daemon disappeared unexpectedly"

I was trying to clone a project in Eclipse and after copying it into the same directory, I got a lot of build path errors, even after deleting the copy of the project. So, I decided to back up the original project, delete it from the directory and try importing it again. However, when I try to import it I get a "Gradle build daemon disappeared unexpectedly" error. I have looked extensively on this and other sites and found no solution, I tried deleting the .gradle folder as well as several others, to no avail. Can someone please help me?
It didn't fix the problem, but I managed to find a workaround by creating a new LibGDX project with the same name and then copying the 'src' folders from each subproject into their respective folders in the new project. Their were still a few problems with the android version, but once I picked an android target and added 'gen' to the source folders in the build path, it worked.

build path - the declared path does not meet the expected package

I've managed to clone a running-app from Github that my friend developed.
However,on my eclipse, it did not run and showed many errors, mainly "build path" error.
These build path errors occurred due to the open source java projects, such as "actionbarsherlock" and "slidingmenu-library"
So I imported them as well, but the build path error remains.
what's worse, when I hovered my mouse over these open sources,
it said
The declared package "com.jeremyfeinstein.slidingmenu.lib.app" does not match the expected package "library.src.com.jeremyfeinstein.slidingmenu.lib.app
I am clueless on where to start. Many comments that I've read told me clean my projects - that did not work. I tried to edit "sources" path, but failed.
can anyone please tell me what steps I should follow to deal with these errors?
Why do these build path errors occur? the APK file worked perfectly on the phone.
If you right click the project and go to build path - configure build path do you have any errors?
Also, is there a red ! on your project?
If so, it means that it can't access something on the build path. You will need to point it to the libraries required.

ColdFusion Builder throwing an error about my open project

I am trying to open Adobe ColdFusion Builder, and it is throwing the following error:
"open project has encountered a problem"
Problems occurred opening the selected resources.
The project description file (.project) for 'dev - work' is missing.
This file contains important information about the project.
The project will not function properly until this file is restored.
How do I solve this issue?
What about ovbious steps? It looks like you accidentally deleted the Eclipse project configuration file.
Check if ''.project'' file exists in project directory. If it is missing, re-creating the project and copying the source files from the old is the way to fix it.
Also you can try to create project with same name and copy the ''.project'' file to the old one. Bu you'll need to remove this invalid project first (without deleting the source files) and import it later, because Eclipse (FBuilder) wont allow you to have two projects with same name in workspace.
if you are using developing on windows 7 platform, go to you workspace folder(not where you project is located) right click go to restore select an earlier version. it worked for me