Re: Semantic Idle Summary parsing error

Eric Ludlam <[email protected]> Mon, 01 Jun 2015 10:10:19 -0400
Newsgroups gmane.emacs.cedet
Message-ID <[email protected]>
On 05/10/2015 08:59 PM, Tu Do wrote:
> Hi Eric,
>
> Today I got this error:
>
> Idle Service Error semantic-idle-summary-idle-function: "#<buffer
> hdlc_ppp.c> - Wrong type argument: stringp, (((0) \"__le16\"))"
>
> When I was looking at this file:
> https://github.com/torvalds/linux/blob/master/drivers/net/wan/hdlc_ppp.c
>
> The error happens with semantic-idle-summary-mode turned on and on any
> variable/function.

Sorry for not replying sooner.

I can't repro this, and suspect is requires the whole project, or at 
least enough headers to get the le16 symbol into the working space, 
probably from the preprocessor.

Whenever you see an error from the idle handler, you can do:

M-x semantic-debug-idle-function RET

to get a more detailed stack.   In this case though, it looks like 
something bogus got into the preprocessor table.  Often it is easy to 
find the offending file (probably a linux header) and force a reparse to 
fix it.  I've never had repro steps to find what broke the pre-processor.

Eric

------------------------------------------------------------------------------