Help with creating a layout plugin

Once it's running
suryanash
Posts:11
Joined:19 May 2016 13:11
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
Re: Help with creating a layout plugin

Post by suryanash » 23 May 2016 12:03

Is there any other reason why the layout might not be listed there? I tried running mvn org.gephi:gephi-maven-plugin:run in from the root (gephi-plugins) folder but the same thing happened as when I run it through netbeans, the plugin doesnt appear in the layout drop down.

User avatar
eduramiba
Gephi Code Manager
Posts:1064
Joined:22 Mar 2010 15:30
Location:Madrid, Spain
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable

Re: Help with creating a layout plugin

Post by eduramiba » 23 May 2016 12:20

You should not specify any version in your dependencies at https://github.com/suryanash/gephi-plug ... in/pom.xml
Also never depend on the gephi-toolkit in a gephi-plugins project.

So, just include the separate modules that you need without versions:

Code: Select all

<dependency>
    <groupId>org.gephi</groupId>
    <artifactId>graph-api</artifactId>
</dependency>
<dependency>
    <groupId>org.gephi</groupId>
    <artifactId>ui-propertyeditor</artifactId>
</dependency>
You will probably also need Layout API etc. The complete list of modules is here https://github.com/suryanash/gephi-plug ... es/pom.xml

suryanash
Posts:11
Joined:19 May 2016 13:11
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable

Re: Help with creating a layout plugin

Post by suryanash » 23 May 2016 14:30

Thanks, I have updated it now by correcting what you mentioned. The "Reactor Summary" for the build process however still says "SKIPPED" for my plugin, and the layout is not listed in the layout drop down, do you know how I might go about fixing the "SKIPPED" issue?

User avatar
eduramiba
Gephi Code Manager
Posts:1064
Joined:22 Mar 2010 15:30
Location:Madrid, Spain
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable

Re: Help with creating a layout plugin

Post by eduramiba » 23 May 2016 14:39

That's strange. Try to do a mvn install first, before the run command. If still not working, try to debug the maven build with -X option.

suryanash
Posts:11
Joined:19 May 2016 13:11
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable

Re: Help with creating a layout plugin

Post by suryanash » 23 May 2016 15:05

Ah thanks, running install with the debug option helped me find the issue. The build was failing with the following:

Code: Select all

[ERROR] Project uses classes from transitive module org.netbeans.api:org-openide-util:jar:RELEASE81 which will not be accessible at runtime.
[INFO]     To fix the problem, add this module as direct dependency. For OSGi bundles that are supposed to be wrapped in NetBeans modules, use the useOSGiDependencies=false parameter
Which I solved by adding the following to my pom.xml

Code: Select all

<dependency>
   <groupId>org.netbeans.api</groupId>
   <artifactId>org-openide-util</artifactId>
</dependency>
I can now see the layout when I run gephi-plugins, Thanks!

maryjohn
Posts:5
Joined:09 Aug 2016 11:04
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable

Re: Help with creating a layout plugin

Post by maryjohn » 09 Aug 2016 11:57

Hi,
In your modules section there can be only one module that other modules do not depend on. Also try to use gephi-plugins instead, not sure if the bootcamp is completely updated.

Post Reply
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable