Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running S2JSPluginRunner object scala not found #1

Open
guancio opened this issue Apr 8, 2011 · 2 comments
Open

Running S2JSPluginRunner object scala not found #1

guancio opened this issue Apr 8, 2011 · 2 comments

Comments

@guancio
Copy link

guancio commented Apr 8, 2011

When I use sbt to package s2js everything goes fine and the scala dependencies are download into project/boot

I manually create the bin directory, but when I execute run inside sbt I receive the following error:

[info] == run ==
[info] Running com.gravitydev.s2js.runner.S2JSPluginRunner
scala.tools.nsc.MissingRequirementError: object scala not found.
at scala.tools.nsc.symtab.Definitions$definitions$.getModuleOrClass(Definitions.scala:513)
at scala.tools.nsc.symtab.Definitions$definitions$.ScalaPackage(Definitions.scala:37)
at scala.tools.nsc.symtab.Definitions$definitions$.ScalaPackageClass(Definitions.scala:38)
at scala.tools.nsc.symtab.Definitions$definitions$.UnitClass(Definitions.scala:83)
at scala.tools.nsc.symtab.Definitions$definitions$.init(Definitions.scala:785)
at scala.tools.nsc.Global$Run.(Global.scala:597)
at com.gravitydev.s2js.runner.S2JSPluginRunner$.main(S2JSPluginRunner.scala:58)
at com.gravitydev.s2js.runner.S2JSPluginRunner.main(S2JSPluginRunner.scala)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at sbt.Run.run0(Run.scala:60)
at sbt.Run.execute$1(Run.scala:47)
at sbt.Run$$anonfun$run$2.apply(Run.scala:50)
at sbt.Run$$anonfun$run$2.apply(Run.scala:50)
at sbt.TrapExit$.executeMain$1(TrapExit.scala:33)
at sbt.TrapExit$$anon$1.run(TrapExit.scala:42)
[info] == run ==
[error] Error running run: Nonzero exit code: 1

@alvaroc1
Copy link
Owner

alvaroc1 commented Apr 8, 2011

I guess I haven't set up sbt to actually run the code, only to package it since I always run it from within eclipse. I'll see if I can get that set up this weekend.

@guancio
Copy link
Author

guancio commented Apr 11, 2011

I had the same problem executing the S2JSPluginRunner from command line even if I set the classpath.

Changing line of S2JSPluginRunner as follows solves the problem for me

  •           settings.classpath.tryToSet(List("bin"))
    
  •           settings.classpath.value = System.getProperty("java.class.path")
    

@guancio guancio closed this as completed Apr 11, 2011
@guancio guancio reopened this Apr 14, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants