Home Download Buy Blog Forum Support

Example plugin doesn't work

Example plugin doesn't work

Postby Fiaxhs on Tue Jun 21, 2011 1:07 pm

Hello,

I'm trying to develop some plugin (and understand how all this works), but I can't get the example plugin to work.

Here's what I do

1. Tools > New plugin
2. Save it to st2/Packages/User/test.py
3. Open console
4. Typing view.run_command("Example")
5. Nothing happens.

Is there something I'm missing ?
Fiaxhs
 
Posts: 5
Joined: Mon Feb 28, 2011 12:57 pm

Re: Example plugin doesn't work

Postby jps on Tue Jun 21, 2011 1:13 pm

Try view.run_command("example")
jps
Site Admin
 
Posts: 3067
Joined: Wed Mar 19, 2008 12:33 pm

Re: Example plugin doesn't work

Postby Fiaxhs on Tue Jun 21, 2011 2:51 pm

Hello, thanks for the help.

I had already tried with lowercase, with no result.

I've renamed the example plugin to "plop.py" and it's working. It seems that "test.py" was the name to avoid :)
Fiaxhs
 
Posts: 5
Joined: Mon Feb 28, 2011 12:57 pm

Re: Example plugin doesn't work

Postby Fiaxhs on Tue Jun 21, 2011 2:54 pm

A little more information :

ST2 build 2068 on OSX Snow Leopard ;)
Fiaxhs
 
Posts: 5
Joined: Mon Feb 28, 2011 12:57 pm


Return to Plugin Development

Who is online

Users browsing this forum: No registered users and 10 guests