|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: Regarding ignoreCase [message #1726012 is a reply to message #1726010] |
Wed, 09 March 2016 04:15 |
pranay roy Messages: 196 Registered: January 2016 |
Senior Member |
|
|
I have another observation from this. I see that the content assist does not does not suggest full keywords on partial text except "plot"
When I type p i get "plot". while for other keywords I dont get the content assist. Example.:
"plot abc fo" doesn't suggest "plot comm for". Same thing for all keywords except plot(which is the first word).
Moreover, I get content assist for average as well.
"prefix" :"plot a"
gives me "plot average"
but
"prefix" "plot average f" does not show "plot average for"
Am I missing something?
[Updated on: Wed, 09 March 2016 04:26] Report message to a moderator
|
|
|
|
Re: Regarding ignoreCase [message #1726015 is a reply to message #1726014] |
Wed, 09 March 2016 05:04 |
|
p.s:
besides this: use the debugger !!!!
this would have shown you that the contexts get lost and how you can workaround it
override def Iterable<ContentAssistContext> getFilteredContexts(Collection<ContentAssistContext> contexts) {
return contexts
}
please file a bug
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: Regarding ignoreCase [message #1726459 is a reply to message #1726457] |
Mon, 14 March 2016 06:44 |
|
?!? please open a new ticket and provide all needed. as i said before the current Content assist impl Kind a sucks. you should use the DEBUGGER to find out what happens.
and a unit test to find out how your stuff is actually parsed.
if days is a keyword it may not be parsed as an ID and thus not as a measure.
you may introduce a datatype rule like
MYID : ID | 'days' | 'otherkeyword' | ....;
but thgis may turn your already ambigous grammar into an ambiguity nightmare
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
|
|
|
|
|
|
Re: Regarding ignoreCase [message #1726467 is a reply to message #1726465] |
Mon, 14 March 2016 07:39 |
|
val query ="plot active days"
val result = parseHelper.parse(query)
Assert.assertEquals("Found erros: " + result.eResource.errors.map[message].join(", "),0, result.eResource.errors.size)
a possible solutioin is to introduce a datatype rule
MyID: ID | 'days'| ... and use that in Measure. (might be ambigous)
or simply escape the keyword using ^days
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
|
|
|
|
|
|
|
|
|
|
Re: Regarding ignoreCase [message #1727449 is a reply to message #1726605] |
Wed, 23 March 2016 08:40 |
pranay roy Messages: 196 Registered: January 2016 |
Senior Member |
|
|
Thanks for the reply.
How can I add multi words? . Instead of Hello i have a list of words that should be included.Can I add another Category called "KEYWORDS" and have it included here as (Hello). Does it add additional performance overhead.?
Could you give an example please.
MyID: ID|'Hello';
[Updated on: Wed, 23 March 2016 08:41] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|