[TxMt] Re: python documentation

Steve King sking at arbor.net
Wed Aug 31 14:30:48 UTC 2011


On 2011-08-31 09:28, enas wrote:
> - When selecting the Documentation for Current Word command (Cmd-H), I get a window showing an "Index of Modules". I can reach from there was I was looking for, but I would expect the command to bring directly there. Is this what it is supposed to do, or am I getting the intended behaviour? (Looking at the code, this looks to be a fallback case, so there should be something else happening.)

You're supposed to get a window titled "DocMate" which has the search 
results for the highlighted word.  It actually has two sets of results. 
The first is from the online docs at http://docs.python.org/. The second 
is from locally stored docs, served by 
Python.tmbundle/Support/DocMate/pydoc_server.py running on port 7427.  
My guess (and this is just a guess, I haven't looked at the code) is 
that the reason you're getting the index of modules is because it's 
unable to get to the online docs and unable to find the current word in 
the local docs.

http://tinypic.com/r/sz77kj/7

> - When selecting the Documentation in Browser command (Cmd-Shift-H), I get the following error message:

This starts another local server process, 
Python.tmbundle/Support/browse_pydocs.py on port 9877, then opens a link 
in your browser.  (Why two different server processes? I don't know.)  
In your case it sounds like the server process can't start.  This one 
should leave error logs in /tmp/pydoc_server_*.log. With luck there will 
be something in there that will give you a clue as to what's going on.

http://tinypic.com/r/66vw2d/7

-- 
Steve King
Sr. Software Engineer
Arbor Networks
+1 734 821 1461
www.arbornetworks.com <http://www.arbornetworks.com/>




More information about the textmate mailing list