Comments (4)
Odd, it seems to work for me. This is a brand new machine since my old was bricked, so I don't have any leftover caches or anything. Did you muck with the project/build.sbt
file to change the version or add more plugins?
haoyi-mbp:~ haoyi$ git clone https://github.com/lihaoyi/workbench-example-app -b todomvc
Cloning into 'workbench-example-app'...
remote: Counting objects: 919, done.
remote: Total 919 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (919/919), 681.07 KiB | 921.00 KiB/s, done.
Resolving deltas: 100% (324/324), done.
Checking connectivity... done.
haoyi-mbp:~ haoyi$ cd workbench-example-app/
haoyi-mbp:workbench-example-app haoyi$ sbt ~fastOptJS
Getting org.scala-sbt sbt 0.13.0 ...
:: retrieving :: org.scala-sbt#boot-app
confs: [default]
43 artifacts copied, 0 already retrieved (12440kB/1520ms)
Getting Scala 2.10.2 (for sbt)...
downloading https://repo1.maven.org/maven2/org/scala-lang/scala-compiler/2.10.2/scala-compiler-2.10.2.jar ...
[SUCCESSFUL ] org.scala-lang#scala-compiler;2.10.2!scala-compiler.jar (3666ms)
downloading https://repo1.maven.org/maven2/org/scala-lang/scala-library/2.10.2/scala-library-2.10.2.jar ...
[SUCCESSFUL ] org.scala-lang#scala-library;2.10.2!scala-library.jar (2030ms)
downloading https://repo1.maven.org/maven2/org/scala-lang/jline/2.10.2/jline-2.10.2.jar ...
[SUCCESSFUL ] org.scala-lang#jline;2.10.2!jline.jar (305ms)
:: retrieving :: org.scala-sbt#boot-scala
confs: [default]
5 artifacts copied, 0 already retrieved (24390kB/110ms)
[info] Loading project definition from /Users/haoyi/workbench-example-app/project
[info] Updating {file:/Users/haoyi/workbench-example-app/project/}workbench-example-app-build...
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[info] downloading http://repo1.maven.org/maven2/com/lihaoyi/workbench_2.10_0.13/0.1.5/workbench-0.1.5.jar ...
[info] [SUCCESSFUL ] com.lihaoyi#workbench;0.1.5!workbench.jar (474ms)
[info] downloading http://repo1.maven.org/maven2/io/spray/spray-can/1.3.1/spray-can-1.3.1.jar ...
[info] [SUCCESSFUL ] io.spray#spray-can;1.3.1!spray-can.jar(bundle) (1374ms)
[info] downloading http://repo1.maven.org/maven2/io/spray/spray-routing/1.3.1/spray-routing-1.3.1.jar ...
[info] [SUCCESSFUL ] io.spray#spray-routing;1.3.1!spray-routing.jar(bundle) (1279ms)
[info] downloading http://repo1.maven.org/maven2/com/typesafe/akka/akka-actor_2.10/2.3.0/akka-actor_2.10-2.3.0.jar ...
[info] [SUCCESSFUL ] com.typesafe.akka#akka-actor_2.10;2.3.0!akka-actor_2.10.jar (816ms)
[info] downloading http://repo1.maven.org/maven2/com/lihaoyi/upickle_2.10/0.2.1/upickle_2.10-0.2.1.jar ...
[info] [SUCCESSFUL ] com.lihaoyi#upickle_2.10;0.2.1!upickle_2.10.jar (342ms)
[info] downloading http://repo1.maven.org/maven2/io/spray/spray-io/1.3.1/spray-io-1.3.1.jar ...
[info] [SUCCESSFUL ] io.spray#spray-io;1.3.1!spray-io.jar(bundle) (303ms)
[info] downloading http://repo1.maven.org/maven2/io/spray/spray-http/1.3.1/spray-http-1.3.1.jar ...
[info] [SUCCESSFUL ] io.spray#spray-http;1.3.1!spray-http.jar(bundle) (571ms)
[info] downloading http://repo1.maven.org/maven2/io/spray/spray-util/1.3.1/spray-util-1.3.1.jar ...
[info] [SUCCESSFUL ] io.spray#spray-util;1.3.1!spray-util.jar(bundle) (273ms)
[info] downloading http://repo1.maven.org/maven2/org/parboiled/parboiled-scala_2.10/1.1.6/parboiled-scala_2.10-1.1.6.jar ...
[info] [SUCCESSFUL ] org.parboiled#parboiled-scala_2.10;1.1.6!parboiled-scala_2.10.jar(bundle) (290ms)
[info] downloading http://repo1.maven.org/maven2/io/spray/spray-httpx/1.3.1/spray-httpx-1.3.1.jar ...
[info] [SUCCESSFUL ] io.spray#spray-httpx;1.3.1!spray-httpx.jar(bundle) (351ms)
[info] downloading http://repo1.maven.org/maven2/com/chuusai/shapeless_2.10/1.2.4/shapeless_2.10-1.2.4.jar ...
[info] [SUCCESSFUL ] com.chuusai#shapeless_2.10;1.2.4!shapeless_2.10.jar (494ms)
[info] Done updating.
[info] Set current project to Example (in build file:/Users/haoyi/workbench-example-app/)
[INFO] [11/26/2014 15:41:27.410] [SystemLol-akka.actor.default-dispatcher-3] [akka://SystemLol/user/IO-HTTP/listener-0] Bound to localhost/127.0.0.1:12345
[info] Updating {file:/Users/haoyi/workbench-example-app/}workbench-example-app...
[info] Resolving jline#jline;2.12 ...
[info] downloading http://dl.bintray.com/content/scala-js/scala-js-releases/org.scala-lang.modules.scalajs/scalajs-library_2.11/0.5.3/srcs/scalajs-library_2.11-sources.jar ...
[info] [SUCCESSFUL ] org.scala-lang.modules.scalajs#scalajs-library_2.11;0.5.3!scalajs-library_2.11.jar(src) (832ms)
[info] downloading http://dl.bintray.com/content/scala-js/scala-js-releases/org.scala-lang.modules.scalajs/scalajs-library_2.11/0.5.3/docs/scalajs-library_2.11-javadoc.jar ...
[info] [SUCCESSFUL ] org.scala-lang.modules.scalajs#scalajs-library_2.11;0.5.3!scalajs-library_2.11.jar(doc) (1471ms)
[info] downloading http://repo1.maven.org/maven2/com/scalatags/scalatags_sjs0.5_2.11/0.4.0/scalatags_sjs0.5_2.11-0.4.0.jar ...
[info] [SUCCESSFUL ] com.scalatags#scalatags_sjs0.5_2.11;0.4.0!scalatags_sjs0.5_2.11.jar (386ms)
[info] Done updating.
[info] Compiling 2 Scala sources to /Users/haoyi/workbench-example-app/target/scala-2.11/classes...
[info] 'compiler-interface' not yet compiled for Scala 2.11.2. Compiling...
[info] Compilation completed in 8.866 s
[warn] there were two feature warnings; re-run with -feature for details
[warn] one warning found
[info] Fast optimizing /Users/haoyi/workbench-example-app/target/scala-2.11/example-fastopt.js
[info] workbench: Checking example-fastopt.js
[info] workbench: Refreshing http://localhost:12345/target/scala-2.11/example-fastopt.js
[success] Total time: 19 s, completed Nov 26, 2014 3:41:46 PM
1. Waiting for source changes... (press enter to interrupt)
from workbench-example-app.
During the initial build, there was an "out of memory" problem. My machine has only 4 GB. I'll give it another go and report back here. Thanks for responding.
from workbench-example-app.
I've increased memory to 6GB. I still get a "java.lang.OutOfMemoryError: PermGen space" when compiling, but compiling again succeeds and the application now runs. Thanks for your help.
from workbench-example-app.
Did you give your jvm more memory? Just because your machine has 4gb doesn't mean it'll use it. I think it defaults to 256mb or 512mb or some relatively small quantity like that
from workbench-example-app.
Related Issues (20)
- Suggestion: Submiting todomvc example to the curation at http://todomvc.com/ HOT 1
- I tried to run your example, but it failed with a "Not a valid re-start" HOT 3
- Switch to newer sbt version to avoid jdk8 issue HOT 4
- build problems HOT 1
- Unresolved dependency HOT 2
- Please upgrade samples to new Scala.RX version HOT 1
- build.sbt with multiple project format
- Bind to localhost/127.0.0.1:12345 failed HOT 2
- todomvc branch - java.io.IOException: This version (0.6.6) of Scala.js IR is not supported. HOT 1
- Fork an example of todomvc that doesn't use Scala.rx HOT 1
- Create fork of client-server app without autowire. HOT 1
- Remove `updateBrowsers` and `bootSnippet` HOT 2
- remove .idea files from git
- refreshBrowsers should work in jvm-js-shared example
- How to change the reference to fastopt.js to opt.js in production
- Demo not working HOT 1
- Akka-http demo doesn't compile
- Basic get started does not work HOT 2
- Basic get started does not work HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from workbench-example-app.