"Select" Managed Package Flagged as Error by Code Analysis

9 views
Skip to first unread message

Kyle Crouse

unread,
Aug 10, 2017, 12:23:17 PM8/10/17
to Illuminated Cloud Q&A
I use a managed package that has namespace prefix of "Select". Anytime I reference that package, the code analysis flags it as an error. Usually the error is something like "______ expected, got 'Select'".

My hunch is that it's flagged because the analysis only expects to see "select" used inside a query.

Is this a bug with the code analysis or is there anything I can do to solve it on my end?

Scott

unread,
Aug 10, 2017, 12:25:30 PM8/10/17
to Illuminated Cloud Q&A
Yeah, Apex is interesting...many reserved words can also be used as identifiers.  This makes parsing...fun.  IC's Apex parser has a mechanism for dealing with this, but I add keywords to it by exception rather than in blanket fashion.  Evidently "select" needs to be added to that list.  Do you mind logging a bug in the public issue tracker so that it stays squarely on my radar, and I'll take care of it in the next build.

Regards,
Scott Wells

Kyle Crouse

unread,
Aug 10, 2017, 12:42:31 PM8/10/17
to Illuminated Cloud Q&A
Awesome, thanks for the quick response! Here's the new issue.

Scott

unread,
Aug 10, 2017, 12:46:37 PM8/10/17
to Illuminated Cloud Q&A
Thanks, Kyle.  I'll take care of it for the next build, likely early next week.
Reply all
Reply to author
Forward
0 new messages