tobykurien / Xtendroid

Xtendroid is a DSL (domain-specific language) for Android that greatly reduces boilerplate code while providing great tooling support
MIT License
242 stars 23 forks source link

Autocomplete #136

Open FunnyDevs opened 6 years ago

FunnyDevs commented 6 years ago

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

tobykurien commented 6 years ago

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.
FunnyDevs commented 6 years ago

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

tobykurien commented 6 years ago

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

FunnyDevs commented 6 years ago

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.

tobykurien commented 6 years ago

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.

FunnyDevs commented 6 years ago

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)

Buggaboo commented 6 years ago

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

FunnyDevs commented 6 years ago

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