lihaoyi / scala-js-fiddle

Source code for Scala.jsFiddle
www.scala-js-fiddle.com
85 stars 62 forks source link

Has it broken? #6

Closed fancellu closed 10 years ago

fancellu commented 10 years ago

Previously ok code not working

http://www.scala-js-fiddle.com/gist/9405209/Turmites.scala

http://www.scala-js-fiddle.com/gist/9131923

Dino.

sjrd commented 10 years ago

It needs the @JSExport annotation on the ScalaJSExample object as well as its main method.

import scala.scalajs.js.annotation.JSExport
...
@JSExport
object ScalaJSExample {
  ...

  @JSExport
  def main(args: Array[String]): Unit = {
    ...
  }
}
fancellu commented 10 years ago

Thanks.

lihaoyi commented 10 years ago

Yeah, sorry I didn't send out any emails or messages about the breaking change, I figured that few people use it and those that do use it (and who care) would come and let me know, as you've do so here =P

fancellu commented 10 years ago

Down again, even more now?

http://www.scala-js-fiddle.com/

sjrd commented 10 years ago

Works fine for me.

fancellu commented 10 years ago

How odd. Was dead for me on chrome and IE. Broken links, wouldn't come up, even in anonymous mode etc.

Had to ctrl-refresh to get it working in chrome. Never had that before.

Still refuses to work in IE. Perhaps my PC has gone mad.

lihaoyi commented 10 years ago

I bet it's some caching issue; try clearing cache and reloading?

fancellu commented 10 years ago

Yes. Something bonkers. If others don't see it then it's just me.

Dino On 2 Apr 2014 16:18, "Li Haoyi" notifications@github.com wrote:

I bet it's some caching issue; try clearing cache and reloading?

Reply to this email directly or view it on GitHubhttps://github.com/lihaoyi/scala-js-fiddle/issues/6#issuecomment-39343063 .