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

[Quarkus] Can't add Quarkus extension to the project #15116

Closed
svor opened this issue Nov 6, 2019 · 5 comments
Closed

[Quarkus] Can't add Quarkus extension to the project #15116

svor opened this issue Nov 6, 2019 · 5 comments
Assignees
Labels
area/languages Issues related to Language extensions or plugins integration. kind/bug Outline of a bug - must adhere to the bug report template. severity/P2 Has a minor but important impact to the usage or development of the system.
Milestone

Comments

@svor
Copy link
Contributor

svor commented Nov 6, 2019

While testing vscode-quarkus extension I detected a problem:
There is not possible to add new Quarkus extension to the project.
How to reproduce:

  1. Go to Quarkus: Add extension to currant project command
  2. Select some extension and press Enter
  3. An error in Output view:
ERROR:Remote plugin in vscode-quarkusare: promise rejection is not handled in two seconds: TypeError: Cannot read property 'endsWith' of undefined
ERROR:Remote plugin in vscode-quarkusare: promise rejection stack trace: TypeError: Cannot read property 'endsWith' of undefined
    at Object.s [as currentWindowsShell] (/tmp/vscode-unpacked/redhat.quarkus.latest.lanvsfyrgl.vscode-quarkus-1.1.1-158.vsix/extension/dist/extension.js:1:257525)
    at Object.<anonymous> (/tmp/vscode-unpacked/redhat.quarkus.latest.lanvsfyrgl.vscode-quarkus-1.1.1-158.vsix/extension/dist/extension.js:157:148239)
    at Generator.next (<anonymous>)
    at /tmp/vscode-unpacked/redhat.quarkus.latest.lanvsfyrgl.vscode-quarkus-1.1.1-158.vsix/extension/dist/extension.js:157:147815
    at new Promise (<anonymous>)
    at n (/tmp/vscode-unpacked/redhat.quarkus.latest.lanvsfyrgl.vscode-quarkus-1.1.1-158.vsix/extension/dist/extension.js:157:147592)
    at Object.runInTerminal (/tmp/vscode-unpacked/redhat.quarkus.latest.lanvsfyrgl.vscode-quarkus-1.1.1-158.vsix/extension/dist/extension.js:157:147989)
    at Object.<anonymous> (/tmp/vscode-unpacked/redhat.quarkus.latest.lanvsfyrgl.vscode-quarkus-1.1.1-158.vsix/extension/dist/extension.js:157:147463)
    at Generator.next (<anonymous>)
    at a (/tmp/vscode-unpacked/redhat.quarkus.latest.lanvsfyrgl.vscode-quarkus-1.1.1-158.vsix/extension/dist/extension.js:157:146696)
But if do it again, the extension will be installed
Che remote plugin with vscode-quarkus extension

apiVersion: v2
publisher: redhat
name: quarkus
version: 1.1.1
type: VS Code extension
displayName: Quarkus Tools
title: Quarkus Tools by Red Hat
description: This plug-in provides support for Quarkus development via a Quarkus language server and a Quarkus jdt.ls extension.
icon: https://www.eclipse.org/che/images/logo-eclipseche.svg
repository: https://github.com/redhat-developer/vscode-quarkus
category: Language
firstPublicationDate: "2019-11-05"
spec:
  containers:
    - image: "docker.io/eclipse/che-remote-plugin-runner-java11:next"
      name: vscode-quarkus
      memoryLimit: "1500Mi"
      volumes:
      - mountPath: "/home/theia/.m2"
        name: m2
  extensions:
    - https://github.com/microsoft/vscode-java-debug/releases/download/0.20.0/vscode-java-debug-0.20.0.vsix
    - https://download.jboss.org/jbosstools/static/jdt.ls/stable/java-0.50.0-1825.vsix
    - https://download.jboss.org/jbosstools/vscode/snapshots/vscode-quarkus/vscode-quarkus-1.1.1-158.vsix

@svor svor added kind/bug Outline of a bug - must adhere to the bug report template. area/languages Issues related to Language extensions or plugins integration. labels Nov 6, 2019
@che-bot che-bot added the status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. label Nov 6, 2019
@tsmaeder tsmaeder mentioned this issue Nov 6, 2019
25 tasks
@tsmaeder
Copy link
Contributor

tsmaeder commented Nov 6, 2019

@tsmaeder
Copy link
Contributor

tsmaeder commented Nov 6, 2019

env.shell is documented here: https://code.visualstudio.com/api/references/vscode-api#env

@tsmaeder
Copy link
Contributor

tsmaeder commented Nov 6, 2019

It shows as "not implemented" in theia.

@tsmaeder
Copy link
Contributor

tsmaeder commented Nov 6, 2019

Since the shell might be different between different sidecar images, this should be implemented on the "plugin" side of the API. Keeping that in mind, it should be fairly straightforward. If the approach does not work, we might have to reschedule the issue.

@benoitf benoitf added severity/P2 Has a minor but important impact to the usage or development of the system. and removed status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. labels Nov 6, 2019
@benoitf
Copy link
Contributor

benoitf commented Nov 6, 2019

setting milestone 7.5.0 as it's your sprint @tsmaeder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/languages Issues related to Language extensions or plugins integration. kind/bug Outline of a bug - must adhere to the bug report template. severity/P2 Has a minor but important impact to the usage or development of the system.
Projects
None yet
Development

No branches or pull requests

5 participants