Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Where is the KPRCServer or install(Krpc) in Linux X64 version 0.4.0? #250

Open
lolosiax opened this issue Dec 24, 2024 · 3 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@lolosiax
Copy link

lolosiax commented Dec 24, 2024

Describe the bug
I was going to use kRPC in Kotlin Native, but I couldn't start my experiment based on the tutorial because some classes didn't exist.

To Reproduce
Steps to reproduce the behavior:

  1. Kotlin version
    2.0.21
  2. Gradle version
    8.10
  3. OS (Or at least KMP platform)
    target: linux X64, Ubuntu 22.04 and in the docker container, dev: Windows 11 23H2.
  4. Minimal reproducer in code
    image
    Why is there no kotlinx.rpc.krpc.server package? There is only package kotlinx.rpc.krpc.server.internal, which is not correct.
plugins {
    kotlin("multiplatform")
    kotlin("plugin.serialization")
    id("org.jetbrains.kotlinx.rpc.plugin")
}

kotlin {
    linuxX64("native").apply {
        binaries {
            executable {
                entryPoint = "top.lolosia.rpc.main"
            }
        }
    }

    sourceSets {
        nativeMain.dependencies {
            implementation(project(":rpc-common"))
            implementation("org.jetbrains.kotlinx:kotlinx-rpc-krpc-server:0.4.0")
            implementation("org.jetbrains.kotlinx:kotlinx-rpc-krpc-ktor-server:0.4.0")
            implementation("org.jetbrains.kotlinx:kotlinx-rpc-krpc-serialization-json:0.4.0")
            implementation("io.ktor:ktor-server-core:3.0.2")
            implementation("io.ktor:ktor-server-cio:3.0.2")
        }
    }
}
  1. Error description
    No ktor-server implementation for linux X64 was found
  2. And so on

Expected behavior
According to the Readme.md, import these classes correctly and continue my attempt.

Additional context
I'm going to place a binary executable containing the kRPC server in any docker container so that I can access it from the outside. But I ran into a problem. I couldn't find these classes in klib, so I couldn't keep trying the Readme.md.

@lolosiax lolosiax added the bug Something isn't working label Dec 24, 2024
@lolosiax
Copy link
Author

@Mr3zee Excuse me, I haven't received your reply. Did I raise the issues by mistake? Should I go to Jetbrains YouTrack to raise this issue?

@Mr3zee
Copy link
Collaborator

Mr3zee commented Dec 25, 2024

Hey @lolosiax !
Thank you for the question and sorry for the delayed response. The kmp support for server will arrive in 0.5.0

@lolosiax
Copy link
Author

Thank you for your efforts. May I ask how long it will take to release this version? Is a SNAPSHOT version available?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants