Re: BUG completion in region

Eric Ludlam <[email protected]> Wed, 13 Apr 2016 19:45:07 -0400
Newsgroups gmane.emacs.cedet
Message-ID <[email protected]>
On 03/24/2016 02:55 AM, Mandar Mitra wrote:
> Simon Brown wrote (Wed, Mar 23, 2016 at 07:13:23PM +0000):
>> Hello,
>>
>> With latest cedet (4b41ea6) There seems to be an interaction problem
>> with code completion. In the attached file if you try to complete line
>> 15 with C-M-i you get an error:
>>
>> completion-in-region: Assertion failed: (<= start (point)), #<marker at
>> 228 in /home/smb/Desktop/Cedet Bug/cedetBug.c>, 66
>>
>> I use company mode for completion and when this happens the point jumps
>> to the start of line 6 which is annoying. If I switch to built in cedet
>> the problem goes away. I don't know if this is a cedet bug or if it
>> belongs elsewhere. It was reported to the company mode project here:
>> https://github.com/company-mode/company-mode/issues/419
>>
>> So it's been present for some months. Any suggestions on how to debug
>> it?
>
>
> I've observed a possibly related problem, but didn't know where to report it / how to debug it.
>
> I have "." and ">" bound to a variant of semantic-complete-self-insert for completion of struct fields. When I type "x." or "x->" a menu of possible fields comes up, but on selecting one of them, point jumps to the structure definition instead of filling in the field name. I can't even go back where I was with C-u C-SPC.

Hi Simon and Mandar,

Sorry for a late reply.

I  fixed a bug similar to what Mandar is reporting in March, though I 
found it in Java, and specifically if the object field I was expanding 
was inside a call to another function.  ie -

   obj.method(obj2.completeme

I submitted that fix in 4a4801.

I wasn't able to reproduced Simon's problem, perhaps because of this 
fix.  That isn't clear to me.

Can you guys try out the latest version to see if that helps?

Thanks
Eric

------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z