Upgrade Scala

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Upgrade Scala

Aaron Spike
What is the best method for users to upgrade Scala when the version used to build Orbeon Forms is changed?

Aaron Spike

This electronic communication, including any attached documents, may contain confidential and/or legally privileged information that is intended only for use by the recipient(s) named above. If you have received this communication in error, please notify the sender immediately and delete the communication and any attachments. Views expressed by the author do not necessarily represent those of Martin Luther College.

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: Upgrade Scala

Erik Bruchez
Administrator
When building with ant, the compiler and library are checked into the `lib` folder. [^1] So updating the source and building as usual will work.

When building with IntelliJ, things should work out of the box too: there is a scala-sdk-2.11.6 library which points to the ~/.ivy2 directory, e.g.:

    file://$USER_HOME$/.ivy2/cache/org.scala-lang/scala-compiler/jars/scala-compiler-2.11.6.jar

I think that the IntelliJ Scala plugin will automatically downloads the files if needed.

-Erik

[^1]: We realize that this is very old school and that we need to move to sbt, see https://github.com/orbeon/orbeon-forms/issues/1585.
Reply | Threaded
Open this post in threaded view
|

Re: Upgrade Scala

Aaron Spike
I don't know what I'm doing wrong, but the compiler for 2.11.6 does not get downloaded into the ivy cache. I tried to make my own ivy.xml file to force it but failed there too. I'll keep futzing. If there's an officially sanctioned way to work this it would make an excellent addition to the building docs. :-)

Aaron Spike

On Tuesday, May 12, 2015 at 11:53:33 AM UTC-5, ebruchez wrote:
When building with ant, the compiler and library are checked into the `lib`
folder. [^1] So updating the source and building as usual will work.

When building with IntelliJ, things should work out of the box too: there is
a scala-sdk-2.11.6 library which points to the ~/.ivy2 directory, e.g.:

   
file://$USER_HOME$/.ivy2/cache/org.scala-lang/scala-compiler/jars/scala-compiler-2.11.6.jar

I think that the IntelliJ Scala plugin will automatically downloads the
files if needed.

-Erik

[^1]: We realize that this is very old school and that we need to move to
sbt, see <a href="https://github.com/orbeon/orbeon-forms/issues/1585" target="_blank" rel="nofollow" onmousedown="this.href='https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Forbeon%2Forbeon-forms%2Fissues%2F1585\46sa\75D\46sntz\0751\46usg\75AFQjCNEHm6tOfnUuH8EGVYRmXJhNpnOHgw';return true;" onclick="this.href='https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Forbeon%2Forbeon-forms%2Fissues%2F1585\46sa\75D\46sntz\0751\46usg\75AFQjCNEHm6tOfnUuH8EGVYRmXJhNpnOHgw';return true;">https://github.com/orbeon/orbeon-forms/issues/1585.

--
View this message in context: <a href="http://discuss.orbeon.com/Upgrade-Scala-tp4659910p4659911.html" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fdiscuss.orbeon.com%2FUpgrade-Scala-tp4659910p4659911.html\46sa\75D\46sntz\0751\46usg\75AFQjCNGaCqXtfnZTu2L5hNAm2VUED0u-qw';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fdiscuss.orbeon.com%2FUpgrade-Scala-tp4659910p4659911.html\46sa\75D\46sntz\0751\46usg\75AFQjCNGaCqXtfnZTu2L5hNAm2VUED0u-qw';return true;">http://discuss.orbeon.com/Upgrade-Scala-tp4659910p4659911.html
Sent from the Orbeon Forms community mailing list mailing list archive at Nabble.com.

This electronic communication, including any attached documents, may contain confidential and/or legally privileged information that is intended only for use by the recipient(s) named above. If you have received this communication in error, please notify the sender immediately and delete the communication and any attachments. Views expressed by the author do not necessarily represent those of Martin Luther College.

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: Upgrade Scala

Aaron Spike
When I upgraded IntelliJ a dialog poped up that allowed me to configure the Scala plugin. It appears to be working again. Now I just need to figure out where to find this dialog in the IDE UI.

Aaron Spike

On Tuesday, May 12, 2015 at 12:21:09 PM UTC-5, Aaron Spike wrote:
I don't know what I'm doing wrong, but the compiler for 2.11.6 does not get downloaded into the ivy cache. I tried to make my own ivy.xml file to force it but failed there too. I'll keep futzing. If there's an officially sanctioned way to work this it would make an excellent addition to the building docs. :-)

Aaron Spike

On Tuesday, May 12, 2015 at 11:53:33 AM UTC-5, ebruchez wrote:
When building with ant, the compiler and library are checked into the `lib`
folder. [^1] So updating the source and building as usual will work.

When building with IntelliJ, things should work out of the box too: there is
a scala-sdk-2.11.6 library which points to the ~/.ivy2 directory, e.g.:

   
file://$USER_HOME$/.ivy2/cache/org.scala-lang/scala-compiler/jars/scala-compiler-2.11.6.jar

I think that the IntelliJ Scala plugin will automatically downloads the
files if needed.

-Erik

[^1]: We realize that this is very old school and that we need to move to
sbt, see <a href="https://github.com/orbeon/orbeon-forms/issues/1585" rel="nofollow" target="_blank" onmousedown="this.href='https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Forbeon%2Forbeon-forms%2Fissues%2F1585\46sa\75D\46sntz\0751\46usg\75AFQjCNEHm6tOfnUuH8EGVYRmXJhNpnOHgw';return true;" onclick="this.href='https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Forbeon%2Forbeon-forms%2Fissues%2F1585\46sa\75D\46sntz\0751\46usg\75AFQjCNEHm6tOfnUuH8EGVYRmXJhNpnOHgw';return true;">https://github.com/orbeon/orbeon-forms/issues/1585.

--
View this message in context: <a href="http://discuss.orbeon.com/Upgrade-Scala-tp4659910p4659911.html" rel="nofollow" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fdiscuss.orbeon.com%2FUpgrade-Scala-tp4659910p4659911.html\46sa\75D\46sntz\0751\46usg\75AFQjCNGaCqXtfnZTu2L5hNAm2VUED0u-qw';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fdiscuss.orbeon.com%2FUpgrade-Scala-tp4659910p4659911.html\46sa\75D\46sntz\0751\46usg\75AFQjCNGaCqXtfnZTu2L5hNAm2VUED0u-qw';return true;">http://discuss.orbeon.com/Upgrade-Scala-tp4659910p4659911.html
Sent from the Orbeon Forms community mailing list mailing list archive at Nabble.com.

This electronic communication, including any attached documents, may contain confidential and/or legally privileged information that is intended only for use by the recipient(s) named above. If you have received this communication in error, please notify the sender immediately and delete the communication and any attachments. Views expressed by the author do not necessarily represent those of Martin Luther College.

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: Upgrade Scala

Erik Bruchez
Administrator
If you go to Project Settings → Libraries, you should see a Scala SDK entry there.

-Erik