-
Notifications
You must be signed in to change notification settings - Fork 193
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing code assist in map-style constructor #286
Comments
Can you try again with the latest snapshot? I am getting the proper completion proposals in this scenario. |
I'm trying with Greclipse 2.9.2.xx-201705070120-e46, but I can't understand if I'm doing anything wrong, because I still get no suggestions at all in the above scenario... |
Sorry, I tried something that I thought was the equivalent. There are a couple things going on in your example. 1. The completion is within a map-entry expression (pretty normal). 2. Your inner classes are not static. This combination results in a variant of a constructor call expression that is not properly traversed by the type inferencing engine. So, I will get this fixed. Should not take too long. But if you do not need to refer to any parts of class |
With 2.9.2.xx-201705080332-e46 it seems to work now! However, if I add |
I opened https://issues.apache.org/jira/browse/GROOVY-8179 for the compiler problem. |
From a code snippet in the old GRECLIPSE-1800.
Consider the following:
Trying to invoke code assist at | brings no suggestions. I would expect to see
c.C.AnotherClass.createString()
(sinceMyBean.foo
is of type String) suggested first, thenc.C.AnotherClass.createInt()
next.The text was updated successfully, but these errors were encountered: