lihaoyi / workbench-example-app

An example application written in ScalaJS using scala-js-dom and scala-js-workbench
204 stars 109 forks source link

build problems #26

Closed jo-pol closed 9 years ago

jo-pol commented 9 years ago

Quite new to both scala and sbt I've been successful with a project of my own using your hands-on-scala-js: my source and live demo

So now I wanted to move on to the next project but it builds neither with a copy of my build.sbt nor with yours, neither on my mac, nor with github's powershell on windows nor with github's bash.

Your project does compile with github's powershell on windows, but not with github's bash:

 ~/Documents/GitHub/workbench-example-app (master)
$ sbt ~fastOptJS
[info] Loading project definition from C:\Users\MyName\Documents\GitHub\workbench-example-app\project
[info] Set current project to Example (in build file:/C:/Users/MyName/Documents/GitHub/workbench-example-app/)
[error] Expected key
[error] Expected '*'
[error] c:/Users/MyName
[error]   ^

My first project used to compile on my mac, but doesn't on windows, even not with github's powershell:

C:\Users\MyName\Documents\GitHub\DiBL\web\grids [master +1 ~0 -0 !]> sbt ~fastOptJS
Java HotSpot(TM) Client VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
C:\Users\MyName\Documents\GitHub\DiBL\web\grids\build.sbt:1: error: not found: value emitSourceMaps
(emitSourceMaps in fullOptJS) := false
 ^
[error] Type error in expression

Some version info:

java version "1.8.0_40" Java(TM) SE Runtime Environment (build 1.8.0_40-b26) Java HotSpot(TM) Client VM (build 25.40-b25, mixed mode)

sbt launcher version 0.13.8

Any suggestions?

jo-pol commented 9 years ago

As for not being able to build my own project at all with an exact copy if the build.sbt: Mea culpa, I git-ignored the project folder which appears to be essential, mistook it for the .project of eclipse, the latter is not required for maven projects.

As for not being being able to build with bash on windows: that problem remains but I suppose that belongs somewhere else.