所以我正在学习本教程:
https://www.playframework.com/documentation/2.3.x/Installing
一切似乎都已安装 - 即所有命令都有效,但是当我尝试调用时:
activator new my-first-app play-scala
我得到以下信息:
Fetching the latest list of templates...
Could not fetch the updated list of templates. Using the local cache.
Check your proxy settings or increase the timeout. For more details see:
http://typesafe.com/activator/docs
OK, application "another-app" is being created using the "play-scala" template.
akka.pattern.AskTimeoutException: Ask timed out on [Actor[akka://default/user/template-cache#1575831997]] after [10000 ms]
at akka.pattern.PromiseActorRef$$anonfun$1.apply$mcV$sp(AskSupport.scala:333)
at akka.actor.Scheduler$$anon$7.run(Scheduler.scala:117)
at scala.concurrent.Future$InternalCallbackExecutor$.unbatchedExecute(Future.scala:599)
at scala.concurrent.BatchingExecutor$class.execute(BatchingExecutor.scala:109)
at scala.concurrent.Future$InternalCallbackExecutor$.execute(Future.scala:597)
at akka.actor.LightArrayRevolverScheduler$TaskHolder.executeTask(Scheduler.scala:467)
at akka.actor.LightArrayRevolverScheduler$$anon$8.executeBucket$1(Scheduler.scala:419)
at akka.actor.LightArrayRevolverScheduler$$anon$8.nextTick(Scheduler.scala:423)
at akka.actor.LightArrayRevolverScheduler$$anon$8.run(Scheduler.scala:375)
at java.lang.Thread.run(Thread.java:744)
什么也没有发生。
我只是将它安装在同一网络下我家的 PC 上,所以我认为我的连接不是问题。我也没有使用代理..
有什么想法吗?我已经尝试让这个工作一天多了。
顺便说一下,我在 OSX Yosemite 上。
最佳答案
我有时也会超时,尤其是在大学里使用一些草率的 WLAN 工作时。 有两种类型的激活器,通常的轻量级激活器和离线版本。在第二种情况下,所有存储库都存在,因此激活器不需要从互联网上收集任何东西。
当您转到 https://www.playframework.com/download 时...寻找离线发行版(大约 400MB)并像普通激活器一样安装它。 如果这解决了您的问题,则激活器尝试从存储库中获取某些内容时出现问题(您说您可以运行该项目但服务器超时)。
[编辑]:您还可以将超时设置为 30 秒,看看是否有帮助
activator -Dactivator.timeout=30s new "project name"
关于macos - 无法在我的 Mac 上使用激活器 - 当我尝试从模板制作应用程序时出现超时异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27605239/