code-google-com / editra-plugins

Automatically exported from code.google.com/p/editra-plugins
0 stars 0 forks source link

hello plugin error (and how to get Editra to recognize a plugin in its source form.) #57

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What Plugin does this relate to?

hello Plugin

What steps will reproduce the problem?
1. Install & activate hello plugin
2. Browse the View menu

What is the expected output? What do you see instead?

Expected: Hello World someplace in the View menu.
Actual: No signs of Hello World.

What version of Editra are you using? On what operating system?

Editra: Editra 0.3.38
Linux: Ubuntu 8.04
Python 2.5.2 (r252:60911, Jul 31 2008, 17:28:52) 
[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2

Please provide any additional information below.

How do I get Editra to recognize a plug-in in its source form?  Ie, after I
unpack Hello-0.3-py2.5.egg, what do I need to do with the contents so that
Editra will load it?

(If the answer is not simple, just point me in the right direction. E.g.,
'Try the PEAK instructions for Running Eggs from Source again.')
--------------------------------------------------------------------
I want to try my hand at modifying and creating plug-ins, and the hello
plug-in seems to be designed expressly for this purpose.

However, I have been unable to get Editra to recognize a plug-in in source
form.  I have read the Plugin Overview and Plugin Support Api.  

Additionally, referencing the PEAK documentation on PythonEggs
(http://peak.telecommunity.com/DevCenter/PythonEggs), I followed their
instructions under Running Eggs from Source, but was unsuccessful in
getting Editra to recognize the result.

Original issue reported on code.google.com by teubank%heritagesaver.com@gtempaccount.com on 9 Aug 2008 at 5:51

GoogleCodeExporter commented 9 years ago
Hello,

The hello plugin works for me. After enabling the plugin you have to restart 
Editra
before it will be loaded (like it says in the PluginManager dialog).

-------

The Hello plugin was made as a the most simple example making a plugin in 
Editra. It
can be extended and used as a template.

To run a plugin in its source form you need to do the following.

1) I would suggest checking out the svn source and using them for development.
script. See svn access information on download page at editra.org. Just 
checkout the
sources and you can run Editra from that directory don't install it.

2) cd Edtira/plugins/hello

3) export PYTHONPATH=/path/to/Editra/plugins

4) python setup.py develop --install-dir=../

This will install a link in the plugins directory to the source in the hello 
folder.
So you can now make changes to the plugin and then just run Editra to try it 
without
having to rebundle the egg each time.

----------

I am going to close this as WorksForMe for now, if you find that it still 
doesn't
work for you feel free to reopen it.

Cody

Original comment by CodyPrec...@gmail.com on 9 Aug 2008 at 7:27

GoogleCodeExporter commented 9 years ago
Move old 'fixed' issues to verified

Original comment by CodyPrec...@gmail.com on 3 Feb 2009 at 8:18