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

Maven Run Configuration on Windows with WSL does not start mirrord #149

Open
0x442E472E opened this issue Sep 13, 2023 · 6 comments · May be fixed by #184
Open

Maven Run Configuration on Windows with WSL does not start mirrord #149

0x442E472E opened this issue Sep 13, 2023 · 6 comments · May be fixed by #184
Assignees
Labels
blocked bug Something isn't working

Comments

@0x442E472E
Copy link

0x442E472E commented Sep 13, 2023

Bug Description

I have a Quarkus 3.2.3.final project that is using Maven 3.9.4. The Run Configuration is of type "Maven" with the goal "quarkus:dev" with an Ubuntu 20.04 running with WSL as run target. I'm using Intellij Ultimate 2023.2.1

When i try to execute that Run Configuration, mirrord seems to be doing nothing at all. I receive no error, log output or pop-up from mirrord.

Steps to Reproduce

  1. Create and download a sample Quarkus project: https://code.quarkus.io/
  2. Import the downloaded project as a Maven project in Intellij
  3. Create a new Run Configuration of type "Maven" with "quarkus:dev" as the goal. Set WSL at the run target.
  4. Enable mirrord using the toolbar button
  5. Start the Run Configuration

Backtrace

No response

Relevant Logs

No response

Your operating system and version

Windows 10 22H2, WSL with Ubuntu 20.04, Plugin Version 3.54.3

Local process

"Maven" Run Configuration

Local process version

No response

Additional Info

No response

@0x442E472E 0x442E472E added the bug Something isn't working label Sep 13, 2023
@aviramha aviramha assigned aviramha and unassigned aviramha Sep 13, 2023
@meowjesty
Copy link
Member

I've had no luck with this so far.

Trying to run the quarkus "RestEasy" project (created from Intellij Ultimate) with mirrord, just resulted in Intellij spinning things and progress bars going for around 1 hour (in wsl).

It tries starting mirrord, but we never get anywhere. Still investigating what could be going on here.

@meowjesty
Copy link
Member

Reproduces on linux as well. The quarkus sample starts, but no sign of mirrord, no sign of agent either.

@meowjesty
Copy link
Member

Looks like we don't hook the correct extension point for quarkus.

It uses the QsMavenRunConfiguration, which doesn't implement ExternalSystemRunConfiguration. Not sure yet what all of this means though.

  • The behavior I'm seeing is:
  1. start the application, no mirrord starting is shown, the agent doesn't start and no breakpoints for mirrord start are hit;
  2. isApplicableFor breakpoint is hit, and applicable is true with the project name;
  3. attachToProcess breakpoint triggers, but configuration is QsMavenRunConfiguration, while we expect it to be ExternalSystemRunConfiguration;
  4. mirrord is never triggered to start;

Even though quarkus comes with Intellij Ultimate, I can't seem to import QsMavenRunConfiguration, think it's just a bundled plugin, and not part of the intellij sdk.

Would appreciate if anyone more familiar with the Intellij SDK and how mirrord-intellij starts could throw some ideas around.

@meowjesty meowjesty linked a pull request Oct 23, 2023 that will close this issue
@meowjesty
Copy link
Member

We've tried extending the quarkus plugin to get access to the command line, but there is no public API there, everything is internal, so out of luck.

Aviram opened an issue in the intellij tracker asking for the stuff we need (QsTargetConfigurationExtension) to be made public (or available for us somehow).

Current issue is blocked until we get some feedback.

@meowjesty
Copy link
Member

They've made it public, but looks like this hasn't been released yet.

I've tried installing the latest version they had, with RC intellij ultimate, but can't access the QsTargetConfigurationExtension yet.

@aviramha
Copy link
Member

aviramha commented Sep 11, 2024

For people stuck on it, two possible workarounds:

  1. Run in terminal mirrord exec OPTIONS -- ./mvn quarkus:dev then attach from IDE
  2. Use Java run configuration and run entrypoint
    image

Unfortunately to add better integration we need Quarkus plugin to have extension point for us to use.

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

Successfully merging a pull request may close this issue.

4 participants