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

Java language support not working in Apache Camel K worskpace #15910

Closed
7 tasks done
Katka92 opened this issue Feb 4, 2020 · 11 comments
Closed
7 tasks done

Java language support not working in Apache Camel K worskpace #15910

Katka92 opened this issue Feb 4, 2020 · 11 comments
Labels
area/plugins 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.

Comments

@Katka92
Copy link
Contributor

Katka92 commented Feb 4, 2020

Describe the bug

The Java language support is not working in default Apache Camel K workspace. Functions like Ctrl + click to e.g. open a class or go to the definition does not work, error highlighting does not work.

Che version

  • latest 7.9.0
  • other: 7.8.0

Steps to reproduce

  1. Go to Workspace -> Add Workspace
  2. Choose Apache Camel K workspace
  3. Create and run the workspace with default settings
  4. Open any Java file (e.g. polyglot -> JavaRoute.java)
  5. Try Ctrl + click on info on line 23 - nothing happens
  6. Insert new line 24, type error - no error highlighting

Expected behavior

Error highlighting and code navigation should work.

Runtime

Screenshots

Screenshot from 2020-02-04 08-40-47

Installation method

  • chectl for 7.9.0

Environment

  • Cloud
    • Amazon for Che with 7.9.0 version
  • other: for che.prod-preview.openshift.io
@Katka92 Katka92 added the kind/bug Outline of a bug - must adhere to the bug report template. label Feb 4, 2020
@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 Feb 4, 2020
@tolusha
Copy link
Contributor

tolusha commented Feb 4, 2020

I believe these kind of issues must contain workspace logs.
Currently it is easy to get them using checlt workspace:logs -w <id> -n <namespace> command.

@Katka92
Copy link
Contributor Author

Katka92 commented Feb 4, 2020

@tolusha So this is the output of the command you've sent.

events.txt
verifier.log
che-machine-exec2jx.log
mysql.log
theia-idepvi.log
vscode-javae9k.log

@tolusha
Copy link
Contributor

tolusha commented Feb 4, 2020

Probably Java ls in't initialized.
Could you refresh the tab to check if it helps?

@Katka92
Copy link
Contributor Author

Katka92 commented Feb 4, 2020

I tried to reopen file and nothing changed, but after the refresh, I saw this pop-up.
Screenshot from 2020-02-04 10-41-30

@l0rd
Copy link
Contributor

l0rd commented Feb 5, 2020

It looks like the Camel K plugin doesn't work with the version of Kube you are running on. @Katka92 what's exactly the OpenShift version? cc @apupier @bfitzpat

@l0rd l0rd added severity/P2 Has a minor but important impact to the usage or development of the system. area/plugins team/plugins and removed status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. labels Feb 5, 2020
@apupier
Copy link
Contributor

apupier commented Feb 5, 2020

In the Camel K Dev file, Java language support is not provided https://github.com/eclipse/che-devfile-registry/blob/master/devfiles/apache-camel-k/devfile.yaml . We will surely need to play with memory to fit in the 3G memory limits of che.openshift.io as the Kubernetes side is already taking 1G

The Java language support is really limited currently in the absolute. Even if the Java language support is activated, as it is a standalone file you will have only syntax validation. VS Code Java 0.55+ is required to have proper Java support which is a version not yet available in Che.
see #15560 (comment)

What Camel K is providing is Camel URI completion in Camel K Standalone files.

For the kubectl error, seems effectively that the kubectl version is not compatible with the Kubernetes/OpenShift version you are trying to connect to.
The kubectl version is coming from Kubernetes sidecar https://github.com/che-dockerfiles/che-sidecar-kubernetes-tooling/blob/1.0.4/Dockerfile#L13

@apupier
Copy link
Contributor

apupier commented Feb 13, 2020

created for including Java in Camel K stack #16018

@Katka92 Katka92 mentioned this issue Apr 30, 2020
16 tasks
@Katka92 Katka92 mentioned this issue May 26, 2020
10 tasks
@che-bot
Copy link
Contributor

che-bot commented Aug 21, 2020

Issues go stale after 180 days of inactivity. lifecycle/stale issues rot after an additional 7 days of inactivity and eventually close.

Mark the issue as fresh with /remove-lifecycle stale in a new comment.

If this issue is safe to close now please do so.

Moderators: Add lifecycle/frozen label to avoid stale mode.

@che-bot che-bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Aug 21, 2020
@apupier
Copy link
Contributor

apupier commented Aug 21, 2020

/remove-lifecycle stale

@che-bot che-bot removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Aug 21, 2020
@ericwill
Copy link
Contributor

Is this one still relevant @apupier? Or can we close it and use #16018

@apupier
Copy link
Contributor

apupier commented Aug 24, 2020

ok to use #16018

@apupier apupier closed this as completed Aug 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/plugins 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

6 participants