AndroidIDE icon indicating copy to clipboard operation
AndroidIDE copied to clipboard

[FEATURE]: Add Kotlin LSP

Open KanhaKanhaiya opened this issue 2 years ago • 12 comments

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

KanhaKanhaiya avatar Jun 05 '22 10:06 KanhaKanhaiya

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

itsaky avatar Jun 05 '22 15:06 itsaky

Ok

KanhaKanhaiya avatar Jun 05 '22 15:06 KanhaKanhaiya

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

PranavPurwar avatar Jun 29 '22 14:06 PranavPurwar

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

leap0x7b avatar Oct 26 '22 09:10 leap0x7b

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

Kovalit31 avatar Jan 30 '23 13:01 Kovalit31

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...'

abdulbasid123 avatar Jan 30 '23 13:01 abdulbasid123

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

Kovalit31 avatar Feb 01 '23 06:02 Kovalit31

@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 ?

abdulbasid123 avatar Feb 20 '23 15:02 abdulbasid123

@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 ...

Kovalit31 avatar Feb 26 '23 14:02 Kovalit31

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

ghost avatar Apr 07 '23 09:04 ghost

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

See isaky's message for 10 months ago.

Kovalit31 avatar Apr 07 '23 19:04 Kovalit31