MCUXpresso IDE

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MCUXpresso IDE

729 Views
RawiUA
Contributor I

Hi, 

I am new to Eclipse and Github. I pushed my projects to repo, when trying to access the repo and projects from another device. 

I noticed i am no longer able to build the projects due to missing .metadata?

Is there any way to recover the project?

"I am able to access the projects locally in the workspace on the original device, so this is the last solution"

.gitignore:

#################
## Eclipse
#################

*.pydevproject
.project
.metadata
bin/
tmp/
*.tmp
*.bak
*.swp
*~.nib
local.properties
.classpath
.settings/
.loadpath

# External tool builders
.externalToolBuilders/

# Locally stored "Eclipse launch configurations"
*.launch

# CDT-specific
#.cproject

# PDT-specific
.buildpath

Regards,

 

0 Kudos
Reply
1 Reply

687 Views
Harry_Zhang
NXP Employee
NXP Employee

Hi @RawiUA 

Yes, you can recover your project. It is possible that this file was not pushed to the repo due to its exclusion in your .gitignore file or similar settings.

Here are the steps you could follow:

1 Clone the repository on your new device from where you pushed your projects.
2 Create a new empty metadata folder in the root directory of your project.
3 Copy all the necessary configuration files into this metadata folder. You should have these files available in your original workspace on your first device.
4 Try to import your project with the newly created metadata folder.
Alternatively, if you have access to the original device, you might want to consider copying the entire project (including the .metadata folder) to the new device. This way, you would preserve all the configurations and avoid potential issues.

Remember, it's always a good practice to regularly commit and push your changes to prevent data loss. Also, ensure that your .gitignore file does not exclude important files or directories.

Hope this will help you.

BR

Hang

0 Kudos
Reply