Plug-in development

42 views
Skip to first unread message

Thibaut Démare

unread,
Apr 17, 2015, 5:32:01 AM4/17/15
to gama-p...@googlegroups.com

Hello,

I have developed a plug-in (gs-gama > org.graphstream.gama) and I published it this morning as an extension following this how-to:
https://code.google.com/p/gama-platform/wiki/G__DevelopingPlugins

However, when I installed this plug-in on a fresh downloaded GAMA 1.6.1, the plug-in doesn't work. I followed the how-to here to installed it:
https://code.google.com/p/gama-platform/wiki/G__Updating

I succeeded to install it but when I use one of the new keyword of the plug-in, the compiler doesn't understand it and generate an error.
There is no problem with the plug-in when I use it on the SVN instance.

I surely miss something somewhere, but I don't know what.

Anyone has an idea?

Thibaut

Patrick Taillandier

unread,
Apr 17, 2015, 10:52:59 AM4/17/15
to gama-p...@googlegroups.com
Hi,

Can you give a model template to test your plug-in on my computer ? ;) .

Cheers,

Patrick

--
You received this message because you are subscribed to the Google Groups "GAMA" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gama-platfor...@googlegroups.com.
To post to this group, send email to gama-p...@googlegroups.com.
Visit this group at http://groups.google.com/group/gama-platform.
For more options, visit https://groups.google.com/d/optout.

Thibaut Démare

unread,
Apr 17, 2015, 11:09:10 AM4/17/15
to gama-p...@googlegroups.com

Sure!

The attached file was used to test my plug-in. There are all the keywords included in the plug-in, so the compiler will give you a lot of errors :)
However, if the plug-in works on your computer for a mystery reason, you will need a Java program to make the GAMA model work, but it is not the problem here so I don't give you the other part.

Thanks for your time
test.gaml

Patrick Taillandier

unread,
Apr 17, 2015, 11:34:51 AM4/17/15
to gama-p...@googlegroups.com
Ok, it does not work on my computer neither :p .
One weird thing is that in your plug-in (I uncompressed it ;) ) you do not have any gaml folder in the plug-in (this folder that automatically generated is mandatory to add keywords to GAMA). In your java project, do you have one?

Cheers,

Patrick

Thibaut Démare

unread,
Apr 17, 2015, 5:57:57 PM4/17/15
to gama-p...@googlegroups.com

(sorry to be long to answer, I had no access to my computer for the last hours)

Indeed you were right!
The `build.properties` had been modified (my java project had already the gaml folder with the generated source) and the gaml folder url was missing in the `source` parameter of this file.
For the record, if someone, someday, needs it, the file must look like this:

source.. = src/,\
           gaml/
output.. = bin/
bin.includes = META-INF/,\
               .,\
               plugin.xml

However, now, GAMA crashes when it starts after I installed the plug-in :s
The attached file is the log generated by GAMA in the `.metadata/.log` of my workspace.

I committed the last build with the gaml folder if you want to test it (in fact, I thought it was going to work...).

Cheers,

Thibaut
.log

Patrick Taillandier

unread,
Apr 18, 2015, 3:27:19 AM4/18/15
to gama-p...@googlegroups.com
Hi,

It is a bit difficult to understand the problem like this. Can you share with me your project ?  (give me access to your SVN if possible).

Cheers,

Patrick

Thibaut Démare

unread,
Apr 18, 2015, 5:38:25 AM4/18/15
to gama-p...@googlegroups.com
Hi,

I don't use SVN for the plug-in development. The sources are on Github but I attached an archive with the two projects: the sources of the plug-in, and the feature project. I also attached the .product from the msi.gama.application in case you need it.
It will be probably easier for you.

Cheers

Thibaut
projects_plug-in_and_feature.zip
gama1.6.1.release.product
Reply all
Reply to author
Forward
0 new messages