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

IDE hangs then fails #170

Open
mdemianenko opened this issue Oct 4, 2023 · 1 comment
Open

IDE hangs then fails #170

mdemianenko opened this issue Oct 4, 2023 · 1 comment
Labels
bug Something isn't working macos

Comments

@mdemianenko
Copy link

Bug Description

Hello!

I am running a kotlin project with gradle. When using the default run/debug config of intellij idea, the IDE hangs for 2-3 minutes and then errors out with:
image

If I use gradle task in the run/debug config, plugin works

My mirrord conifg:

{
  "operator": false,
  "target": {
    "path": {
      "deployment": "my-deploy"
    }
  },
  "feature": {
    "fs": {
      "mode": "localwithoverrides"
    },
    "network": {
      "incoming": {
        "mode": "steal",
        "ignore_localhost": true,
        "port_mapping": [
          [50051, 50051],
          [8080, 8080]
        ],
        "ignore_ports": [
          9001
        ]
      },
      "outgoing": {
        "ignore_localhost": true
      }
    }
  },
  "agent": {
    "log_level": "mirrord=trace,warn",
    "image": "ghcr.io/metalbear-co/mirrord:3.70.0",
    "ttl": 30,
    "ephemeral": false,
    "communication_timeout": 30,
    "startup_timeout": 360,
    "network_interface": "eth0",
    "flush_connections": true
  }
}

Mirrord cli/agent version: 3.70.1
OS:
image

Steps to Reproduce

See the bug description

Backtrace

No response

Relevant Logs

No response

Your operating system and version

Mac pro 2021, ventura 13.5.2

Local process

./gradlew server:run --debug-jvm

Local process version

No response

Additional Info

No response

@mdemianenko mdemianenko added the bug Something isn't working label Oct 4, 2023
@meowjesty meowjesty self-assigned this Oct 19, 2023
@meowjesty
Copy link
Member

Wasn't able to reproduce this on linux.

Tried a new kotlin project created from Intellij Idea Ultimate, with the config provided by @mdemianenko (changing the target to one of my deployments), and the hanging doesn't occur.

If I add the --debug-jvm args to the runner command line, mirrord doesn't run the sample app though, it's running something else (maybe gradle? not sure), and the "Run" window keeps showing spinning progress as if the :run task is never finished (IDE remains responsive though).

Could you please provide some more information, like JDK, kotlin version, a sample project with all of this already setup would be incredibly helpful as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working macos
Projects
None yet
Development

No branches or pull requests

3 participants