Comments (7)
Thank you @mipastgt for the info :)
I can confirm, that the IntelliJ Update indeed fixes this Issue 🎉
Now the common
Modules are configured properly to target the same & correct JVM-Version as the other Modules 🎉
from korge.
So I think this bug is because either:
- The
commonMain
(& maybe android as well) modules is configured to the wrong target (JVM 1.8) - Or the
jvmTarget
module is configured to the wrong target (JVM 11)
from korge.
I fear this might be not possible to solve according to this issue.
I tried around a lot and was only able to lower the target of jvmMain
to "1.8" but I'm not sure if that breaks something :/
So I think always including targetJs()
or prepending @file:Suppress("INLINE_FROM_HIGHER_PLATFORM")
to every file using Korge Methods is our only solution for now :/
(At least if we cannot make jvmMain
.target = "JVM 1.8" work)
from korge.
I too am running into this issue on the hello world example when I configured it to only enable jvm.
E.g:
korge {
id = "com.sample.demo"
targetJvm()
serializationJson()
}
What the error looks like:
After some browsing I found that JVM target 11 comes from here:
from korge.
@Kietyo I had that suspicion as well, but I was only able to change the JVM Target of the Platform Modules, not the common
Module itself :/
This issue might be rooted into Kotlin-Multiplatform itself 😅
from korge.
And for lowering the JVM-Target for all Modules to 1.8:
We really need to test if Korge is able to run entirely on 1.8. Because I think there was some kind of assert somewhere, that it needs to run on JVM 11.
I might check later if I find that.
from korge.
I have been suffering from this issue independently of korge for quite some time too but in the latest version of IntelliJ this seems to be fixed now.
IntelliJ IDEA 2023.3 (Community Edition)
Build #IC-233.11799.241, built on December 2, 2023
I removed all the lines with @file:Suppress("INLINE_FROM_HIGHER_PLATFORM")
in my code yesterday and don't see any issues anymore.
from korge.
Related Issues (20)
- URL schemes should be case-insensitive, producing only lowercase scheme names for consistency
- if the base URL is empty or not absolute, how should it be resolved? I think we should return the access URL if it's absolute; otherwise, return an empty string or null.
- Unable to get started with "Cannot inline bytecode built with JVM target 11 into bytecode that is being built with JVM target 1.8" error
- `packageJvmWindowsApp` doesn't work with `org.gradle.configuration-cache=true`
- Split korge and korlibs
- Add Support for Subprotocol/subScheme in URL HOT 3
- Change graphics settings at runtime is not working: fps & antialiasing. HOT 1
- readSound.play have issues in JVM windows while readMusic seems to work fine
- KorAU - PlaybackParameters - startTime is not working
- Unexpected results with CharReaderFromSyncStream when chunk size is less than reading count
- Why korlibs-crypto depends on korlibs-time? HOT 1
- LinuxArm64 and other native targets for time and crypto? HOT 4
- Circles and RoundRects not rendering properly (blurry and bad strokes) HOT 1
- Implement `View.positionWithAnchor` when intersection types are available
- Provide a `View.simpleAnimatorSequence`
- Support for watchOS HOT 1
- Fixed Point Integer classes lack some math functions and still use float / doubles in some of their underlying operations.
- Request: Support TCP Low Latency mode for TCP sockets. Also support QUICK ACK for TCP sockets. HOT 3
- Request: Add Support for UDP Connections in KorGE "common" code. HOT 5
- Issue with importing firebase gitlive 1.11.1 HOT 1
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 korge.