Giter Club home page Giter Club logo

scage's Issues

no lwjgl in java.library.path

Hi,

When I try to run mvn clean test I get this error:


-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running my.company.app.ScageAppTest
17:39:45.060 [INFO ] loaded properties file scageapp.properties
17:39:45.063 [INFO ] loaded properties file maven.properties
17:39:45.112 [INFO ] starting main screen Scage Example App...
17:39:45.115 [WARN ] failed to find property images.base
17:39:45.116 [INFO ] default value for property images.base is resources/images/
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.587 sec <<< FAILURE!

Results :

Tests in error:
  testOK(my.company.app.ScageAppTest): no lwjgl in java.library.path

Tests run: 1, Failures: 0, Errors: 1, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 16.339s
[INFO] Finished at: Sat Aug 24 17:39:45 BST 2013
[INFO] Final Memory: 9M/81M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.7.2:test (default-test) on project app: There are test failures.
[ERROR]
[ERROR] Please refer to /Users/khoa/ld/app/target/surefire-reports for the individual test results.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

I tried to fix it but didn't succeed :(

By the way, http://scala-tools.org/repo-releases is dead, but I fixed this using your slick =]

Hello World Example

I had to change these things to get the example running:
import net.scage. => import.com.github.dunnololda.scage.
actionStaticPeriod(100) { => actionDynamicPeriod({100}) {

Download of slick pom failed

Hi,
I just tried to create a new project with the following pom

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>

  <groupId>org.example</groupId>
  <artifactId>example</artifactId>
  <version>0.0.1-SNAPSHOT</version>
  <packaging>jar</packaging>

  <name>example</name>
  <url>http://maven.apache.org</url>

  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  </properties>

  <repositories>
      <repository>
        <id>scage</id>
        <name>Scage Maven Repo</name>
        <url>http://scage.googlecode.com/svn/maven-repository</url>
      </repository>
  </repositories>

  <dependencies>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>3.8.1</version>
      <scope>test</scope>
    </dependency>
    <dependency>
          <groupId>su.msk.dunno</groupId>
          <artifactId>scage</artifactId>
          <version>0.9</version>
          <scope>compile</scope>
      </dependency>
  </dependencies>
</project>

when i try to mvn compile it fails to find the slick pom

[INFO] ------------------------------------------------------------------------
[INFO] Building example 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.6/maven-resources-pl
[...]
Downloading: http://repo.maven.apache.org/maven2/slick/slick/274/slick-274.pom
[WARNING] The POM for slick:slick:jar:274 is missing, no dependency information available
Downloading: http://repo.maven.apache.org/maven2/slick/slick/274/slick-274.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 9.683s
[INFO] Finished at: Sun Jul 28 09:03:11 CEST 2013
[INFO] Final Memory: 4M/15M
[INFO] ------------------------------------------------------------------------

So I can't use scage, which is sad since it looks like an awesome lib.

phys2d error with sbt then error on com.github.dunnololda.state.State

Came across this and gave it a spin. Am I missing something obvious on how to get started?

ran sbt compile

sbt.ResolveException: download failed: phys2d#phys2d;060408!phys2d.zip
    at sbt.IvyActions$.sbt$IvyActions$$resolve(IvyActions.scala:291)
    at sbt.IvyActions$$anonfun$updateEither$1.apply(IvyActions.scala:188)
    at sbt.IvyActions$$anonfun$updateEither$1.apply(IvyActions.scala:165)
    at sbt.IvySbt$Module$$anonfun$withModule$1.apply(Ivy.scala:155)
    at sbt.IvySbt$Module$$anonfun$withModule$1.apply(Ivy.scala:155)
    at sbt.IvySbt$$anonfun$withIvy$1.apply(Ivy.scala:132)
    at sbt.IvySbt.sbt$IvySbt$$action$1(Ivy.scala:57)
    at sbt.IvySbt$$anon$4.call(Ivy.scala:65)
    at xsbt.boot.Locks$GlobalLock.withChannel$1(Locks.scala:93)
    at xsbt.boot.Locks$GlobalLock.xsbt$boot$Locks$GlobalLock$$withChannelRetries$1(Locks.scala:78)
    at xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:97)
    at xsbt.boot.Using$.withResource(Using.scala:10)
    at xsbt.boot.Using$.apply(Using.scala:9)
    at xsbt.boot.Locks$GlobalLock.ignoringDeadlockAvoided(Locks.scala:58)
    at xsbt.boot.Locks$GlobalLock.withLock(Locks.scala:48)
    at xsbt.boot.Locks$.apply0(Locks.scala:31)
    at xsbt.boot.Locks$.apply(Locks.scala:28)
    at sbt.IvySbt.withDefaultLogger(Ivy.scala:65)
    at sbt.IvySbt.withIvy(Ivy.scala:127)
    at sbt.IvySbt.withIvy(Ivy.scala:124)
    at sbt.IvySbt$Module.withModule(Ivy.scala:155)
    at sbt.IvyActions$.updateEither(IvyActions.scala:165)
    at sbt.Classpaths$$anonfun$sbt$Classpaths$$work$1$1.apply(Defaults.scala:1369)
    at sbt.Classpaths$$anonfun$sbt$Classpaths$$work$1$1.apply(Defaults.scala:1365)
    at sbt.Classpaths$$anonfun$doWork$1$1$$anonfun$87.apply(Defaults.scala:1399)
    at sbt.Classpaths$$anonfun$doWork$1$1$$anonfun$87.apply(Defaults.scala:1397)
    at sbt.Tracked$$anonfun$lastOutput$1.apply(Tracked.scala:37)
    at sbt.Classpaths$$anonfun$doWork$1$1.apply(Defaults.scala:1402)
    at sbt.Classpaths$$anonfun$doWork$1$1.apply(Defaults.scala:1396)
    at sbt.Tracked$$anonfun$inputChanged$1.apply(Tracked.scala:60)
    at sbt.Classpaths$.cachedUpdate(Defaults.scala:1419)
    at sbt.Classpaths$$anonfun$updateTask$1.apply(Defaults.scala:1348)
    at sbt.Classpaths$$anonfun$updateTask$1.apply(Defaults.scala:1310)
    at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47)
    at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:40)
    at sbt.std.Transform$$anon$4.work(System.scala:63)
    at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:226)
    at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:226)
    at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:17)
    at sbt.Execute.work(Execute.scala:235)
    at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:226)
    at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:226)
    at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:159)
    at sbt.CompletionService$$anon$2.call(CompletionService.scala:28)
    at java.util.concurrent.FutureTask.run(FutureTask.java:262)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask.run(FutureTask.java:262)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:745)
