Actual: Nothing here is shown

Expected: There should be ability to run main method in this class.
You need a java_binary target.
Project could have a lot of utility main classes which are not designed to be run outside of IDE. For example in my project there is runnable class which generate ids. Also sometimes I write small temporary runnable classes for checking some hypothesis. It would be nice If I would have ability to run it from IDE without changing build scripts.
We build with bazel for a single source of truth. Bazel doesn't build a runnable binary for java_library targets.
Precisely following the Hello World instruction with a fresh install results in this same error. Shame, good IDE will lose students who can't get the HW instructions to work.
I suggest opening an issue with Bazel asking them to support an implicit
output of deploy jar for java_library for this purpose.
Don’t know if they’ll agree but it’s worth a shot.
I definitely agree it’s very comfortable.
For what it’s worth scala_library from rules_scala supports a java only
input set and does have this exact feature already implemented in the plugin
On Tue, 18 Sep 2018 at 19:28 esflood notifications@github.com wrote:
Precisely following the Hello World instruction with a fresh install
results in this same error. Shame, good IDE will lose students who can't
get the HW instructions to work.—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/bazelbuild/intellij/issues/270#issuecomment-422459146,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABUIFyXzIRDTd9wkvAKN81O8Ft1n3e5qks5ucR8igaJpZM4S7Uyr
.
Why is this closed? There is no support for running custom main methods in IntelliJ. Can we reopen this. This is critical for adoption. The maven plugin for intellij automatically detects a main method. Can we get this in asap?
It's not something we've previously viewed as critical, can you add some more information supporting this?
There are technical reasons why this has not been done (detailed above), but we've also seen very little demand for it, both internally and externally.
+1
i wished bazel was supported in eclipse. there so many issues with intellij and bazel . like the one mentioned here. anywas is there a workaround for it ?
Just hit a small wall this this, we really ought to be able do a quick test run of some code via a custom main method.
Most helpful comment
Why is this closed? There is no support for running custom main methods in IntelliJ. Can we reopen this. This is critical for adoption. The maven plugin for intellij automatically detects a main method. Can we get this in asap?