-
Notifications
You must be signed in to change notification settings - Fork 10
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
IntelliJ plugin fails with message "Canceled" only on Java projects. #160
Comments
Sorry to hear about the issue - I'm pretty sure the reason you get it is because you didn't specify target in your mirrord config file. When running Java applications, our plugin can't show the interactive dialog so you have to specify it in the config file. |
I set the target to a specific pod in the config, and now it fails but with a different error message. The popups says "mirrord failed" now instead of "Canceled", and the IntelliJ logs show a little more. Here's the relevant IntelliJ logs output.
Also, here's what my mirrord.json file looks like: |
Oops, I think I had the wrong context set while trying to run with that target, so probably was failing because the pod name was wrong. Switching to the right context, I now get this error instead: `/var/home/hellwigt/.sdkman/candidates/java/11.0.20-amzn/bin/java -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:55755,suspend=y,server=n -javaagent:/var/home/hellwigt/.local/share/JetBrains/Toolbox/apps/intellij-idea-ultimate/plugins/java/lib/rt/debugger-agent.jar -Dfile.encoding=UTF-8 -classpath /var/home/hellwigt/dev/untitled/out/production/untitled:/var/home/hellwigt/.local/share/JetBrains/Toolbox/apps/intellij-idea-ultimate/lib/idea_rt.jar Main Process finished with exit code 1 Seems like another configuration issue I'm missing? Just not sure what. |
I assume it's trying to load the JAR from the remote pod.
{
"feature": {
"fs": {
"local": ["\\.jar$"]
}
}
}
{
"feature": {
"fs": "localwithoverrides"
}
} |
Went straight to the 2nd option, since I don't need remote file system. Worked like a charm! Thank you. |
I'm quite not sure how come you didn't get the other error messages - any case you missed those? IntelliJ might stack it for you - can you make sure you don't see those anywhere? |
Yep, didn't see any other error messages anywhere. Even the idea.log file didn't have anything for that last issue of the missing JAR file. Plugin version is 3.55.0. |
Can you tell us if it still happens, and if it does, would you be kind to jump on a call to debug together as we can't manage to reproduce it on our end? |
Yeah, so to recap, the issue I encountered here was that I'm unable to run a java microservice with mirrord without specifying a target pod, and also setting "fs": "localwithoverrides". This is still the same behavior I'm experiencing today. It would be convenient to be able to run java microservices without specifying a target, so definitely happy to help debug that as availability allows. |
Hey @hellwigt-eq - the problem is that we can't show a dialog from the extension point IntelliJ provides, so it's not really fixable from our side. |
I also run python microservices within intellij (not pycharm) with mirrord and those can run targetless. Does intellij do something different for python than java? |
Yes, each run configuration provides different extensionpoint we use to provide our functionality. |
Would setting it to run targetless when a target isn't specified in the config file be a sane option, rather than having it fail? |
I think it'd be a weird behavior that can confuse users even more (since app will launch in weird configuration) |
We've opened an issue upstream, please upvote it on YouTrack to make JetBrains help us :) |
Bug Description
I've been using the mirrord plugin with Intellij successfully with Python projects for some time now, but just tried to run it with a Java project today, and it fails instantly with this cryptic popup:
or this:
I verified that it's not project specific, this is repeatable on a blank brand new Java project.
Steps to Reproduce
Backtrace
No response
Relevant Logs
Your operating system and version
Fedora 38 Silverblue
Local process
No idea, I'm just clicking the run/debug icons on a default java project.
Local process version
No response
Additional Info
No response
The text was updated successfully, but these errors were encountered: