Git Product home page Git Product logo

Comments (12)

neetopia avatar neetopia commented on May 7, 2024 2

we will need to wait for a release of kotlin, then we can update on KSP side.

from ksp.

ting-yuan avatar ting-yuan commented on May 7, 2024 1

Yes. We'll release KSP 1.6.0-RC-1.0.0 later today.

btw, there is a KSP 1.6.0-M1-1.0.0 available if you consider Kotlin 1.6.0-M1.

from ksp.

raniejade avatar raniejade commented on May 7, 2024

Out of curiosity, what is needed to support the native and js platforms?

from ksp.

ting-yuan avatar ting-yuan commented on May 7, 2024

Currently, the compiler extension point only exists on JVM platform.

from ksp.

edrd-f avatar edrd-f commented on May 7, 2024

Hi. What's the state of JS IR support?

from ksp.

dhcoder avatar dhcoder commented on May 7, 2024

Seems like this has experimental support as of 1.5.20? https://github.com/google/ksp/releases/tag/1.5.20-1.0.0-beta03 Haven't tried it yet, will hopefully be chasing this down myself today

from ksp.

evant avatar evant commented on May 7, 2024

@dhcoder That release had js support, but only for legacy, not IR. There were changes needed to the compiler for that JetBrains/kotlin#4264. As those are merged now, not sure if we need to wait for a new release of kotlin, or an update in ksp, or both?

from ksp.

dhcoder avatar dhcoder commented on May 7, 2024

from ksp.

dhcoder avatar dhcoder commented on May 7, 2024

I saw that 1.6.0 is RC now and was curious -- will that contain the hooks necessary to allow KSP to support JS IR?

from ksp.

andrew-k-21-12 avatar andrew-k-21-12 commented on May 7, 2024

When using the kotlin("js") plugin, including the id("com.google.devtools.ksp") plugin (of version 1.7.10-1.0.6) leads to the exception:

java.lang.IllegalStateException: You already registered Kotlin/JS target with another compiler: legacy

It's thrown on the following lines:

kotlin {
    js(IR) {
        binaries.executable()
        browser {}
    }
}

The only way to get rid from this exception (or at least the one could find 🙂) - is to switch to the LEGACY compiler in the lines above.

The issue can be easily fixed by migrating to the kotlin("multiplatform") plugin instead. It seems to be super minor thing, but anyway, it's a little bit strange to use Kotlin Multiplatform when your project is Kotlin/JS-only.

Can add full build.gradle.kts files if needed.

from ksp.

neetopia avatar neetopia commented on May 7, 2024

@andrew-k-21-12 Seems like a bug, can you create an issue for this?

from ksp.

andrew-k-21-12 avatar andrew-k-21-12 commented on May 7, 2024

@neetopia Sure, here it is - #1056. Will remove my reproduce repo when the issue will be closed.

from ksp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.