fwcd / kotlin-language-server

Kotlin code completion, diagnostics and more for any editor/IDE using the Language Server Protocol
MIT License
1.67k stars 210 forks source link

Giant Project & VS Code Restart #160

Open bleshik opened 5 years ago

bleshik commented 5 years ago

My current setup: 1) MacOS Mojave 2) VS Code Insiders 3) Remote SSH Extension 4) On the Remote Host the Kotlin extension is installed (which obviously uses kotlin-language-serve)

Problem: The setup itself works, but not very usable. For a project Im currently working on it takes almost 2 hours to resolve dependencies before the server initialised. When the init process is done, the extension works just fine. However, the 2 hours init process is performed every time I connect to the remote host (or restart the vs code).

Expected behaviour: After a full successful initialisation I'd expect the server to use the resolved dependencies event after the restart, the dependencies update may be done in background, while the server uses the (cached?) result after the previous initialisation. If there is such a caching ability, it would be very useful to have the description of how to set it up on README.

fwcd commented 5 years ago

Yeah, caching the dependencies seems like a reasonable solution to this. Do you use Gradle or Maven? In case you use Gradle, a daemon should keep running in the background providing fast, incremental builds/dependency resolutions.

bleshik commented 5 years ago

@fwcd I'm using Gradle, I think I've explicitly disabled daemons due to some issues, I'll give it a try with daemons a bit later. Thank you for the hint!