Home Download Buy Blog Forum Support

Can someone help me install and use the CTags plugin, please

Can someone help me install and use the CTags plugin, please

Postby sublimefool on Thu Jul 07, 2011 10:14 am

Hey

Disclaimer: I'm new to Sublime Text but not to programming in general.

I love Sublime Text 2 but have been looking for some kind of "Go to function definition" functionality (the same as Ctrl+Clicking a function name in Netbeans/Eclipse). I read that the CTags plugin can be used to achieve this kind of thing in Sublime, but I can't figure out how to install it.

I've downloaded the source of the CTags and AAALoadFirstExtensions and have put them in their own folders in the Packages folder. Am I supposed to now do something to "register" the plugins or make them work? I don't see any menus (e.g. Tools -> Packages isn't there). And once I have "registered" the plugins, do I have to do anything such as generate a tags file manually or something?

Sorry for the confusion but I hope you can appreciate the slight confusion given that I've only used larger IDEs.

Thanks! :)
sublimefool
 
Posts: 3
Joined: Thu Jul 07, 2011 10:05 am

Re: Can someone help me install and use the CTags plugin, please

Postby jps on Thu Jul 07, 2011 10:23 am

The CTags plugin is for Sublime Text 1, and won't work with Sublime Text 2, unfortunately.
jps
Site Admin
 
Posts: 3077
Joined: Wed Mar 19, 2008 12:33 pm

Re: Can someone help me install and use the CTags plugin, please

Postby sublimefool on Thu Jul 07, 2011 10:41 am

Ah. That explains it, then. Thanks.

Is there any development effort to get the plugin to work with v2? I would be happy to look into supporting or helping with this. :)
sublimefool
 
Posts: 3
Joined: Thu Jul 07, 2011 10:05 am

Re: Can someone help me install and use the CTags plugin, please

Postby sublimefool on Thu Jul 07, 2011 3:39 pm

sublimator wrote:It works for me ... but the guy I ported it for said he's having problems ...

Would you mind possibly writing just a few lines outlining how to install and use it, please? I'll give it a go and report back if it works on v2. :)
sublimefool
 
Posts: 3
Joined: Thu Jul 07, 2011 10:05 am

Re: Can someone help me install and use the CTags plugin, please

Postby cmdalbem on Thu Jul 14, 2011 3:35 pm

Hi Sublimator!

I'm VERY interested in installing CTags within Sublime Tex 2.
I've cloned both CTags and AAALoadFirstExtensions repository into my ST2 Packages folder, and looked at the Linux bindings in "Default (Linux).sublime-keymap", but they don't seem to be working (nothing happens).

It's sad ST2 don't have the Tools->Packages menu, I can't even check if the packaged is "installed" correctly.
Computer Science student at UFRGS since 2008.
http://inf.ufrgs.br/~cmdalbem
cmdalbem
 
Posts: 2
Joined: Thu Jul 14, 2011 3:32 pm

Re: Can someone help me install and use the CTags plugin, please

Postby cmdalbem on Thu Jul 14, 2011 3:51 pm

My ST2 console is showing this:

Reloading plugin /home/cristiano/.config/sublime-text-2/Packages/AAALoadFirstExtensions/pluginhelpers.py
Traceback (most recent call last):
File "./sublime_plugin.py", line 29, in reload_plugin
File "./pluginhelpers.py", line 22, in <module>
from ctypes import windll, create_unicode_buffer
File ".\ctypes\__init__.py", line 10, in <module>
ImportError: No module named _ctypes

I've tryed reinstalling all Python2.6 packages but didn't work to fix the problem.
Computer Science student at UFRGS since 2008.
http://inf.ufrgs.br/~cmdalbem
cmdalbem
 
Posts: 2
Joined: Thu Jul 14, 2011 3:32 pm

Re: Can someone help me install and use the CTags plugin, please

Postby nkint on Tue Feb 28, 2012 4:47 pm

hi i'm on ubuntu 10.10 and sublime text 2

i've downloaded ctags for st2 here:
https://github.com/SublimeText/CTags

then created my tag file in this way:
Code: Select all
$ cd /absolute_path_of_my_cpp_framework/
$ ctags -R *

then opened /home/me/.config/sublime-text-2/Packages/CTagss/CTags.sublime-settings
and added:
Code: Select all
"extra_tag_files" : [".gemtags", "/absolute_path_of_my_cpp_framework/tags"]


but if i open sublime text, save a new .cpp file, write ofPoint (a class of the framework i'm using), press ctrl+t.. no new tab with definition is open.

sorry i'm new to sublime text and to ctags, how can i resolve?
nkint
 
Posts: 6
Joined: Sat Feb 18, 2012 1:34 am

Next

Return to Technical Support

Who is online

Users browsing this forum: No registered users and 8 guests