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

Some Hydra sbt plugin error #2870

Closed
travisbrown opened this issue Jun 1, 2019 · 3 comments
Closed

Some Hydra sbt plugin error #2870

travisbrown opened this issue Jun 1, 2019 · 3 comments

Comments

@travisbrown
Copy link
Contributor

I have no idea what this is about but it's annoying. It's happening on current master on my machine.

$ sbt prePR
[info] Loading settings for project global-plugins-build from sbt-updates.sbt ...
[info] Loading global plugins from /home/travis/.sbt/1.0/plugins/project
[info] Loading settings for project global-plugins from sbt-updates.sbt ...
[info] Loading global plugins from /home/travis/.sbt/1.0/plugins
Waiting for lock on /home/travis/.ivy2/.sbt.ivy.lock to be available...
[info] Loading settings for project cats-build-build from plugins.sbt ...
[info] Loading project definition from /home/travis/code/projects/cats/project/project
[info] Loading settings for project cats-build from build.sbt,plugins.sbt ...
[info] Loading project definition from /home/travis/code/projects/cats/project
[info] Loading settings for project cats from build.sbt,version.sbt ...
[info] Resolving key references (23201 settings) ...
[info] Set current project to cats (in build file:/home/travis/code/projects/cats/)
[info] sbt started with 3818 MB memory heap
[info] Checking for Hydra latest version at https://repo.triplequote.com/artifactory/libs-release/...
[info] You are running the latest Hydra release.
[info] The Triplequote Hydra Scala compiler won't be used because the /home/travis/.triplequote/hydra.license is missing. Instead, compilation is carried out as usual with the vanilla Scala compiler.
[success] Total time: 17 s, completed Jun 1, 2019 7:56:45 AM
[success] Total time: 7 s, completed Jun 1, 2019 7:56:52 AM
[success] Total time: 1 s, completed Jun 1, 2019 7:56:53 AM
[info] Setting Scala version to 2.11.12 on 29 projects.
[info] Excluded 1 projects, run ++ 2.11.12 -v for more details.
[info] Reapplying settings...
[info] Set current project to cats (in build file:/home/travis/code/projects/cats/)
[info] sbt started with 3818 MB memory heap
[info] Checking for Hydra latest version at https://repo.triplequote.com/artifactory/libs-release/...
[info] You are running the latest Hydra release.
[info] The Triplequote Hydra Scala compiler won't be used because the /home/travis/.triplequote/hydra.license is missing. Instead, compilation is carried out as usual with the vanilla Scala compiler.
[error] java.util.NoSuchElementException
[error]         at scala.collection.LinearSeqOptimized.last(LinearSeqOptimized.scala:146)
[error]         at scala.collection.LinearSeqOptimized.last$(LinearSeqOptimized.scala:145)
[error]         at scala.collection.immutable.List.last(List.scala:85)
[error]         at com.triplequote.internal.sbt.hydra.compat.SbtCompatImpl$.lastRemainingCommand(SbtCompatImpl.scala:141)
[error]         at com.triplequote.sbt.hydra.command.HydraLocalDashboard$.maybeStartDashboard(HydraLocalDashboard.scala:107)
[error]         at com.triplequote.sbt.hydra.HydraPlugin$.$anonfun$globalSettings$6(HydraPlugin.scala:187)
[error]         at scala.Function1.$anonfun$andThen$1(Function1.scala:52)
[error]         at scala.Function1.$anonfun$compose$1(Function1.scala:44)
...
This was referenced Jun 1, 2019
@kailuowang
Copy link
Contributor

This is a regression from the Hydra plugin, it shouldn't throw an exception when the license is missing. It should've carried on to use the regular scalac. cc @dotta

@dragos
Copy link

dragos commented Jun 1, 2019

Very sorry about this. Will cut a release with a fix ASAP (The regression is in 2.1.5, 2.1.4 is fine).

@dragos
Copy link

dragos commented Jun 1, 2019

2.1.6 is out with a fix.

@LukaJCB LukaJCB closed this as completed Oct 16, 2019
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

4 participants