intellij-tekton icon indicating copy to clipboard operation
intellij-tekton copied to clipboard

Tekton tool window only displays "nothing to show"

Open tosmi opened this issue 1 year ago • 4 comments

i'm on IntelliJ IDEA (build #IU-241.14494.240, Thu, 28 Mar 2024 05:12:00 GMT) and using the following k8s plugins:

  • tekton pluing version Tekton Pipelines by Red Hat (1.4Tekton.2.294)`
  • OpenShift Toolkit by Red Hat (1.8.0)
  • Kubernetes by Red Hat (1.2.3.294)
  • Kubernetes (241.15989.150)

connected to an openshift cluster:

Server Version: 4.15.5
Kubernetes Version: v1.28.7+f1b5f6c

i'm in a ns that has tekton tasks, but the plugin only displays "nothing to show". the intellij logs displays the following trace:

2024-04-30 16:02:52,920 [   2926] SEVERE - #c.i.o.w.i.ToolWindowManagerImpl - Cannot init toolwindow com.redhat.devtools.intellij.tektoncd.ui.toolwindow.WindowToolFactory@29f56bcd [Plugin: com.redhat.devtools.intellij.tekton]
com.intellij.diagnostic.PluginException: Cannot init toolwindow com.redhat.devtools.intellij.tektoncd.ui.toolwindow.WindowToolFactory@29f56bcd [Plugin: com.redhat.devtools.intellij.tekton]
<cut>
Caused by: java.util.ServiceConfigurationError: io.fabric8.kubernetes.api.model.KubernetesResource: io.fabric8.openshift.api.model.ProjectHelmChartRepository not a subtype
<cut>

the cluster has got a projecthelmchartrepositories resource:

$ oc explain projecthelmchartrepositories
GROUP:      helm.openshift.io
KIND:       ProjectHelmChartRepository
VERSION:    v1beta1

DESCRIPTION:
    ProjectHelmChartRepository holds namespace-wide configuration for proxied
    Helm chart repository 

according to intellij the current context is set to the namespace that contains my tasks.

any hints what might cause this issue?

if you need more info please let me know.

thanks!

tosmi avatar Apr 30 '24 14:04 tosmi

Hi @tosmi,

sorry for the late reply. This plugin is de facto deprecated, marking it as such explicitly will happen very soon. This plugin does not support the latest tekton schema and furthermore cannot be used with the latest of our other plugins (intellij-kubernetes, intellij-openshift-connector, intellij-tekton). The limiting factor is the kubernetes-client that's used, they have to all match the same version. Your setup looks fine, you're using this plugin with versions of the other plugins that should work fine with it.

I'm thus kinda out of guesses why you experience this error. Do you maybe have intellij-knative installed, too? Are you aware of other plugins that would use kubernetes-client, maybe in a different version? Can you please provide a full stacktrace with line numbers (you only pasted the uppermost exception, we're missing the root cause)?

adietish avatar Sep 24 '24 09:09 adietish

no worries, thanks for getting back! i'm a little bit confused about the state of tekton support in intellij. is intellij-tekton the same plugin as "Tekton Piplines by Red Hat"? and is this still supported? i'm currently using "Tekton Pipelines by Red Hat" version 1.4.2.294. currently i do not have a cluster with Tekton installed, so if you could clarify the state of the plugin, it's ok to close this issue.

tosmi avatar Sep 24 '24 11:09 tosmi

@tosmi: intellij-tekton is the project-name of the plugin available as Tekton Piplines by Red Hat in marketplace.

We're deprecating the plugin because we are lacking whomen/man-power to bring it further. To keep it alive we'd need substantial work. At the same time, there's very little interest in the developer community (very little downloads, usages).

Maybe our vscode extension can help you where intellij-tekton is outdated. That extension also stalled their progress though.

adietish avatar Sep 24 '24 13:09 adietish

I'm keeping this issue opened to properly reflect the state of this error, which is unresolved. We dont expect any work on it in the immediate future though.

adietish avatar Sep 24 '24 13:09 adietish