-
-
Notifications
You must be signed in to change notification settings - Fork 286
object of type 'File' has no field 'class_jar'.
error from intellij plugin when syncing scala targets
#277
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
Comments
Thanks! I've been investigating a different problem with the intellij plugin and I don't have the errors you're showing but it makes sense. I'll try to come up with a fix tomorrow and see how it effects my repo |
Here's a small project that shows the error in intellij: https://github.com/kevingessner/scala-intellij-test -- let me know if that doesn't work for you. @ittaiz I saw a different error with older versions of the plugin; something about |
Hi Kevin,
Haven't looked at the project but the error seems quite clear. My errors
are probably related to something else as I'm on a different commit of
rules scala.
I'll have a fix today or tomorrow out, ok?
…On Thu, 14 Sep 2017 at 19:27 Kevin Gessner ***@***.***> wrote:
Here's a small project that shows the error in intellij:
https://github.com/kevingessner/scala-intellij-test -- let me know if
that doesn't work for you.
@ittaiz <https://github.com/ittaiz> I saw a different error with older
versions of the plugin; something about NoneType is not iterable, IIRC.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#277 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABUIFzLV55DnuJgEPbYluYSDcmR7XexIks5siVPUgaJpZM4PWl3g>
.
|
Thanks for the help @ittaiz! @ittaiz @kevingessner @brendandouglas How could we best go about setting up a sample I see tests of |
Don't know, that's an interesting question.
I guess it's a question of how to do IntelliJ plugin tests right?
Once you have such a test we can setup another repo that depends on both.
If you're up for the challenge it can serve us I think
…On Fri, 15 Sep 2017 at 18:03 Gregg Donovan ***@***.***> wrote:
@ittaiz <https://github.com/ittaiz> @kevingessner
<https://github.com/kevingessner> @brendandouglas
<https://github.com/brendandouglas>
How could we best go about setting up a sample rules_scala project like
@kevingessner <https://github.com/kevingessner> setup to run as an
end-to-end test on changes to rules_scala, intellij, or bazel-deps?
I see tests
<https://github.com/bazelbuild/intellij/blob/master/scala/tests/integrationtests/com/google/idea/blaze/scala/sync/ScalaSyncTest.java#L71>
of scala_library in the intellij plugin code, but I'm unsure how they
work, as the intellij plugin doesn't import rules_scala.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#277 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABUIFz0DPKcDAciQ79k_8CPjTitTBheBks5sipHOgaJpZM4PWl3g>
.
|
We do have internal integration tests of our skylark aspect, including scala-specific tests. I haven't yet given any thought to open sourcing these, but it's something we'll eventually do. We're also currently working on setting up end-to-end plugin sync tests, including bazel invocations (our current sync tests mock out the bazel invocations). This integration testing framework may not support external workspaces though. |
@brendandouglas End-to-end plugin sync tests sound like exactly what we need. By "external workspaces" do you mean projects in Git repos other than |
By external workspaces, I mean bazel workspaces other than the primary one being tested (e.g. any external libraries referenced in the bazel WORKSPACE file). |
I've added some aspect tests to the IntelliJ GitHub project (https://github.com/bazelbuild/intellij/tree/master/aspect/testing/tests/src/com/google/idea/blaze/aspect/scala). These scala tests are running against the old version of rules_scala we're using internally (and are currently broken when run against rules_scala HEAD). |
Great!
Can you share why they're broken?
Kevin/Gregg,
Maybe we should open a new issue to articulate our game plan and get
feedback? And then you can continue with the PR like we talked?
…On Tue, 10 Oct 2017 at 19:44 brendandouglas ***@***.***> wrote:
I've added some aspect tests to the IntelliJ GitHub project (
https://github.com/bazelbuild/intellij/tree/master/aspect/testing/tests/src/com/google/idea/blaze/aspect/scala
).
These scala tests are running against the old version of rules_scala we're
using internally (and are currently broken when run against rules_scala
HEAD).
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#277 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABUIF9xbio7YckBqx91yBp5cjaiF2Q8Dks5sq570gaJpZM4PWl3g>
.
|
(Sorry for the slow response.) @brendandouglas Thanks for adding these! Should we be running anything other than @ittaiz @kevingessner -- In the notes for our meeting we had:
So, something like |
Yes but I suggest a small change.
GitHub supports multiple checks per PR, can you check if Travis supports
having two different travis.yml?
This will separate the feedback of breaking rules scala itself to breaking
the integration with IntelliJ.
I wouldn't spend a day on getting it to work but if it's solvable in an
hour or two I think it's a better solution.
…On Sat, 14 Oct 2017 at 20:53 Gregg Donovan ***@***.***> wrote:
(*Sorry for the slow response.*)
@brendandouglas <https://github.com/brendandouglas> Thanks for adding
these! Should we be running anything other than bazel test
//aspect/testing/tests/src/com/google/idea/blaze/aspect/scala/...? I
tried bazel test 'scala/...' but couldn't get it to run locally
<https://gist.github.com/greggdonovan/df01291133322c6597e17bbddd458e58>.
@ittaiz <https://github.com/ittaiz> @kevingessner
<https://github.com/kevingessner> -- In the notes for our meeting we had:
In rules_scala’s travis: cloning the latest of intellij plugin, use
override_repository to test intellij against proposed version of
rules_scala.
So, something like bazel --override_repository io_bazel_rules_scala=$(pwd)
in ./runTests.sh? Does this still sound like a good plan?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#277 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABUIF0TWtDzp3dLkMYMShcN9pUrNLFzKks5ssPUWgaJpZM4PWl3g>
.
|
Update: Using the new aspect integration tests and However, the failure with rules_scala master is different and looks related to macros + ijars expectations. Any ideas? |
@greggdonovan And re multi travis.yml- let's drop it. |
discussion should continue on #308 |
I see this error in the Intellij Bazel console for every
scala_library
target in my project, during Sync:It prevents intellij from analyzing the scala targets, and breaks most code analysis -- e.g. intellij can't find any of the imports. The symptoms look like bazelbuild/intellij#96, but I'm running versions of everything that should include those fixes:
I've traced the problem as far as the
jars
value exported to intellij being incorrect -- it should be a list of structs like[outputs]
, not a list of files.I'll try to put together a small test project I can share. Let me know if you need anything else, or if I should report this to bazelbuild/intellij instead. Thanks!
The text was updated successfully, but these errors were encountered: