A bug in github repository?

5 views
Skip to first unread message

Jiansen

unread,
Apr 24, 2012, 4:14:24 AM4/24/12
to EnMAS Users
Hi,

I downloaded the EnMAS example from
https://github.com/ConnorDoyle/EnMAS.git

However, an bug is reported for org.enmas.pomdp.State at Line 49
val clazz =
prototypeObject.getClass.asInstanceOf[java.lang.Class[T]]
for the reason:
type mismatch; found : prototypeObject.type (with underlying type T)
required: ?{val getClass: ?} Note
that implicit conversions are not applicable because they are
ambiguous: both method any2Ensuring in
object Predef of type [A](x: A)Ensuring[A] and method any2ArrowAssoc
in object Predef of type [A](x:
A)ArrowAssoc[A] are possible conversion functions from
prototypeObject.type to ?{val getClass: ?}


This is my first time look into this project and its implementation,
any quick fix for this bug?

Best Regards
Yours, Jiansen

Connor Doyle

unread,
Apr 24, 2012, 10:46:15 AM4/24/12
to enmas...@googlegroups.com
Hi Jiansen,

I have not seen this particular error before.

Which example did you try to run? Also can you give the details of your environment (operating system, JVM version, Scala version, etc.)? Finally please describe the steps you took that caused the error to occur.
--
Connor
> --
> You received this message because you are subscribed to the Google Groups "EnMAS Users" group.
> To post to this group, send email to enmas...@googlegroups.com.
> To unsubscribe from this group, send email to enmas-users...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/enmas-users?hl=en.
>

Jiansen

unread,
Apr 25, 2012, 11:10:52 AM4/25/12
to EnMAS Users
Hi Connor,

I am glad to receive your reply.

I use Ubuntu 12.04
The error is reported when I ported the project to Eclipse Indigo.
The compiler is set to java-sun 1.6.0.26 and scala 2.9.0.1

I haven't tried any example because I don't know how. Could you guild
me to a brief instruction on how to run examples?

I am also planning re-implement your project (with minor
modifications) to test my new actor library which will check the type
of messages sending to actors. I will grateful if you could provide
some tests that checks the correctness of the implementation.

All the best
Yours, Jiansen


On Apr 24, 3:46 pm, Connor Doyle <connor....@gmail.com> wrote:
> Hi Jiansen,
>
> I have not seen this particular error before.
>
> Which example did you try to run?  Also can you give the details of your environment (operating system, JVM version, Scala version, etc.)?  Finally please describe the steps you took that caused the error to occur.
> --
> Connor
>

Jiansen

unread,
Apr 25, 2012, 2:27:17 PM4/25/12
to EnMAS Users
Hi Connor,

My Eclipse is happy with your code after I re-install it.

I am still interested in instructions on how to run examples and test
the code.

Cheers
Jiansen

Connor Doyle

unread,
Apr 25, 2012, 2:35:33 PM4/25/12
to enmas...@googlegroups.com
Currently the project is set up to be built using SBT (a free build tool for Scala projects). I have never used Eclipse Indigo, so I probably can't help you there. SBT takes care of all of the dependencies, so that's the route I recommend taking. There is a pretty detailed step by step walk through of how to install, build and use the project on the official web site at http://enmas.org

Take a look at the "getting started" pages on the site. I think it should clarify a lot of the issues for you.

Let me know how it goes!
--
Connor

Marty Allen

unread,
Apr 26, 2012, 5:51:44 PM4/26/12
to enmas...@googlegroups.com
Hi Jiansen,

Not sure if you've looked at the website yet:

http://enmas.org/

If you check that out, you will find some sections and examples on how to get started. We have some sample Dec-POMDPs and basic agents that come with the download, and the website contains directions about how to load and run those. We are adding more all the time (although slowly).

Let us know what you think.

All the best,

Marty Allen

-----------------
Martin Allen,
Computer Science Department,
University of Wisconsin - La Crosse,
1725 State Street,
La Crosse, WI 54601-3654.
-----------------
Tel: 608.785.6810
Fax: 815.301.3554
Office: 210 Wing Technology Center
-----------------
email: mal...@cs.uwlax.edu
web: http://cs.uwlax.edu/~mallen/
Reply all
Reply to author
Forward
0 new messages