[TxMt] Re: ctags and the TmCodeBrowser.tmplugin

Jerry lanceboyle at qwest.net
Fri Oct 14 04:59:59 UTC 2011


On Oct 13, 2011, at 11:08 AM, Steve King wrote:

> On 2011-10-13 06:52, Jerry wrote:
>> I thought I would give ctags in Textmate a try. I installed the TmCodeBrowser.tmplugin and got stuff in the CodeBrowser window only for C. ctags is supposed to work for lots of languages so I tried Pascal and Python but the CodeBrowser window remained empty.
> 
> I also use TmCodeBrowser, and Python support works fine here, as do other languages.  Do you have a bad config file by any chance?  TmCodeBrowser saves its config in your home directory, in ~/.ctags.tmcodebrowser,

I have no such file. Don't know why.

> and falls back to built-in defaults if that file isn't found.  You might experience problems if the config file exists but is empty; I don't know what the behavior would be in that case.
> 
>> I can run ctags on an Ada file and a tags file is generated in the same directory that looks like it has lots of relevant stuff in it, so why doesn't the TmCodeBrowser.tmplugin pick it up?
> 
> The TM plugin uses its own copy of ctags, located within the TmCodeBrowser.tmplugin bundle. You'll probably need to replace that one if you need to run a modified version.

OK. Done.

>  You may need to add a line to the config file to recognize Ada file names. (And, if you're using a modified executable, the config file might be the normal ~/.ctags instead of the ~/.ctags.tmcodebrowser version. I'm not sure if he's changed the default config file in the ctags source, of if he's just passing the config file name on the ctags command line.)

I added a line to .ctags.tmcodebrowser inside the bundle to describe Ada files.
> 
> Check the TmCodeBrowser manual if you haven't already. (Config dialog, "Manual..." button.) It doesn't directly address your problems but it should provide clues.

I had skimmed the manual but obviously that wasn't enough.

With the above-noted changes, I am now getting TMCodeBrowser operating on Ada sources. Thanks! However, still no Python etc. so I'm not sure what is going on (where is that ~/.ctags.tmcodebrowser?). Still, I'm 97.5% percent happy.

Thanks again,
Jerry
> 
> -- 
> 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