tl;dr
Hi, I'm Tabito Ohtani, software engineer working in Tokyo,Japan. overflow, inc CTO. Offers開発中.
GNU GLOBAL(gtags) support for Sublime Text 2/3
Hi, I'm Tabito Ohtani, software engineer working in Tokyo,Japan. overflow, inc CTO. Offers開発中.
The ERROR information is:
TypeError: environment can only contain strings
I have found that path.encode('utf-8')
causes this problem in the file D:...\Sublime Text\Data\Packages\SublimeGtags\gtags.py, it will convert the "F:/project" to b"F:/project":
class TagFile(object):
def _expand_path(self, path):
path = os.path.expandvars(os.path.expanduser(path))
if IS_WINDOWS:
path = path.encode('utf-8')
return path
So, I added this If statement if int(sublime.version()) < 3000:
:
class TagFile(object):
def _expand_path(self, path):
path = os.path.expandvars(os.path.expanduser(path))
if IS_WINDOWS:
if int(sublime.version()) < 3000:
path = path.encode('utf-8')
return path
NOW, it works fine~!
I commonly search through different references to a symbol when, for example, changing the way it should be used.
It would be much more convenient to do, if it was possible to get a buffer working like find in files: listing all occurrences, and allowing you to:
I could even use the same for Go to symbol, but that would probably be less useful in general case.
I think SublimeGtags is the best choice for checking symbol definition and references in Sublime.
Missing it so much for ST3 support.
When searching for all references of a symbol in a project with long paths these paths become hardly readable. (Especially if you use 2-column layout so that the view of the file is quite narrow, say 100 characters.)
It would help if there was an option to remove prefixes of these paths, and, for example, instead of showing absolute paths, show paths relative to the located tags file.
I prepare to make index for linux kernel . I install this plugin with the Package Control, but the "navigate to definition" and "find references" can't use.
My system is Mac. The sublime text version is new.
After install, Need I do something ?
After 402c8eb tag rebuilding stopped working.
Gtags process is started, but it does nothing (no cpu activity), and never ends.
Given the fix I've already prepared and will push, I guess this is triggered by gtags showing some errors in my code base, and as a result of usage of wait(), deadlocking.
when I install this plugin in my sublimetext2, and run gtags -v to create GTAGS files successfully. it works in the first time to navigate definition, find references and so on. But when I restart sublimetext2, then do the same operation ,it does not work. please help to check it. thanks a lot
qbai
I installed SublimeGtags via package control within sublime text 2 and added the path to the GTAGS files generated with gtags (in user's Gtags.sublime-settings) and the "Navigate to Definition" and "Find References" both fail with a "GTAGS not found. build tags by 'gtags'" error. Any ideas why this happens?
i added this to my Gtags.sublime-settings:
{
// show relative paths in keyword jump selection panel
"show_relative_paths": true,
// a list of other locations to look up (GTAGSLIBPATH)
"extra_tag_paths" : ["/home/username/sandbox"]
}
the sandbox folder is where i generated the gtags (GTAGS, GPATH files).
It would be useful to add SublimeGtags to list of community packages in Package Control (see http://wbond.net/sublime_packages/package_control). The benefits would include:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.