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

Include existing GitHub plugin in Che Theia IDE #11867

Closed
ashumilova opened this issue Nov 8, 2018 · 9 comments
Closed

Include existing GitHub plugin in Che Theia IDE #11867

ashumilova opened this issue Nov 8, 2018 · 9 comments
Assignees
Labels
kind/enhancement A feature request - must adhere to the feature request template. kind/task Internal things, technical debt, and to-do tasks to be performed. severity/blocker Causes system to crash and be non-recoverable or prevents Che developers from working on Che code.
Milestone

Comments

@ashumilova
Copy link
Contributor

ashumilova commented Nov 8, 2018

There is VSCode extension for GitHub integration - https://marketplace.visualstudio.com/items?itemName=GitHub.vscode-pull-request-github, the idea is to make it work with Che Theia and publish it on plugin registry.

@benoitf
Copy link
Contributor

benoitf commented Nov 8, 2018

hello, why should it be inside the theia image ?

@ghost ghost added kind/task Internal things, technical debt, and to-do tasks to be performed. team/ide2 labels Nov 10, 2018
@mmorhun
Copy link
Contributor

mmorhun commented Nov 23, 2018

Currently we are missing at least

  1. globalState from plugin context implementation (issue)
  2. ProgressOptions, ProgressLocation form global namespace and withProgress from window API (PR in progress)
  3. Open link VSCode command (internal id vscode.open) (issue)
  4. getWorkspaceFolder from workspace namespace (issue)

Full list of commands:

Command Investigated Issues to resolve
Set Personal Access Token... Yes 1
Setup GitHub Enterprise Token... Yes 1
Setup Gitlab Token... Yes 1
Remove Token... Yes 1
Browse project Yes 1, 2, 3
Create pull request... Yes 2, *
Create pull request from current branch in current repository (quick) Yes 2, *
Checkout open pull request... Yes 2, **
Browse pull request of current branch Yes 2, 3
Browse open pull request... Yes 2, 3
Merge pull request (current branch)... Yes 2
Add assignee to pull request... Yes 2
Remove assignee from pull request... Yes 2
Request a review for the current pull request... Yes 2
Cancel a pull request review... Yes 2
Browse open issue... Yes 2, 3
Browse current file Yes 2, 3, 4

* It works, but after everything is done a notification popup is shown which suggest to open just created pull request. To have this working we need 3

** Behavior slightly differs in Theia and Vscode. Vscode silently creates a local branch to checkout a PR, Theia instead proposes to select a local branch or create a new one.

All commands were tested with github.com only

@mmorhun
Copy link
Contributor

mmorhun commented Nov 27, 2018

Also there is a problem with the plugin code. In some environments it fails with:

Error: Class constructor LRUCache cannot be invoked without 'new'

@Trevor-K-Smith
Copy link

I'm still getting "Error: Class constructor LRUCache cannot be invoked without 'new'" with every npm action i try to perform. Is there something i can do to fix?

@mmorhun
Copy link
Contributor

mmorhun commented Jan 15, 2019

@Trevorks try to use the latest version of the plugin. AFAIK there is a fix for that problem and it has been released.

@vinokurig vinokurig self-assigned this Jan 16, 2019
@vinokurig vinokurig added the status/in-progress This issue has been taken by an engineer and is under active development. label Jan 17, 2019
@vparfonov
Copy link
Contributor

@vinokurig vinokurig added status/analyzing An issue has been proposed and it is currently being analyzed for effort and implementation approach and removed status/in-progress This issue has been taken by an engineer and is under active development. labels Jan 18, 2019
@vinokurig
Copy link
Contributor

Depends on eclipse-theia/theia#4103

@vinokurig
Copy link
Contributor

Analyzing showed that this plugin requires VSCode Git extension:
https://github.com/Microsoft/vscode-pull-request-github/blob/master/src/extension.ts#L82.
VSCode Git extension uses SCM Plugin-Api:
https://github.com/Microsoft/vscode/blob/master/extensions/git/src/repository.ts#L577
witch is not implemented in Theia (Issue: eclipse-theia/theia#4103).
Anyway the plugin can work only on Theia with installed VSCode Git Extension. Theia with VSCode extensions is going to be done in eclipse-theia/theia#3815 and eclipse-theia/theia#3956

@l0rd
Copy link
Contributor

l0rd commented Jun 27, 2019

We have reviewed this issue today with @vparfonov and now that the CQ to add VS Code built-in extensions to Theia has been approved we can proceed with:

  • Including git extension in theia (if, for some reason, the PR takes long to get merged, we are going to include it in che-theia)
  • review and merge the PR to include the Github extension in the plugin registry (Add Vscode Github plugin che-plugin-registry#175)

@l0rd l0rd mentioned this issue Jun 27, 2019
85 tasks
@l0rd l0rd added kind/enhancement A feature request - must adhere to the feature request template. severity/blocker Causes system to crash and be non-recoverable or prevents Che developers from working on Che code. target/che7GA and removed target/che7GA status/analyzing An issue has been proposed and it is currently being analyzed for effort and implementation approach labels Jun 27, 2019
@l0rd l0rd added this to the 7.0.0 milestone Jun 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement A feature request - must adhere to the feature request template. kind/task Internal things, technical debt, and to-do tasks to be performed. severity/blocker Causes system to crash and be non-recoverable or prevents Che developers from working on Che code.
Projects
None yet
Development

No branches or pull requests

7 participants