Hi Eric,
In my setup, the issue occurs even after I open the files test.h and test2.c. Since I'm able to jump using C-c , J, I'll move on with it. Thanks for your help.
If it helps, I can collect information from my setup to address the issue. Please let me know. But, I'm not much of a lisp programmer.
Thanks,
Balaji
----- Original Message ----
From: Eric M. Ludlam <eric@...>
To: Balaji Rajagopalan <balaji.rajagopalan@...>
Cc: cedet-semantic@...
Sent: Thu, May 27, 2010 4:06:18 AM
Subject: Re: [cedet-semantic] gnu global & semantic-complete-jump
Hi Balaji,
I don't have the issue you show below, though perhaps I accidentally
pre-parsed too much stuff in CEDET? Is there an Emacs startup
constraint and order to recreate?
Eric
On 05/26/2010 01:00 PM, Balaji Rajagopalan wrote:
> Hi Eric,
>
> I was on pre7. I just pulled the cvs version. I don't see the first issue anymore with the cvs version. It works the way you described.
>
> However, the second issue remains. For convenience, I'm pulling it up from one of my previous emails: -
>
> 2) Place the cursor in the call to t2_func1, and run "semantic-ia-fast-jump". I get the message "semantic-ia--fast-jump-helper: Tag t2_func1 has no buffer information". I can jump using "gtags-find-tag".
>
> Interestingly, I can jump to test_struct1 and test_struct1::member1.
>
> Any suggestions? Should I be using C-c , J? My config looks like this: -
>
> ;;load cedet
> (load-file "~/tools/emacs/cedet-cvs/common/cedet.el")
> (global-ede-mode 1)
> (semantic-load-enable-minimum-features)
> (semantic-load-enable-code-helpers)
> ;;setup gnu global for cedet
> (setq cedet-global-command "global")
> (setq ede-locate-setup-options
> '(ede-locate-global
> ede-locate-base))
> (semanticdb-enable-gnu-global-databases 'c++-mode)
> (semanticdb-enable-gnu-global-databases 'c-mode)
> ;;create the project
> (ede-cpp-root-project "test" :file "~/test-cedet/temp"
> :include-path '( "/inc"))
>
>
> Thanks,
> Balaji
>
>
>
> ----- Original Message ----
> From: Eric M. Ludlam<eric@...>
> To: Balaji Rajagopalan<balaji.rajagopalan@...>
> Cc: cedet-semantic@...
> Sent: Wed, May 26, 2010 4:44:59 PM
> Subject: Re: [cedet-semantic] gnu global& semantic-complete-jump
>
> Hi Balaji,
>
> I was not able to recreate the issue with your example. I did find that
> if I hit TAB on something like t1_func1 several times I was able to view
> get each hit, and eventually get the GNU Global database version, which
> I hit RET on, and then it worked.
>
> When I setup my test project, I used a cpp-root project like this:
> (ede-cpp-root-project "test" :file
> "~/cedet/testproj/balaji/global/rootproj.el"
> :include-path '( "/inc"))
>
>
> where rootproj.el was some lisp where I put your configuration code, and
> 'global' is the root of the directory tree, thus
>
> global/inc/test.h
> global/src/test1.c
>
> etc
>
> I also ran the gtags command from the 'global' directory, not from src.
>
> Does that help?
> Eric
>
>
> On 05/26/2010 12:16 AM, Balaji Rajagopalan wrote:
>> Hi Eric,
>>
>> Could you please advise what I can do about this issue? If this is a bug that you're going to address, please let me know when you've checked in the fix -- I will upgrade to the cvs version.
>>
>> Thanks,
>> Balaji
>>
>>
>> ----- Original Message ----
>> From: Balaji Rajagopalan<balaji.rajagopalan@...>
>> To: Eric M. Ludlam<eric@...>
>> Cc: cedet-semantic@...
>> Sent: Tue, May 18, 2010 5:45:54 PM
>> Subject: Re: [cedet-semantic] gnu global& semantic-complete-jump
>>
>> Hi Eric,
>>
>> Please see attachment for my reply...I was able to re-create the issue in a simple setup.
>>
>> Thanks,
>> Balaji
>>
>>
>>
>> ----- Original Message ----
>> From: Eric M. Ludlam<eric@...>
>> To: Balaji Rajagopalan<balaji.rajagopalan@...>
>> Cc: cedet-semantic@...
>> Sent: Tue, May 18, 2010 5:22:26 PM
>> Subject: Re: [cedet-semantic] gnu global& semantic-complete-jump
>>
>> Hi,
>>
>> The case you show below shouldn't error, as the call is in a
>> condition-case, which implies that debug-on-error caught the error
>> inside the condition-case?
>>
>> I'll look into making this work correctly anyway, but is this also the
>> error you get when you don't have debug on error turned on?
>>
>> Eric
>>
>> On 05/18/2010 02:42 AM, Balaji Rajagopalan wrote:
>>> Hi,
>>>
>>> I'm using CEDET1.0-pre7& Gnu global 5.8.2 in emacs 22.2.1.
>>>
>>> I use "semantic-complete-jump" and use TAB key for completion. It lists all the tags that I created using gtags, but when I choose a tag to jump to, it gives the following error. I've provided the .emacs configuration at the end. Any help to get over this problem is greatly appreciated.
>>>
>>> bugger entered--Lisp error: (no-method-definition semanticdb-set-buffer "#<semanticdb-table-global GNU Global Search Table>")
>>> signal(no-method-definition (semanticdb-set-buffer "#<semanticdb-table-global GNU Global Search Table>"))
>>> #[(object method&rest args) "ÂÃÄ !D\"" [method object signal no-method-definition object-name] 5 "Called if there are no implementations for OBJECT in METHOD.\nOBJECT is the object which has no method implementation.\nARGS are the arguments that were passed to METHOD.\n\nImplement this for a class to block this signal. The return\nvalue becomes the return value of the original method call."]([object semanticdb-table-global "GNU Global Search Table" [object semanticdb-project-database-global "global" unbound semanticdb-table nil (#0)] nil nil unbound nil] semanticdb-set-buffer [object semanticdb-table-global "GNU Global Search Table" [object semanticdb-project-database-global "global" unbound semanticdb-table nil (#0)] nil nil unbound nil])
>>> apply(#[(object method&rest args) "ÂÃÄ !D\"" [method object signal no-method-definition object-name] 5 "Called if there are no implementations for OBJECT in METHOD.\nOBJECT is the object which has no method implementation.\nARGS are the arguments that were passed to METHOD.\n\nImplement this for a class to block this signal. The return\nvalue becomes the return value of the original method call."] ([object semanticdb-table-global "GNU Global Search Table" [object semanticdb-project-database-global "global" unbound semanticdb-table nil ...] nil nil unbound nil] semanticdb-set-buffer [object semanticdb-table-global "GNU Global Search Table" [object semanticdb-project-database-global "global" unbound semanticdb-table nil ...] nil nil unbound nil]))
>>> no-applicable-method([object semanticdb-table-global "GNU Global Search Table" [object semanticdb-project-database-global "global" unbound semanticdb-table nil (#0)] nil nil unbound nil] semanticdb-set-buffer [object semanticdb-table-global "GNU Global Search Table" [object semanticdb-project-database-global "global" unbound semanticdb-table nil (#0)] nil nil unbound nil])
>>> apply(no-applicable-method [object semanticdb-table-global "GNU Global Search Table" [object semanticdb-project-database-global "global" unbound semanticdb-table nil (#0)] nil nil unbound nil] semanticdb-set-buffer [object semanticdb-table-global "GNU Global Search Table" [object semanticdb-project-database-global "global" unbound semanticdb-table nil (#0)] nil nil unbound nil])
>>> semanticdb-set-buffer([object semanticdb-table-global "GNU Global Search Table" [object semanticdb-project-database-global "global" unbound semanticdb-table nil (#0)] nil nil unbound nil])
>>> semanticdb-find-result-nth-in-buffer((([object semanticdb-table-global "GNU Global Search Table" [object semanticdb-project-database-global "global" unbound semanticdb-table nil ...] nil nil unbound nil] ("assert" function ... nil nil))) 0)
>>> semantic-complete-default-to-tag(nil)
>>> semantic-complete-read-tag-engine([object semantic-collector-project-brutish "Symbol: " #<buffer tagpvc_static.c> nil (([object semanticdb-table-global "GNU Global Search Table" [object semanticdb-project-database-global "global" unbound semanticdb-table nil ...] nil nil unbound nil] ... ... ... ... ...)) "assert" "assert" nil (([object semanticdb-table-global "GNU Global Search Table" [object semanticdb-project-database-global "global" unbound semanticdb-table nil ...] nil nil unbound nil] ...)) #<buffer tagpvc_static.c>] [object semantic-displayor-traditional-with-focus-highlight "simple" nil unbound unbound] "Symbol: " nil nil nil)
>>> semantic-complete-read-tag-project("Symbol: ")
>>> semantic-complete-jump()
>>> call-interactively(semantic-complete-jump)
>>>
>>>
>>> ==============
>>> Configuration:
>>> (load-file "~/tools/emacs/cedet-1.0pre7/common/cedet.el")
>>> (global-ede-mode 1)
>>> (semantic-load-enable-minimum-features)
>>> (semantic-load-enable-code-helpers)
>>> ;;setup gnu global for cedet
>>> (setq cedet-global-command "global")
>>> (setq ede-locate-setup-options
>>> '(ede-locate-global
>>> ede-locate-base))
>>> (semanticdb-enable-gnu-global-databases 'c++-mode)
>>> (semanticdb-enable-gnu-global-databases 'c-mode)
>>>
>>> ;;create the project
>>> ;;i have changed this a bit, but this is roughly how i create the project
>>> (ede-cpp-root-project "proj" :file "/src/Makefile"
>>> :include-path '( "/include1" ))
>>>
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> cedet-semantic mailing list
>>> cedet-semantic@...
>>> https://lists.sourceforge.net/lists/listinfo/cedet-semantic
>>>
>>
>>
>>
>>
>
>
>
>
>
|