AndroidIDEOfficial / AndroidIDE

AndroidIDE is an IDE for Android to develop full featured Android apps.
https://m.androidide.com
GNU General Public License v3.0
2.31k stars 276 forks source link

[FEATURE]: Add Kotlin LSP #211

Open KanhaKanhaiya opened 2 years ago

KanhaKanhaiya commented 2 years ago

Is your feature request related to a problem? Please describe. Yes. When editing Kotlin code, no suggestions are displayed for imports.

Describe the solution you'd like Automatically add imports and display suggestions for functions.

Describe alternatives you've considered No. AndroidIDE is one of its kind.

Additional context N/A

itsaky commented 2 years ago

It'll be added soon. Currently I'm focusing more on other issues.

KanhaKanhaiya commented 2 years ago

Ok

PranavPurwar commented 2 years ago

This repository may help in Kotlin LSP https://github.com/fwcd/kotlin-language-server/tree/main/server/src/main/kotlin/org/javacs/kt

leap0x7b commented 1 year ago

You could look at how CodeAssist implements Kotlin code completion https://github.com/tyron12233/CodeAssist/tree/main/kotlin-completion

Kovalit31 commented 1 year ago

I also work for Kotlin completion support in this app. So don't worry.

abdulbasid123 commented 1 year ago

I have also faced Kotlin compilation problem. I get stuck at 'compileDebugKotlin' and it says 'Could not perform incremental.... Could not connect to kotlin deamon...'

Kovalit31 commented 1 year ago

@abdulbasid123 Are you using apk from Releases section? Or you using the latest apk from Actions?

abdulbasid123 commented 1 year ago

@abdulbasid123 Are you using apk from Releases section? Or you using the latest apk from Actions?

If you mean the AndroidIDE apk, I downloaded it from the official website.

I tried to compile a project in Kotlin, but failed, it says that couldn't not connect to the deaom (or something like this), and it couldn't not perform incremental.... Blablablabla.

Any help would you offer to me ?

Kovalit31 commented 1 year ago

@abdulbasid123 Are you using apk from Releases section? Or you using the latest apk from Actions?

If you mean the AndroidIDE apk, I downloaded it from the official website.

I tried to compile a project in Kotlin, but failed, it says that couldn't not connect to the deaom (or something like this), and it couldn't not perform incremental.... Blablablabla.

Any help would you offer to me ?

Difficult question. Probably there was two opinions, why it notices. First - not implemented daemon in app, and second - no daemon for architectures aarch64-linux-android, armhf-linux-androideabi and blablabla I think, this bug can fix community, what have got a good PC for compiling daemon, or developer. You probably can try to fix it yourself (compile daemon and seek, how it works), but you need lots of time to find and compile this daemon (actually, it need to be at jetbrain's repositories), but no way it will work. Finally, if you really need to compile something on this app tomorrow, write on Java) There wasn't any bugs from implementation) Or, if is very badly, use GitHub Actions (but you need private repository) and build app with Android CI (see .github/workflows/android_ci.yml or something same in this repository). Hope the developer adds full compilation support for kotlin ...

ghost commented 1 year ago

Hi @itsaky! When will the Kotlin auto-complate feature be added?

Kovalit31 commented 1 year ago

Hi @itsaky! When will the Kotlin auto-complate feature be added?

See isaky's message for 10 months ago.

1029PARS1029 commented 1 week ago

if we get the autocomplation in this year, it would be great @itsaky.