fwcd / fwcd/kotlin-language-server

Using the KLS with a spring project + mvn + launching within remote docker container

Open
#290 2 comments 0 reactions 0 assignees View on GitHub
bug dependency resolution maven
Dominant language
Kotlin
Stars
2k
Forks
252
PR merge metrics
No merged PRs in 30d

Description

I really love using the remote docker container extension so I don't have to install all of these runtimes on my host PC. I'm wondering if this is causing the issue. But essentially I've started a boilerplate spring rest api using kotlin and added the fwcd kls. It's not able to resolve any imports at all. Attaching image below as well as the relevant repo. Any help is greatly appreciated.

Edit: I updated the dev container docker file to install kotlin in the remote container as I think I was missing this. But still getting the same unresolved errors.
```
RUN su vscode -c "umask 0002 && . /usr/local/sdkman/bin/sdkman-init.sh && sdk install kotlin"
```

https://github.com/thedewpoint/weather-service
![image](https://user-images.githubusercontent.com/3211587/116614220-a69b6880-a907-11eb-8c14-6ff3edd98b3e.png)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the linked weather-service repository and its remote container configuration, then reproduce the unresolved imports while launching the Kotlin language server in the container. Compare the Kotlin, Spring and Maven project setup with the language server's environment; done means the Spring project's imports resolve in the remote container.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, kotlin, spring
Domain
devops, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.