all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Semantic Parsing of Python Symbols Defined in Class
@ 2016-01-22 17:40 Steve Jarvis
  0 siblings, 0 replies; only message in thread
From: Steve Jarvis @ 2016-01-22 17:40 UTC (permalink / raw)
  To: help-gnu-emacs

Hi, I'm having trouble getting Semantic to find symbols defined within a 
Python class. For example, in the following buffer I can use 
"semantic-ia-fast-jump" to locate "say_hi()", but cannot find 
"thing_say_hi()".

<start code>

def say_hi():
     print 'hello there'

class Thing:

     def thing_say_hi(self):
         print 'hello from class'


say_hi()    # Resolves correctly with 'semantic-ia-fast-jump'
thing = Thing()
thing.thing_say_hi()    # Could not find suitable jump point for 
thing_say_hi

<end code>

I look at semantic's context (what I understand fast jump uses to locate 
symbols) and see the prefix class is just "'type". I would expect that 
to be "Thing"?


Context Type: #<semantic-analyze-context context>
Bounds: (148 . 160)
Prefix: "thing_say_hi"
Prefix Classes: 'type


Anyway, this is on emacs 24.5.1 with no extra packages. I didn't find 
any info on this with a bit of Googling; it sounds like it really just 
works excellently for most. Any ideas what's going on? From what I've 
read of Semantic, this is certainly not outside the functionality of 
fast jump, is it?

Thanks,
Steve



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-01-22 17:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-22 17:40 Semantic Parsing of Python Symbols Defined in Class Steve Jarvis

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.