Skip to content
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

Confusing dialogs are shown when a project is cloned #13784

Closed
sunix opened this issue Jul 5, 2019 · 15 comments
Closed

Confusing dialogs are shown when a project is cloned #13784

sunix opened this issue Jul 5, 2019 · 15 comments
Assignees
Labels
area/editor/theia Issues related to the che-theia IDE of Che kind/bug Outline of a bug - must adhere to the bug report template. severity/P1 Has a major impact to usage or development of the system.
Milestone

Comments

@sunix
Copy link
Contributor

sunix commented Jul 5, 2019

Description

With new git vscode extension, che-theia is not behaving as expected during initial clone of project. The project should be cloned without any prompt for the user but currently a couple of prompt dialogs are shown to the user.

Maybe we shouldn't use that theia command and invoke git directly (https://github.com/eclipse/che-theia/blob/master/plugins/factory-plugin/src/theia-commands.ts#L74). Or maybe there are some default options to set.

Reproduction Steps

Started the workspace with project to clone, like:

chectl workspace:start -f <(chectl devfile:generate -name=che7-readme-update-stable --git-repo=https://github.com/eclipse/che --dockerimage=sunix/git-devtools)
  ✔ Retrieving Che Server URL...http://che-che.192.168.39.13.nip.io
  ✔ Verify if Che server is running
  ✔ Create workspace from Devfile /dev/fd/63

Workspace IDE URL:
http://che-che.192.168.39.13.nip.io/dashboard/#/ide/che/che7-readme-update-stable

Theia starts successfully but ask to select a (git) repository:
Eclipse Che | che7-readme-update - Google Chrome_327

It shouldn't ask anything as it was before. Moreover selecting Cancel abort project cloning and that should not happen neither.

Anyway selecting folder /projects/ works and the project is cloned successfully (and a nice spinner is shown indicating that the cloning is happening).

After the project is cloned a couple of dialogs are shown to the user:

Eclipse Che | che7-readme-update-2 - Google Chrome_329

And if you do not make the right choice, we end up with strange folders in the explorer

Selection_330

OS and version:
rhel, chectl and minikube

@sunix sunix added kind/bug Outline of a bug - must adhere to the bug report template. team/ide area/editor/theia Issues related to the che-theia IDE of Che labels Jul 5, 2019
@l0rd l0rd changed the title Unexpected behaviour when cloning projects with the new git VSCode extension. Confusing dialogs are shown when a project is cloned Jul 5, 2019
@l0rd l0rd added this to the 7.0.0 milestone Jul 5, 2019
@l0rd l0rd added the severity/P1 Has a major impact to usage or development of the system. label Jul 5, 2019
@ibuziuk
Copy link
Member

ibuziuk commented Jul 8, 2019

have the same issue on prod-preview after update to '7.0.0-rc-3.0' - redhat-developer/rh-che#1474

@vparfonov
Copy link
Contributor

@ibuziuk Maybe 7.0.0-rc-4.0-SNAPSHOT ?

@ibuziuk
Copy link
Member

ibuziuk commented Jul 8, 2019

@vparfonov nope, was able to repro against stable 7.0.0-rc-3.0 upstream release

@vparfonov
Copy link
Contributor

hm, ok thanks

@rhopp
Copy link
Contributor

rhopp commented Jul 8, 2019

@vinokurig @vparfonov When can we expect solution to this issue? I'm asking because it's currently breaking happy path tests and I'm trying to decide whether it's worth it to implement workaround in Happy Path tests.

@vparfonov
Copy link
Contributor

@rhopp, we work on it just now, will ping you soon

@sunix
Copy link
Contributor Author

sunix commented Jul 8, 2019

@vinokurig maybe quick way to fix it is to invoke git directly instead of using the vscode command 'git.clone'

https://github.com/eclipse/che-theia/blob/master/plugins/factory-plugin/src/git.ts#L57

to replace

https://github.com/eclipse/che-theia/blob/master/plugins/factory-plugin/src/theia-commands.ts#L74

@vinokurig
Copy link
Contributor

@sunix Right now I am preparing a new binary of vscode git that solves this problem.

@johnmcollier
Copy link
Contributor

I should also note that this shows up every time the Che workspace is accessed (rather that just the first time). Also, when you reload the workspace in the browser, if you select the same folder as before, it reclones the projects, creating duplicates in the workspace.

@vinokurig
Copy link
Contributor

eclipse/che-theia:7.0.0-rc-3.0 image is rebuilt with the patched vscode git extension

@sunix
Copy link
Contributor Author

sunix commented Jul 8, 2019

@vinokurig are you saying that you are forking vscode git ?

@vinokurig
Copy link
Contributor

Yes, it's a kind of a fork https://github.com/che-incubator/vscode-git

@johnmcollier
Copy link
Contributor

johnmcollier commented Jul 8, 2019

Will the fix for this be pushed/merged to eclipse/che-theia:next?

@johnmcollier
Copy link
Contributor

@sunix @vinokurig I'm still seeing duplicate clones when refreshing/reloading a Che workspace with eclipse/che-theia:7.0.0-rc-3.0, so I've opened #13796

@sunix
Copy link
Contributor Author

sunix commented Jul 8, 2019

@sunix @vinokurig I'm still seeing duplicate clones when refreshing/reloading a Che workspace with eclipse/che-theia:7.0.0-rc-3.0, so I've opened #13796

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/editor/theia Issues related to the che-theia IDE of Che kind/bug Outline of a bug - must adhere to the bug report template. severity/P1 Has a major impact to usage or development of the system.
Projects
None yet
Development

No branches or pull requests

7 participants