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

Intellij IDE shows 'no name' for a kotlin-bazel project #227

Open
barrylapthorn opened this issue May 8, 2023 · 1 comment
Open

Intellij IDE shows 'no name' for a kotlin-bazel project #227

barrylapthorn opened this issue May 8, 2023 · 1 comment

Comments

@barrylapthorn
Copy link

barrylapthorn commented May 8, 2023

I tried the java / junit5 / bazel sample, and it seems to load and run fine in Intellij.

Along similar lines I came up with a trivial kotlin/bazel version here:

https://github.com/barrylapthorn/kotlin-bazel-junit5

For reasons I haven't been able to figure out the kotlin annotated test is displayed as 'no name'. This is surprising as I've used an equivalent java/bazel/junit5 project that has no such problems.

See bottom left corner here:

Screenshot from 2023-05-08 15-20-10

Steps to reproduce:

  • clone example repo
  • open latest Intellij
  • install bazel plugin (possibly restart)
  • import the above repo as a bazel project
  • open BUILD
  • click the play button in the gutter (see image).

It's entirely possibly I'm using an incorrect maven dependency.

What I'd like to see is not '<no name>' but say hello in the IDE output.

I'd also like to see a kotlin / bazel example in the samples repo if possible.

If you feel this is the wrong owner for this problem, happy to reopen perhaps in the bazel plugin repo instead.

@marcphilipp
Copy link
Member

@barrylapthorn I'm afraid there are no Bazel experts here. I recommend asking in https://github.com/bazel-contrib/rules_jvm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants