When attempting to open a remote project in Talend Studio, you may encounter the following error, even if no modifications have been made to the code.
org.talend.commons.exception.PersistenceException: java.lang.Exception: Uncommitted files exist, need to commit or clear them first. at org.talend.repository.gitprovider.core.GitBaseRepositoryFactory.initProjectRepository(GitBaseRepositoryFactory.java:276) at org.talend.repository.remoteprovider.RemoteRepositoryFactory.initProjectRepository(RemoteRepositoryFactory.java:1722)
Resolution
a) To clear the Talend Studio cache, follow these steps:
Stop Talend Studio.
Clear the Talend Studio cache by deleting the following directories: org.eclipse.core.runtime and org.eclipse.equinox folders located in Talend Studio/configuration/ (Note: ensure to create a backup before deleting these folders.)
Restart Talend Studio.
b) Alternatively, you can log in to Talend Studio by creating a new workspace.
Cause
This error appears to stem from inconsistencies in the Git Repository that require cleanup prior to launching Talend Studio.