-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Che Theia clones projects every time a workspace is loaded/refreshed, even if the project was already cloned. #13796
Comments
normally it should check on the filesystem if the projects are here or not: @johnmcollier could you quickly check from the terminal (because i don't trust the UI) if the projects are cloned in /projects ? |
@sunix Yup, the projects are there (I also manually exec'd into the theia container to check as well):
I should note that it never reclones the |
ok thanks maybe this is not related to #13784 then. We are going to try to reproduce that in a unit test. |
ok ... somehow i can see in your screenshot
So destination path is somehow |
@sunix I think have an idea of what's happening: In my devfile (https://raw.githubusercontent.com/johnmcollier/devfiles/master/devfile_test.yaml), I specify project names for the two git projects (microproj and nodeTemplate). But the latter ( In previous versions of Theia, the project would be checked out under the project name specified in the devfile, not whatever the project's repo name is. But now, it only clones under the git repo name. Similarly, Che only ever reclones projects where the repo name doesn't match the Che project name. To test this, I created another devfile: https://raw.githubusercontent.com/johnmcollier/devfiles/master/devfile_theia_names.yaml. This time, the project names match the git repo names. And now Che doesn't try to reclone the projects. So seems like something weird is going on in theia when the two names (Che project name, and git repo name) mismatch |
OK thanks for giving all these details it helps :) |
Possibly related to #13784
Description
I'm using Che 7 with
eclipse/che-theia/7.0.0-rc-3.0
as the editor. I have a simple devfile defined with two projects (https://raw.githubusercontent.com/johnmcollier/devfiles/master/devfile_test.yaml). Every time I load the Che workspace, Theia clones the projects (or at least one of the projects), even if project already exists. Furthermore, even when I refresh the workspace in my browser, Theia reclones the projects.and then after reloading/refreshing:
I've refreshed the workspace in my browser 5 times, so there's 5
nodeExpressTemplate
projects cloned. This also happens if I open the workspace via Che.Che/Theia should only be cloning on the first time Theia loads, rather than on every time.
The text was updated successfully, but these errors were encountered: