telepresenceio / telepresence

Local development against a remote Kubernetes or OpenShift cluster
https://www.telepresence.io
Other
6.62k stars 521 forks source link

IntelliJ/JetBrains plugin does not show "intercepts" window in run configuration for Rust or Rails projects #3445

Closed SimenB closed 3 months ago

SimenB commented 12 months ago

Describe the bug

For reference, this is the plugin I've installed: https://plugins.jetbrains.com/plugin/22844-telepresence, both into IDEA Ultimate (where I write Ruby on Rails) and RustRover (where I write Rust). The behavior is the same in both IDEs.

I correctly get the Telepresence tool window

image

And I can use this to set up intercepts - this works šŸ‘

However, when I try to use the run configuration shown in a gif on the plugin page, it does not appear for me (this is a screenshot from your docs, not my machine)

image

I do get this if I create a run configuration of type "Application" (like shown in the screenshot), but not for .e.g. Rust or RoR projects.

image

My current workaround is to run telepresence intercept on the command line using --env, and then copypasting the env output into the "Environment variables" builtin field. But I'd love to be able to skip that step and select an intercept right from the run configuration

To Reproduce Steps to reproduce the behavior:

  1. Install Telepresence plugin into a JetBrains IDE
  2. See that the Telepresence tool window shows up and allows you to setup intercepts
  3. Go to run configuration to select and intercept to use as basis for environment variables
  4. It is nowhere to be seen

Expected behavior

I expect to see the tool window in run configurations

Versions (please complete the following information):

$ telepresence version
Client         : v2.17.1
Root Daemon    : v2.17.1
User Daemon    : v2.17.1
Traffic Manager: v2.17.0

macOS 14.1.1, arm64

Kubernetes is running in EKS

$ kubectl version
Client Version: v1.28.4
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
Server Version: v1.25.15-eks-4f4795d

VPN-related bugs: N/A

Additional context I originally brought this up on your Slack, and was asked to file a bug report here šŸ™‚

thallgren commented 12 months ago

What are the versions of your IDEs? You specificly mention Rust and Rails. Have you seen this workin OK with other languages? I'm asking because the plug-in is supposed to be languag agnostic, so if that's working, then it might also point to some compatibility issues with different versions of the IDE.

SimenB commented 12 months ago

I only see the "intercept" section for "Application" run configuration (which is Java), I don't see it for any others (checked RoR, Rust and Node.js). I haven't tried it though, as I don't have any Java projects

IntelliJ IDEA 2023.3 Beta (Ultimate Edition)
Build #IU-233.11799.67, built on November 22, 2023
RustRover 2023.3 EAP
Build #RR-233.10527.212, built on November 25, 2023
Strayfe commented 11 months ago

My findings align with @SimenB, this is affecting the adoption of this product for our typical workflow of JetBrains Rider and dotnet solutions.

For completeness, I have tested the following IDE's; ticked are those I have found the intercepts option to be available in at least one type of run/debug configuration:

IDE
IntelliJ IDEA Ultimate āœ”
IntelliJ IDEA Community āœ”
GoLand āœ”
WebStorm
PyCharm Professional
PyCharm Community
CLion
CLion Nova
RustRover
PhpStorm
RubyMine
MPS
Rider
github-actions[bot] commented 3 months ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment, or this will be closed in 7 days.