che: Go devfile LS Not working without updating Go language server plugin to the experimental version.

Describe the bug

Go devfile is showing notification about updating the version of Go vsix plugin and a warning regarding development tools missing in the path installation.

Che version

7.9.0-SNAPSHOT

  • latest
  • nightly
  • other: please specify

Steps to reproduce

  • Open a Go getting started devfile
  • Open any .go script
  • Next to the notifications in the bottom bar on a right side you will see a notification about missing development tools and outdated plugin

Expected behavior

No errors/warnings are present

Runtime

  • kubernetes (include output of kubectl version)
  • Openshift (include output of oc version) 4.3, 4.2
  • minikube (include output of minikube version and kubectl version)
  • minishift (include output of minishift version and oc version)
  • docker-desktop + K8S (include output of docker version and kubectl version)
  • other: (please specify)

Screenshots

Screenshot_20200255_161009_closeup

image

Installation method

  • chectl -a operator -p openshift --ssl --self-signed-cert
  • che-operator
  • minishift-addon
  • I don’t know

Environment

  • my computer
    • Windows
    • Linux
    • macOS
  • Cloud
    • Amazon
    • Azure
    • GCE
    • other (please specify) ocp42.codereadyqe.com
  • other: please specify

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 25 (25 by maintainers)

Commits related to this issue

Most upvoted comments

The notification appears with every workspace startup until the plugin is updated.

I just tried on che.openshift.io and it looks like the problem is that it’s missing golangci-lint. I’m guessing this issue was introduced when the preference was changed in the devfile? https://github.com/eclipse/che-devfile-registry/blob/master/devfiles/go/devfile.yaml#L19.

If I start a workspace and remove that preference the Analysis Tools Missing error doesn’t pop up.

Edit: It looks like golangci-lint and gopls are both installed in the dockerfile: https://github.com/che-dockerfiles/che-sidecar-go/blob/1.12.9/Dockerfile#L72