Che: Confusing dialogs are shown when a project is cloned

Created on 5 Jul 2019  Â·  15Comments  Â·  Source: eclipse/che

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

areeditoche-theia kinbug severitP1 teaplugins

All 15 comments

have the same issue on prod-preview after update to '7.0.0-rc-3.0' - https://github.com/redhat-developer/rh-che/pull/1474

@ibuziuk Maybe 7.0.0-rc-4.0-SNAPSHOT ?

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

hm, ok thanks

@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.

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

@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

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

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.

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

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

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

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

@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 https://github.com/eclipse/che/issues/13796

@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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

AndrienkoAleksandr picture AndrienkoAleksandr  Â·  3Comments

johnmcollier picture johnmcollier  Â·  3Comments

sudheerherle picture sudheerherle  Â·  3Comments

skabashnyuk picture skabashnyuk  Â·  3Comments

vanzhiganov picture vanzhiganov  Â·  3Comments