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.

LS not working for Java Maven

See original GitHub issue

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

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
ibuziukcommented, Feb 18, 2020

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

0reactions
nickboldtcommented, Feb 21, 2020

followup work to ensure we don’t have incorrect name: field in meta.yaml files for plugin registry: https://github.com/eclipse/che/issues/16107

Read more comments on GitHub >

github_iconTop Results From Across the Web

CMD commands not working after executing maven command ...
I found the solution to my problem. I did not add %MAVEN_HOME%\bin to the PATH variable (which replaced the actual one), i created...
Read more >
Apache Maven Tutorial - Vogella.com
This tutorial describes the usage and the core concepts of using Maven for building Java applications. 1. What is Apache Maven? Apache Maven...
Read more >
Maven on Windows
Maven is a command-line tool for building Java (and other) programs. The Maven project provides a simple ZIP file containing a precompiled version...
Read more >
Maven and Gradle support for Java in Visual Studio Code
This document is an overview of how to work with your Java build tools in Visual Studio Code. It covers the Maven for...
Read more >
How to do a Maven to Gradle migration on a Java Spring Boot ...
Running the migration · 1) Generate a build scan · 2) Run an automatic conversion · 3) Build your project and work through...
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