|
Re: Content Assist stops working [message #997617 is a reply to message #997358] |
Mon, 07 January 2013 17:11 |
Sebastian Zarnekow Messages: 3118 Registered: July 2009 |
Senior Member |
|
|
Am 07.01.13 01:33, schrieb Barrie Treloar:
> When running the DSL, content assist works fine on one line, and the
> next line it stops working.
>
> While debugging through to see what is happening, I can see that no
> proposals are being added for the point where it starts failing, but I
> can't work out why.
>
> While fiddling with this to try to add some more details, I created a
> new grammar instance and pasted in bits until it started failing.
>
>
> RENAME DIAGRAM "User 14" TO "Technical Reference Model S"
> (works up to here)
> RENAME SYMBOL "User 2" to "Component Instance"
> (stops working here)
>
>
> The problem is "to".
> If I change this to "TO" it starts working again.
>
> So it has something todo with case insensitivity.
> The grammar doesn't give me any errors, so it is parsing correctly.
> Just content assist stops working.
>
> Anyone have some clues?
>
Did you configure case insensitivity for the content assist parser, too?
Best regards,
Sebastian
--
Looking for professional support for Xtext, Xtend or Eclipse Modeling?
Go visit: http://xtext.itemis.com
|
|
|
|
Re: Content Assist stops working [message #998057 is a reply to message #997882] |
Wed, 09 January 2013 09:25 |
Sebastian Zarnekow Messages: 3118 Registered: July 2009 |
Senior Member |
|
|
Hi Barrie,
I think you did use the
parser.antlr.ex.ca.ContentAssistParserGeneratorFragment
instead of the
parser.antlr.ex.rt.AntlrGeneratorFragment, didn't you?
Regards,
Sebastian
--
Looking for professional support for Xtext, Xtend or Eclipse Modeling?
Go visit: http://xtext.itemis.com
Am 09.01.13 00:13, schrieb Barrie Treloar:
> Sebastian Zarnekow wrote on Mon, 07 January 2013 12:11
>> Am 07.01.13 01:33, schrieb Barrie Treloar:
>> > Anyone have some clues?
>> >
>>
>> Did you configure case insensitivity for the content assist parser, too?
>
>
> That's a fair call Sebastian.
>
> I dont think so.
>
>
> {MyDsl.mwe2}
> fragment = parser.antlr.ex.rt.AntlrGeneratorFragment {
> options = {
> // ignore case keywords
> ignoreCase = true
> }
> }
> ...
> fragment = contentAssist.JavaBasedContentAssistFragment {}
> ...
> // generates a more lightweight Antlr parser and lexer
> tailored for content assist
> fragment = parser.antlr.XtextAntlrUiGeneratorFragment {}
>
>
> I had read
> http://zarnekow.blogspot.com.au/2010/06/new-in-xtext-case-insensitive-languages.html
> before, but its taken a few reads to digest what it is saying as well as
> the context of actually needing to make those changes.
>
> After replacing
> fragment = parser.antlr.XtextAntlrUiGeneratorFragment
>
> with
> fragment = parser.antlr.ex.rt.AntlrGeneratorFragment {
> options = {
> // ignore case keywords
> ignoreCase = true
> }
> }
>
> content assist starts working again.
>
> Thanks.
|
|
|
Powered by
FUDForum. Page generated in 0.03260 seconds