Hello everyone, I'm encountering an error while tr...
# jewel
w
Hello everyone, I'm encountering an error while trying to build my project with standalone jewel[version0.28.0 251.26137]
Copy code
:main: Could not find org.jetbrains.skiko:skiko-awt-runtime-all:0.9.2.  
Searched in the following locations:  
- <https://repo.maven.apache.org/maven2/org/jetbrains/skiko/skiko-awt-runtime-all/0.9.2/skiko-awt-runtime-all-0.9.2.pom>  This dependency is required for my project, but it seems unavailable in the Maven Central Repository.- <https://maven.pkg.jetbrains.space/public/p/compose/dev/org/jetbrains/skiko/skiko-awt-runtime-all/0.9.2/skiko-awt-runtime-all-0.9.2.pom>
- <https://oss.sonatype.org/content/repositories/snapshots/org/jetbrains/skiko/skiko-awt-runtime-all/0.9.2/skiko-awt-runtime-all-0.9.2.pom>
- <https://packages.jetbrains.team/maven/p/kpm/public/org/jetbrains/skiko/skiko-awt-runtime-all/0.9.2/skiko-awt-runtime-all-0.9.2.pom>
- <https://www.jetbrains.com/intellij-repository/releases/org/jetbrains/skiko/skiko-awt-runtime-all/0.9.2/skiko-awt-runtime-all-0.9.2.pom>
- <https://www.jetbrains.com/intellij-repository/snapshots/org/jetbrains/skiko/skiko-awt-runtime-all/0.9.2/skiko-awt-runtime-all-0.9.2.pom>
This dependency is required for jewel, but it seems unavailable in the Maven Central Repository.
s
You need to add the IntelliJ Platform Dependencies repository yeah
We should probably change the standalone artefacts to depend on the "regular" Skiko libs
I'll file an issue
In the meantime, use
maven("<https://cache-redirector.jetbrains.com/intellij-dependencies>")
JEWEL-821 filed
w
Thanks, the build is working properly, but I have encountered new errors.
Copy code
java.lang.UnsatisfiedLinkError: 'void org.jetbrains.skia.paragraph.ParagraphStyleKt._nSetReplaceTabCharacters(long, boolean)'
	at org.jetbrains.skia.paragraph.ParagraphStyleKt._nSetReplaceTabCharacters(Native Method)
	at org.jetbrains.skia.paragraph.ParagraphStyleKt.access$_nSetReplaceTabCharacters(ParagraphStyle.kt:1)
	at org.jetbrains.skia.paragraph.ParagraphStyle.setReplaceTabCharacters(ParagraphStyle.kt:48)
	at androidx.compose.ui.text.platform.ParagraphBuilder.textStyleToParagraphStyle(ParagraphBuilder.skiko.kt:522)
	at androidx.compose.ui.text.platform.ParagraphBuilder.build(ParagraphBuilder.skiko.kt:318)
	at androidx.compose.ui.text.platform.ParagraphLayouter.layoutParagraph(ParagraphLayouter.skiko.kt:213)
	at androidx.compose.ui.text.platform.SkiaParagraphIntrinsics.<init>(SkiaParagraphIntrinsics.skiko.kt:80)
	at androidx.compose.ui.text.platform.SkiaParagraphIntrinsics_skikoKt.ActualParagraphIntrinsics(SkiaParagraphIntrinsics.skiko.kt:37)
	at androidx.compose.ui.text.ParagraphIntrinsicsKt.ParagraphIntrinsics(ParagraphIntrinsics.kt:126)
	at androidx.compose.ui.text.MultiParagraphIntrinsics.<init>(MultiParagraphIntrinsics.kt:106)
	at androidx.compose.foundation.text.modifiers.MultiParagraphLayoutCache.setLayoutDirection(MultiParagraphLayoutCache.kt:301)
	at androidx.compose.foundation.text.modifiers.MultiParagraphLayoutCache.layoutText-R2G3SPE(MultiParagraphLayoutCache.kt:327)
	at androidx.compose.foundation.text.modifiers.MultiParagraphLayoutCache.layoutText-R2G3SPE$default(MultiParagraphLayoutCache.kt:322)
	at androidx.compose.foundation.text.modifiers.MultiParagraphLayoutCache.layoutWithConstraints-K40F9xA(MultiParagraphLayoutCache.kt:192)
In addition, I also need to explicitly declare the following three dependencies, otherwise they cannot be accessed in the project :
Copy code
jewel-ui = { module = "org.jetbrains.jewel:jewel-ui", version.ref = "jewel" }
jewel-foundation = { module = "org.jetbrains.jewel:jewel-foundation", version.ref = "jewel" }
jewel-decorated-window = { module = "org.jetbrains.jewel:jewel-decorated-window", version.ref = "jewel" }
s
The Skia errors are probably due to using the wrong Skia version
Or rather, Skiko, I guess?
As for the extra dependencies, the first two should not be necessary, as they're transitive dependencies of the
int-ui-standalone
artifact. The last one should be a transitive dependency of the
int-ui-decorated-window
artifact
Oh, I see what's going on. They're marked as runtime dependencies in the POM
I've added to the JEWEL-821 issue
Thanks for letting me know 🙂
We'll have it fixed in the next release
w
Thanks for your help! I think the Skiko error was caused by a compatibility issue with the Compose version. After downgrading from Compose 1.8.1 to 1.8.0-alpha04, the UnsatisfiedLinkError disappeared. It seems there might be a dependency mismatch between Skiko and the newer Compose version.
s
Yes you need to match the right version of Skiko. CMP 1.8.0-alpha04 -> Skiko 0.9.2, CMP 1.8.1 -> Skiko 0.9.4.2
w
Thanks, I got, will the next release of Jewel update the dependency to the latest Compose version?
s
The PR is open... We'll see when it gets merged in IJ
❤️ 1