tgambet / sbt-typescript Goto Github PK
View Code? Open in Web Editor NEWTypeScript compiler in SBT
License: Other
TypeScript compiler in SBT
License: Other
I added the plugin from publish-local with addSbtPlugin("com.typesafe.sbt" % "sbt-typescript" % "1.0.0")
I have node installed, and typescript installed through npm. Both are on my path.
I'm running
show web-assets:typescript
last web-assets:typescript
when I have also enabled sbt-jshint
I get
tgambet.typescript.JsTaskFailure:
module.js:340
throw err;
^
Error: Cannot find module 'C:\Users\Martijn\Scala\MyCoolProject\project\target\typescript\tsc.js'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:906:3
at tgambet.typescript.MySbtJsTask$$anonfun$tgambet$typescript$MySbtJsTask$$executeJs$1.apply(MySbtJsTask.scala:134)
at tgambet.typescript.MySbtJsTask$$anonfun$tgambet$typescript$MySbtJsTask$$executeJs$1.apply(MySbtJsTask.scala:120)
at scala.util.Success$$anonfun$map$1.apply(Try.scala:206)
at scala.util.Try$.apply(Try.scala:161)
at scala.util.Success.map(Try.scala:206)
at scala.concurrent.Future$$anonfun$map$1.apply(Future.scala:235)
at scala.concurrent.Future$$anonfun$map$1.apply(Future.scala:235)
at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:32)
at scala.concurrent.impl.ExecutionContextImpl$$anon$3.exec(ExecutionContextImpl.scala:107)
at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)
[error] (web-assets:typescript) tgambet.typescript.JsTaskFailure:
[error] module.js:340
[error] throw err;
[error] ^
[error] Error: Cannot find module 'C:\Users\Martijn\Scala\MyCoolProject\project\target\typescript\tsc.js'
when I don't have sbt-jshint
installed, I get
> web-assets:assets
[info] TypeScript compiling on 2 source(s)
[ERROR] [06/29/2014 17:10:23.445] [sbt-web-akka.actor.default-dispatcher-3] [akka://sbt-web/user/$a] Dispatcher [blocking-process-io-dispatcher] not configured for path akka://sbt-web/user/$a/process
akka.ConfigurationException: Dispatcher [blocking-process-io-dispatcher] not configured for path akka://sbt-web/user/$a/process
at akka.actor.LocalActorRefProvider.actorOf(ActorRefProvider.scala:713)
at akka.actor.dungeon.Children$class.makeChild(Children.scala:207)
at akka.actor.dungeon.Children$class.actorOf(Children.scala:38)
at akka.actor.ActorCell.actorOf(ActorCell.scala:369)
at com.typesafe.jse.LocalEngine$$anonfun$receive$1.applyOrElse(LocalEngine.scala:23)
at akka.actor.Actor$class.aroundReceive(Actor.scala:465)
at com.typesafe.jse.Engine.aroundReceive(Engine.scala:14)
at akka.actor.ActorCell.receiveMessage(ActorCell.scala:516)
at akka.actor.ActorCell.invoke(ActorCell.scala:487)
at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:238)
at akka.dispatch.Mailbox.run(Mailbox.scala:220)
at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:393)
at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)
[ERROR] [06/29/2014 17:10:23.447] [sbt-web-akka.actor.default-dispatcher-3] [akka://sbt-web/user/$a] Dispatcher [blocking-process-io-dispatcher] not configured for path akka://sbt-web/user/$a/process
akka.ConfigurationException: Dispatcher [blocking-process-io-dispatcher] not configured for path akka://sbt-web/user/$a/process
at akka.actor.LocalActorRefProvider.actorOf(ActorRefProvider.scala:713)
at akka.actor.dungeon.Children$class.makeChild(Children.scala:207)
at akka.actor.dungeon.Children$class.actorOf(Children.scala:38)
at akka.actor.ActorCell.actorOf(ActorCell.scala:369)
at com.typesafe.jse.LocalEngine$$anonfun$receive$1.applyOrElse(LocalEngine.scala:23)
at akka.actor.Actor$class.aroundReceive(Actor.scala:465)
at com.typesafe.jse.Engine.aroundReceive(Engine.scala:14)
at akka.actor.ActorCell.receiveMessage(ActorCell.scala:516)
at akka.actor.ActorCell.invoke(ActorCell.scala:487)
at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:238)
at akka.dispatch.Mailbox.run(Mailbox.scala:220)
at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:393)
at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)
[trace] Stack trace suppressed: run last web-assets:typescript for the full output.
[error] (web-assets:typescript) java.util.concurrent.TimeoutException: Futures timed out after [60 seconds]
[error] Total time: 60 s, completed Jun 29, 2014 5:11:23 PM
and when running last
> last web-assets:typescript
java.util.concurrent.TimeoutException: Futures timed out after [60 seconds]
at scala.concurrent.impl.Promise$DefaultPromise.ready(Promise.scala:219)
at scala.concurrent.impl.Promise$DefaultPromise.result(Promise.scala:223)
at scala.concurrent.Await$$anonfun$result$1.apply(package.scala:107)
at scala.concurrent.BlockContext$DefaultBlockContext$.blockOn(BlockContext.scala:53)
at scala.concurrent.Await$.result(package.scala:107)
at tgambet.typescript.MySbtJsTask$$anonfun$myJsTask$1.apply(MySbtJsTask.scala:99)
at tgambet.typescript.MySbtJsTask$$anonfun$myJsTask$1.apply(MySbtJsTask.scala:59)
at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47)
at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:42)
at sbt.std.Transform$$anon$4.work(System.scala:64)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237)
at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:18)
at sbt.Execute.work(Execute.scala:244)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237)
at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:160)
at sbt.CompletionService$$anon$2.call(CompletionService.scala:30)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
[error] (web-assets:typescript) java.util.concurrent.TimeoutException: Futures timed out after [60 seconds]
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.