question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Confusing dialogs are shown when a project is cloned

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:15 (15 by maintainers)

github_iconTop GitHub Comments

1reaction
johnmcolliercommented, Jul 8, 2019

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

1reaction
ibuziukcommented, Jul 8, 2019

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

VS2017 clone git repo and map to Team menu - Stack Overflow
I hit "Manage Connections -> Connect To Project". Opened dialog "Connect to a Project". I select my repo and see message "Cloned locally...
Read more >
Android studio does not recognize the project as android project
I cloned the repository and I tried to open it with Android studio and ... Configure when Android framework is detected dialog is...
Read more >
Team explorer does not recognize previously cloned ...
Team Explorer now shows the project and the clone status. When finished, Team Explorer prompts to clone the repo again. Click Manage Connections...
Read more >
EGit User Guide - Tasks - IBM
Git Repositories can be created in different ways, for example by cloning from an ... On the next page, a list of the...
Read more >
Cloning a GitHub repository with Brackets | PracticalSeries
D:\2500 Git Projects. When we use Brackets-Git to clone the repository from GitHub, we must have an empty directory to put it into....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found