che: LS not working for Java Maven

Describe the bug

The LS is not working for a Java Maven workspace. It seems like LS is initialized but then it does not work: error highlighting, suggestions neither the ctrl + left click to open class in new tab.

Che version

  • latest
  • nightly
  • other: please specify

Steps to reproduce

  1. Go to Workspaces -> Create Workspace -> Java Maven
  2. Create and open workspace with default settings
  3. Open file HelloWorld.java in console-java-simple/src/main/java/org/eclipse/che/examples
  4. Wait for LS to be initialized [1]
  5. Try to use error highlighting, suggestion invoking or Ctrl + left click (none of them should work)
  6. Open Problems: View -> Problems
  7. See the following error:
{
	"resource": "file:///projects/console-java-simple",
	"owner": "file:///projects/console-java-simple",
	"code": "0",
	"severity": 1,
	"message": "Could not fetch model of type 'BuildEnvironment' using Gradle distribution 'https://services.gradle.org/distributions-snapshots/gradle-6.0-20191016123526+0000-bin.zip'.\nThe specified Gradle distribution 'https://services.gradle.org/distributions-snapshots/gradle-6.0-20191016123526+0000-bin.zip' does not exist.\nhttps://downloads.gradle-dn.com/distributions-snapshots/gradle-6.0-20191016123526+0000-bin.zip",
	"source": "Java",
	"startLineNumber": 0,
	"startColumn": 0,
	"endLineNumber": 0,
	"endColumn": 0
}

[1] Screenshot from 2020-02-17 10-46-16

Expected behavior

The LS should be correctly initialized or some error should be shown for a user.

Runtime

  • kubernetes (include output of kubectl version)
  • Openshift (include output of oc version) oc v3.11.0+0cbc58b kubernetes v1.11.0+d4cacc0 features: Basic-Auth GSSAPI Kerberos SPNEGO

Server https://api.ocp42.codereadyqe.com:6443 kubernetes v1.14.6+8bbaf43

  • 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 from 2020-02-17 10-54-07

Installation method

  • chectl chectl server:start -a operator -p openshift -b crw.codeready.com -n katka
  • che-operator
  • minishift-addon
  • I don’t know

Environment

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

About this issue

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

Most upvoted comments

I’m wondering how are we going to release 7.9.0 with this issue? this also looks like a blocker for Hosted Che update