scala.version property and scala version used on runtime #803
Replies: 7 comments
-
Disclaimer: I'm not the owner of this project and have only been a maintainer for a few years, so I lack all the history here. First, thanks for your great work supporting this plugin in IntelliJ. IMHO, lots of features in this plugin are either useless, nonsensical or overly complicated while having low value. I think this I'm not sure how feasible a version 2 of this plugin is, where we would drop lots of boilerplate. In the meantime, I think you should restrain from supporting this option. |
Beta Was this translation helpful? Give feedback.
-
What do you mean by
? Also it is not entirely clear to me how it happens that when I add |
Beta Was this translation helpful? Give feedback.
-
I'm saying that this |
Beta Was this translation helpful? Give feedback.
-
Hmm okey, it would be a big simplification for us, but it's supported now and we cannot go beyond how the |
Beta Was this translation helpful? Give feedback.
-
This option is purely optional. Personally I never use it. I would recommend not supporting it. What would be nice would be that other community members would join in creating a list of features that must be kept and features that must be dropped so we can clean up and release a new major version. |
Beta Was this translation helpful? Give feedback.
-
It will be very helpful. Do you have a community discord, or all questions go directly to github? btw do you know maybe what is the behaviour when |
Beta Was this translation helpful? Give feedback.
-
No discord. And sadly very few active users.
Honestly, no idea. This feature predates by far my joining here and I've never used it as it's really not the maven idiomatic way to magically tweak the classpath. And I suspect whatever the existing behavior is, it's broken. |
Beta Was this translation helpful? Give feedback.
-
Hello,
I'm developing IntelliJ Scala Plugin and I want to improve the Maven support.
I have a question about the
scala.version
property. I noticed that if it the property is defined, and there is no scala library in the dependencies (even in transitive dependencies) then the scala code can be compiled, but cannot be executed. And it is compiled with with the exact version from the properties. So you somehow add the scala library to the classpath.Question: Why if you under the hood add the scala library for compilation it's not listed in the dependencies?
The situation is changing when there is any scala library in the dependencies (even in transitive deps) no matter with which scope. So e.g. If I have transitive scala library dependency with the
test
scope, I can run the main class from the sources, and not just from tests.Such a thing could not be done when we only had the
scala.version
property, without any scala library in the dependencies.Question: If there is any scala library in the dependencies, no matter with which scope, then how do you choose which one should be used on runtime? (I particularly have a case in mind where there is no scala library with the compile scope)
Thank you in advance for your answer :)
Beta Was this translation helpful? Give feedback.
All reactions