Comments (12)
we will need to wait for a release of kotlin, then we can update on KSP side.
from ksp.
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.
Out of curiosity, what is needed to support the native and js platforms?
from ksp.
Currently, the compiler extension point only exists on JVM platform.
from ksp.
Hi. What's the state of JS IR support?
from ksp.
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.
@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.
from ksp.
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.
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.
@andrew-k-21-12 Seems like a bug, can you create an issue for this?
from ksp.
@neetopia Sure, here it is - #1056. Will remove my reproduce repo when the issue will be closed.
from ksp.
Related Issues (20)
- [KSP2] KSAnnotations with KClass properties with a default value always resolve to error types HOT 1
- [KSP2] KSAnnotations with annotation properties with a default value always resolve to null HOT 1
- ksp configurations do not resolve versions from gradle platform
- [KSP2] Kotlin `Function*` types reports inconsistent package and qualified names
- [KSP2] Intersection types are not modeled
- Typealias annotation parameters are resolved as "alias target", not the type alias itself
- [Help Wanted] Cannot get build directory using codegenerator
- Stack overflow when resolving the type of typealias + cycles
- [KSP2] Modifier.FUN is missing in functional interfaces
- KSP2: KtInvalidLifetimeOwnerAccessException: Access to invalid KtAlwaysAccessibleLifetimeToken: PSI has changed since creation
- [ksp] [Hilt] Cannot update Dagger/Hilt to 2.49
- [KSP2] Nullable type arg type becomes non-null after replace() call
- [KSP2] Modifiers are missing for property accessors
- [KSP2] Couldn't find type parameter bounds of functions
- [KSP2] Resolver.mapToJvmSignature doesn't unwrap inline classes
- KSP2: Model enum entries in annotation values
- [KSP2] Type annotations are sometimes missing on type variable bounds in Java
- [KSP2] Property setter parameter name becomes `value` HOT 1
- [feature request] Retrieve property default value for compile time constants
- Java native modifier is missing
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ksp.