Xtendroid icon indicating copy to clipboard operation
Xtendroid copied to clipboard

Autocomplete

Open FunnyDevs opened this issue 7 years ago • 8 comments

Hi! I 'm trying xtend and xtendroid samples but i am not able to use autocomplete on overriding fuctions inside class. When i click with mouse on the suggestion the IDE deletes the First lettera i errore instead of generate the fuctions. IS IT normal? Thanks

FunnyDevs avatar Oct 22 '17 10:10 FunnyDevs

Overridng autocomplete should work, just remember that Xtend uses the override keyword instead of def when overriding. I use it like this:

@AndroidActivity class MyActivity {
   onC<Ctrl+Space>
}```

At the point of pressing Ctrl+Space you should get autocomplete for overriding `OnCreate`, etc.

tobykurien avatar Oct 22 '17 18:10 tobykurien

yes, i get the autocomplete but when i press enter, the "onC" disappers and the IDE doesn't create the functions and deletes all.

I have recorded a video to show you the problem

https://streamable.com/g0yg8

FunnyDevs avatar Oct 22 '17 18:10 FunnyDevs

This looks like a bug in the Xtend plugin. Does it do that if you press Enter instead of clicking with the mouse? You can discuss this bug on the Xtend group here: https://groups.google.com/group/xtend-lang

Also check if you'r'e using the latest stable release here: http://xtend-lang.org

tobykurien avatar Oct 22 '17 18:10 tobykurien

Even if i press enter. I would like to use xtend and xtendroid but with this problem is impossibile. On Gitter they said me that xtend idea plugin is abandoned.

FunnyDevs avatar Oct 22 '17 18:10 FunnyDevs

No it's not abandoned. It's available for both Eclipse and IntelliJ. See the above two links for more. Xtend has reached a high level of maturity which is why there aren't lots of releases. I can say I've been using Xtend since 2013 and haven't encountered your issue, so it may be some installation or configuration issue. Try asking on the Xtend Google group linked above.

tobykurien avatar Oct 22 '17 18:10 tobykurien

no, they said the xtend intellij idea plugin was abandoned ,last release almost 2 years ago. I have downloaded even your xtendroid examples and i have same problem (i use android studio 2.3.2)

FunnyDevs avatar Oct 22 '17 19:10 FunnyDevs

@FunnyDevs this has been abandoned. Xtext-idea-gradle-plugin is alive and kicking.

Buggaboo avatar Oct 23 '17 09:10 Buggaboo

I found the problem but there is no solution online

' RuntimeException: Error during auto build.: java.io.IOException: Invalid file name: ':' '

It's a common problem with xtend on windows

FunnyDevs avatar Oct 23 '17 19:10 FunnyDevs