Skip to main content



      Home
Home » Modeling » TMF (Xtext) » Content assist on java methods and xbase
Content assist on java methods and xbase [message #1809153] Wed, 10 July 2019 05:35 Go to next message
Eclipse UserFriend
Hi all,

I created a grammar with xbase and it is working fine.
I have a rule with a XBlockExpression in order to have a java like language.

When I write in my dsl :
var test = 'Hello'
test.t

And I make a ctrl+space I have some proposals like toCharArray, toString etc.. and it is ok

But when I write this code :
var test = 'Hello'
test.

I don't have any proposals... How can I have the same proposals as above ?

Thanks in advance !
Re: Content assist on java methods and xbase [message #1809158 is a reply to message #1809153] Wed, 10 July 2019 06:32 Go to previous messageGo to next message
Eclipse UserFriend
hi, i cannot reproduce this with the domain model example
=> problem must be specific to your dsl or example project
Re: Content assist on java methods and xbase [message #1814089 is a reply to message #1809158] Tue, 03 September 2019 08:04 Go to previous messageGo to next message
Eclipse UserFriend
I added this configuration in my DSL :
parserGenerator = {
  options = {
    backtrack = true
  }
}

When i remove this configuration (and change my grammar...), i don't have any problem with autocomplete.

Thakns for your answer !
Re: Content assist on java methods and xbase [message #1814090 is a reply to message #1814089] Tue, 03 September 2019 08:21 Go to previous messageGo to next message
Eclipse UserFriend
per se this is a bad idea. the question is: what is in your grammar that makes it ambigous
Re: Content assist on java methods and xbase [message #1814126 is a reply to message #1814090] Wed, 04 September 2019 05:41 Go to previous message
Eclipse UserFriend
Yes, you're right : this is a bad idea. But i changed my grammar to disambigous it !
Previous Topic:Don't resolve expressions during indexing!
Next Topic:How to hide part of text in xtext editor
Goto Forum:
  


Current Time: Mon Mar 24 23:45:19 EDT 2025

Powered by FUDForum. Page generated in 0.03882 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top