[error] (*:update) sbt.ResolveException: download failed: phys2d#phys2d;060408!phys2d.zip

ran sbt update

[info] Loading project definition from ~/tools/scage/project
[info] Set current project to scage (in build file:~/tools/scage/)
[info] Patching ~/.ivy2/cache/phys2d/phys2d/ivy-060408.xml ...
[info] Done.
[info] Updating {file:~/tools/scage/}scage...
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[info] downloading https://raw.github.com/dunnololda/mvn-repo/master/phys2d/phys2d/060408/phys2d-060408.jar ...
[info]  [SUCCESSFUL ] phys2d#phys2d;060408!phys2d.jar (2966ms)
[info] Done updating.

ran sbt compile

[info] Loading project definition from ~/tools/scage/project
[info] Set current project to scage (in build file:~/tools/scage/)
[info] Patching ~/.ivy2/cache/phys2d/phys2d/ivy-060408.xml ...
[info] Done.
[info] Compiling 33 Scala sources and 7 Java sources to ~/tools/scage/target/scala-2.10/classes...
[info] 'compiler-interface' not yet compiled for Scala 2.10.1. Compiling...
[info]   Compilation completed in 13.929 s
[error] ~/tools/scage/src/main/scala/com/github/dunnololda/scage/ScageLib.scala:309: object state is not a member of package com.github.dunnololda
[error]   val State            = com.github.dunnololda.state.State
[error]                                                ^
[error] ~/tools/scage/src/main/scala/com/github/dunnololda/scage/support/ScageColor.scala:3: object mysimplelogger is not a member of package com.github.dunnololda
[error] import com.github.dunnololda.mysimplelogger.MySimpleLogger

tried the maven command listed in the README

[INFO] ----------------------------------------------------------------------------
[INFO] Using following parameters for creating project from Archetype: project-archetype:10.3
[INFO] ----------------------------------------------------------------------------
[INFO] Parameter: groupId, Value: scage
[INFO] Parameter: artifactId, Value: project-archetype
[INFO] Parameter: version, Value: 10.3
[INFO] Parameter: package, Value: com.github.dunnololda.scage
[INFO] Parameter: packageInPathFormat, Value: com/github/dunnololda/scage
[INFO] Parameter: package, Value: com.github.dunnololda.scage
[INFO] Parameter: version, Value: 10.3
[INFO] Parameter: groupId, Value: scage
[INFO] Parameter: artifactId, Value: project-archetype
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:25 min
[INFO] Finished at: 2015-06-13T08:51:12-04:00
[INFO] Final Memory: 16M/245M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.3:generate (default-cli) on project scage_2.10: org.apache.maven.archetype.exception.InvalidPackaging: Unable to add module to the current project as it is not of packaging type 'pom' -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

Add license info?

Sorry if I missed it - didn't seem to see any license info in the usual places.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.