https://kotlinlang.org logo
Docs
Join the conversationJoin Slack
Channels
100daysofcode
100daysofkotlin
100daysofkotlin-2021
advent-of-code
aem
ai
alexa
algeria
algolialibraries
amsterdam
android
android-architecture
android-databinding
android-studio
androidgithubprojects
androidthings
androidx
androidx-xprocessing
anime
anko
announcements
apollo-kotlin
appintro
arabic
argentina
arkenv
arksemdevteam
armenia
arrow
arrow-contributors
arrow-meta
ass
atlanta
atm17
atrium
austin
australia
austria
awesome-kotlin
ballast
bangladesh
barcelona
bayarea
bazel
beepiz-libraries
belgium
berlin
big-data
books
boston
brazil
brikk
budapest
build
build-tools
bulgaria
bydgoszcz
cambodia
canada
carrat
carrat-dev
carrat-feed
chicago
chile
china
chucker
cincinnati-user-group
cli
clikt
cloudfoundry
cn
cobalt
code-coverage
codeforces
codemash-precompiler
codereview
codingame
codingconventions
coimbatore
collaborations
colombia
colorado
communities
competitive-programming
competitivecoding
compiler
compose
compose-android
compose-desktop
compose-hiring
compose-ios
compose-mp
compose-ui-showcase
compose-wear
compose-web
connect-audit-events
corda
cork
coroutines
couchbase
coursera
croatia
cryptography
cscenter-course-2016
cucumber-bdd
cyprus
czech
dagger
data2viz
databinding
datascience
dckotlin
debugging
decompose
decouple
denmark
deprecated
detekt
detekt-hint
dev-core
dfw
docs-revamped
dokka
domain-driven-design
doodle
dsl
dublin
dutch
eap
eclipse
ecuador
edinburgh
education
effective-kotlin
effectivekotlin
emacs
embedded-kotlin
estatik
event21-community-content
events
exposed
failgood
fb-internal-demo
feed
firebase
flow
fluid-libraries
forkhandles
forum
fosdem
fp-in-kotlin
framework-elide
freenode
french
fritz2
fuchsia
functional
funktionale
gamedev
ge-kotlin
general-advice
georgia
geospatial
german-lang
getting-started
github-workflows-kt
glance
godot-kotlin
google-io
gradle
graphic
graphkool
graphql
graphql-kotlin
graviton-browser
greece
grpc
gsoc
gui
hackathons
hacktoberfest
hamburg
hamkrest
helios
helsinki
hexagon
hibernate
hikari-cp
hire-me
hiring
hongkong
hoplite
http4k
hungary
hyderabad
image-processing
india
indonesia
inkremental
intellij
intellij-plugins
intellij-tricks
internships
introduce-yourself
io
ios
iran
israel
istanbulcoders
italian
jackson-kotlin
jadx
japanese
jasync-sql
java-to-kotlin-refactoring
javadevelopers
javafx
javalin
javascript
jdbi
jhipster-kotlin
jobsworldwide
jpa
jshdq
juul-libraries
jvm-ir-backend-feedback
jxadapter
k2-early-adopters
kaal
kafka
kakao
kalasim
kapt
karachi
karg
karlsruhe
kash_shell
kaskade
kbuild
kdbc
kgen-doc-tools
kgraphql
kinta
klaxon
klock
kloudformation
kmdc
kmm-español
kmongo
knbt
knote
koalaql
koans
kobalt
kobweb
kodein
kodex
kohesive
koin
koin-dev
komapper
kondor-json
kong
kontent
kontributors
korau
korean
korge
korim
korio
korlibs
korte
kotest
kotest-contributors
kotless
kotlick
kotlin-asia
kotlin-beam
kotlin-by-example
kotlin-csv
kotlin-data-storage
kotlin-foundation
kotlin-fuel
kotlin-in-action
kotlin-inject
kotlin-latam
kotlin-logging
kotlin-multiplatform-contest
kotlin-mumbai
kotlin-native
kotlin-pakistan
kotlin-plugin
kotlin-pune
kotlin-roadmap
kotlin-samples
kotlin-sap
kotlin-serbia
kotlin-spark
kotlin-szeged
kotlin-website
kotlinacademy
kotlinbot
kotlinconf
kotlindl
kotlinforbeginners
kotlingforbeginners
kotlinlondon
kotlinmad
kotlinprogrammers
kotlinsu
kotlintest
kotlintest-devs
kotlintlv
kotlinultimatechallenge
kotlinx-datetime
kotlinx-files
kotlinx-html
kotrix
kotson
kovenant
kprompt
kraph
krawler
kroto-plus
ksp
ktcc
ktfmt
ktlint
ktor
ktp
kubed
kug-leads
kug-torino
kvision
kweb
lambdaworld_cadiz
lanark
language-evolution
language-proposals
latvia
leakcanary
leedskotlinusergroup
lets-have-fun
libgdx
libkgd
library-development
linkeddata
lithuania
london
losangeles
lottie
love
lychee
macedonia
machinelearningbawas
madrid
malaysia
mathematics
meetkotlin
memes
meta
metro-detroit
mexico
miami
micronaut
minnesota
minutest
mirror
mockk
moko
moldova
monsterpuzzle
montreal
moonbean
morocco
motionlayout
mpapt
mu
multiplatform
mumbai
munich
mvikotlin
mvrx
myndocs-oauth2-server
naming
navigation-architecture-component
nepal
new-mexico
new-zealand
newname
nigeria
nodejs
norway
npm-publish
nyc
oceania
ohio-kotlin-users
oldenburg
oolong
opensource
orbit-mvi
osgi
otpisani
package-search
pakistan
panamá
pattern-matching
pbandk
pdx
peru
philippines
phoenix
pinoy
pocketgitclient
polish
popkorn
portugal
practical-functional-programming
proguard
prozis-android-backup
pyhsikal
python
python-contributors
quasar
random
re
react
reaktive
realm
realworldkotlin
reductor
reduks
redux
redux-kotlin
refactoring-to-kotlin
reflect
refreshversions
reports
result
rethink
revolver
rhein-main
rocksdb
romania
room
rpi-pico
rsocket
russian
russian_feed
russian-kotlinasfirst
rx
rxjava
san-diego
science
scotland
scrcast
scrimage
script
scripting
seattle
serialization
server
sg-user-group
singapore
skia-wasm-interop-temp
skrape-it
slovak
snake
sofl-user-group
southafrica
spacemacs
spain
spanish
speaking
spek
spin
splitties
spotify-mobius
spring
spring-security
squarelibraries
stackoverflow
stacks
stayhungrystayfoolish
stdlib
stlouis
strife-discord-lib
strikt
students
stuttgart
sudan
swagger-gradle-codegen
swarm
sweden
swing
swiss-user-group
switzerland
talking-kotlin
tallinn
tampa
teamcity
tegal
tempe
tensorflow
terminal
test
testing
testtestest
texas
tgbotapi
thailand
tornadofx
touchlab-tools
training
tricity-kotlin-user-group
trójmiasto
truth
tunisia
turkey
turkiye
twitter-feed
uae
udacityindia
uk
ukrainian
uniflow
unkonf
uruguay
utah
uuid
vancouver
vankotlin
vertx
videos
vienna
vietnam
vim
vkug
vuejs
web-mpp
webassembly
webrtc
wimix_sentry
wwdc
zircon
Powered by Linen
kotlin-native
  • j

    jk2018

    01/08/2020, 1:36 AM
    Question about platform.windows.* . Is there an official doc where we can see which functions are supposed to work? Case in point:
    platform.windows.UuidCreate(...)
    This shows up in auto-complete. And IntelliJ doesn't complain. But the compiler ends up crashing. Also, auto-complete finds some functions which do work, like :
    val tempPath = GetTempPath?.invoke(nBufferLength, buffer)
    .. I'm a bit lost as to what I can expect to work? What's a good place to find a correct definition of what works?
    • 1
    • 1
  • p

    Prateek Grover

    01/08/2020, 10:04 AM
    can Kotlin Native access swift classes and understand them somehow?
    r
    • 2
    • 5
  • b

    Big Chungus

    01/08/2020, 1:17 PM
    Is there a way to set
    linkerOpts
    either in gradle config or
    *.def
    file to be output of
    pkg-config --libs <LIB>
    ?
    d
    • 2
    • 1
  • r

    ribesg

    01/08/2020, 1:55 PM
    I have a problem with
    val
    in
    companion object
    having incorrect value on iOS, anyone saw anything about that? For example I have this in a subclass of
    UICollectionViewCell
    (hence the object superclass):
    companion object : UICollectionViewCellMeta() {
            const val HEIGHT = 100.0
        }
    But when I print the value of
    HEIGHT
    anywhere it has a nonsense value, maybe returning a pointer or reading random memory, it returns something like 6e-310. It also does not return the same value every time its read from different instances of the subclass of
    UICollectionViewCell
    . Wtf? Note: Removing
    const
    doesn’t change anything. No problem if the
    val
    is global, local to the class or a getter (
    val HEIGHT: Double get() = 100.0
    )
    k
    • 2
    • 15
  • b

    Big Chungus

    01/08/2020, 2:37 PM
    Does anyone know why when I build K/N GTK3 app on windows, the normal execution of .exe opens a terminal window as well?
    m
    • 2
    • 3
  • g

    gonzooin

    01/08/2020, 2:44 PM
    message has been deleted
    k
    • 2
    • 3
  • b

    Big Chungus

    01/08/2020, 5:19 PM
    I'm getting
    ld.lld: error: unable to find library -lglib-2.0
    when linking for linux.
    -lglib-2.0
    is one of the linkerOpts. Any suggestions on what's wrong?
    d
    m
    • 3
    • 3
  • b

    Big Chungus

    01/08/2020, 8:47 PM
    From K/N CInterop guide on kotlin webpage:
    We use the staticCFunction{..} helper function from Kotlin/Native to wrap a Kotlin lambda function into a C function pointer. It only allows having unbound and non-capturing lambda functions.
    Could someone elaborate on what it means by
    unbound and non-capturing lambda functions
    . Does it mean that for instance if you want to register callbacks from c they cannot be in a kotlin class, but rather only top-level function?
    k
    • 2
    • 6
  • n

    napperley

    01/08/2020, 9:31 PM
    Will there be a separate Kotlin Native survey for non mobile developers (aka all the other Kotliners using Kotlin Native, which is a very LARGE group)? According to the Kotlin 2019 survey ( https://www.jetbrains.com/lp/devecosystem-2019/kotlin/ ) by JB with the Which platforms do you target? question (in the Kotlin Native section), the top target is Linux at 74% (large), Android at 48%, MacOS at 47%, and Windows at 45%. The iOS answer is significantly smaller at 28% (not very large).
    🤔 1
    a
    k
    • 3
    • 3
  • l

    Lei Wu

    01/09/2020, 8:30 AM
    How to export a “static method” in kotlin to a “class method” in objective-c? I have a object class like this in kotlin:
    object LogUtil {
    
      fun log(message: String) {
        
      }
    }
    but export to ios framework, the class defined like this:
    *__attribute__*((objc_subclassing_restricted))
    *__attribute__*((swift_name("LogUtil")))
    *@interface* CommonLogUtil : KotlinBase
    + (
    *instancetype*)alloc *__attribute__*((unavailable));
    + (
    *instancetype*)allocWithZone:(*struct* _NSZone *)zone *__attribute__*((unavailable));
    + (
    *instancetype*)logUtil *__attribute__*((swift_name("init()")));
    - (
    *void*)logMessage:(NSString *)message *__attribute__*((swift_name("log(message:)")));
    *@end*;
    As code shows that “logMessage” method is not a “class method”, the expected result maybe like this:
    + (*void*)logMessage:(NSString *)message *__attribute__*((swift_name("log(message:)")));
    k
    • 2
    • 3
  • k

    Kavan

    01/09/2020, 4:18 PM
    Why it crash with this
    dispatch("Hello") {
            println("Printing $it from Thread Started \n")
        }
    and not with this ?
    dispatch("Hello") {
            println(it)
            println("Printing from Thread Started \n")
        }
    Code:
    fun <P, T> dispatch(param: P, block: (P) -> T) {
        val ref = StableRef.create(param to block)
        pthread_create(nativeHeap.alloc<pthread_tVar>().ptr, null, staticCFunction { data: COpaquePointer? ->
            data?.asStableRef<Pair<P, (P) -> T>>()?.get()?.let { it.second.invoke(it.first.freeze()) }
            NULL
        }.reinterpret(), ref.asCPointer())
        ref.dispose()
    }
    k
    k
    • 3
    • 70
  • b

    Big Chungus

    01/09/2020, 4:34 PM
    Has anyone encountered this error when linking with gradle plugin?
    Exception in thread "main" org.jetbrains.kotlin.konan.KonanExternalToolFailure:             The /home/mpetuska/.konan/dependencies/clang-llvm-8.0.0-linux-x86-64/bin/clang command returned non-zero exit code: 1.
                output: clang-8: error: no such file or directory: '
    '
    I'm on manjaro linux
    k
    n
    • 3
    • 16
  • j

    jdiaz

    01/10/2020, 2:49 PM
    Has anyone used Linux target with glibc 2.12? I'm having trouble as it's looking for 2.14 and not finding it
    k
    • 2
    • 3
  • j

    jmillner_

    01/10/2020, 3:10 PM
    I’ve made it to step 4 in this guide, but for some reason my Kotlin code is unable to recognise the
    libcurl.*
    import? Even though I have the libcurl.def in the correct nativeInterop sub folder under
    src
    ?
    k
    a
    • 3
    • 59
  • p

    Patrick

    01/10/2020, 3:22 PM
    Is there a way to integrate some .dll files or .exe files into a KN windows binary? Right now I have to include the libraries in the same folder.
    d
    m
    • 3
    • 12
  • k

    Kris Wong

    01/10/2020, 6:45 PM
    are atomicfu classes mutable by any thread?
    k
    b
    • 3
    • 4
  • k

    Kavan

    01/11/2020, 1:00 PM
    Kotlin WorkerPool Implementation Just sharing code so others can use https://redfox.js.org/worker-pool.html
    n
    • 2
    • 1
  • f

    ftomassetti

    01/12/2020, 8:41 AM
    (It is a library for building languages: I use it with ANTLR and the Java target, I would like to use it also with ANTLR and the C++ target)
    d
    n
    • 3
    • 12
  • b

    Big Chungus

    01/12/2020, 11:13 AM
    How can i get something similar to
    private val dispatcher= Executors.newSingleThreadExecutor().asCoroutineDispatcher()
    on native?
    d
    • 2
    • 4
  • b

    Big Chungus

    01/12/2020, 3:52 PM
    How can i go around constant
    kotlin.native.concurrent.InvalidMutabilityException: mutation attempt of frozen
    for any top-level object I declare?
    d
    • 2
    • 2
  • j

    jk2018

    01/12/2020, 7:24 PM
    Got a question about "
    kotlinx.cinterop.staticCFunction
    " when called as a callback from C . (Thread/SO link)
    s
    n
    k
    • 4
    • 5
  • s

    StefMa

    01/13/2020, 7:06 AM
    Does have dependencies have to compile with the same version as the Kotlin version in my project?
    :yes: 4
    • 1
    • 1
  • k

    Kavan

    01/13/2020, 9:20 AM
    Here are most of developers. Asking one silly question. 😅 I need one thing to improve. I'm totally bad in variable naming. Is there any way to improve it ?
    m
    • 2
    • 2
  • m

    Mateusz Konieczny

    01/13/2020, 9:39 AM
    Is it possible to implement a cross-platform GUI using Kotlin/Native? In my case I want to draw some rectangles, nothing more. (at least on Linux on Android, maybe also Windows and iOS) https://cantina.co/kotlin-native-naughty-or-nice/ has "no true cross-platform Kotlin GUI. Without those capabilities, I had to make some compromises. I decided to replace all the UI code with a character-based user interface instead." But maybe it is outdated nowadays?
    b
    k
    • 3
    • 9
  • b

    Big Chungus

    01/13/2020, 10:21 AM
    How can i create an object on worker thread and then reference it again on another worker execution? Trying to implement redux pattern on background worker...
    k
    • 2
    • 9
  • a

    andreasmattsson

    01/13/2020, 10:23 AM
    Could anyone please provide an example of how to call a c-function that takes a va_list argument from Kotlin Native? e.g.
    vsnprintf
    b
    d
    +2
    • 5
    • 22
  • t

    Thomas

    01/13/2020, 10:43 AM
    Does anyone know what the following error means? I tried compiling my Kotlin code as a watchOS framework but I keep getting the following error when running from Xcode.
    a
    • 2
    • 5
  • k

    Kris Wong

    01/13/2020, 4:44 PM
    any guidance on how we should use @ThreadLocal with an object that should be closed?
    k
    • 2
    • 2
  • k

    Kris Wong

    01/13/2020, 5:05 PM
    oi, running into this error in my iOS tests https://github.com/JetBrains/kotlin-native/issues/3219
    t
    • 2
    • 7
  • h

    Holger Steinhauer [Mod]

    01/13/2020, 8:23 PM
    Hey folks. I am playing around with Kotlin Native and hit the wall very early on. Running
    ./gradlew build
    produces a weired error (see stacktrace)
    Unbenannt
    d
    a
    s
    • 4
    • 19
Powered by Linen
Title
h

Holger Steinhauer [Mod]

01/13/2020, 8:23 PM
Hey folks. I am playing around with Kotlin Native and hit the wall very early on. Running
./gradlew build
produces a weired error (see stacktrace)
Unbenannt
My build.gradle looks like that:
plugins {
    id 'org.jetbrains.kotlin.multiplatform' version '1.3.61'
}

repositories {
    mavenCentral()
}

kotlin {
  macosX64("macos") {
    binaries {
      executable{}
    }
  }
  mingwX64("windows") {
    binaries {
      executable{}
    }
  }
}

wrapper {
  gradleVersion = "6.0.1"
  distributionType = "ALL"
}
It doesn’t matter whether I use Java 8 (Oracle) or 11 (OpenJDK)
Yes. I will need a Windows build host for the minwx64. But it doesn’t seem to matter whether it is defined or not
d

Dico

01/14/2020, 12:53 AM
The problem is during compiling macos build, it says invalid argument.
a

Artyom Degtyarev [JB]

01/14/2020, 7:07 AM
We got the same issue reported recently(https://github.com/JetBrains/kotlin-native/issues/3725). Can you try to use different Gradle version? IIRC, there was some problem with 6.0.1, maybe something is wrong there. Also it would be nice if you can extend the report with
--info
output.
h

Holger Steinhauer [Mod]

01/14/2020, 9:39 AM
I'll have a look and will comment on the GitHub oder, thanks @Artyom Degtyarev [JB]
🙏 1
Also, thanks for the clarification, @Dico
@Artyom Degtyarev [JB] So I tried Gradle 6.0.1, 6.0 and 5.6.4. All sho the same issue
Same for version 5.5.1
a

Artyom Degtyarev [JB]

01/14/2020, 2:03 PM
Okay, thanks! And what about
./gradlew compileKotlinMacos --info
? This flag can also help to extract arguments sent to
konanc
, for CLI use - as I mentioned in the issue.
h

Holger Steinhauer [Mod]

01/14/2020, 2:05 PM
Will try in a minute. In the meantime, I commented on the issue and attached the
--info
output from
build
.
🙏 1
👀 1
Here we go:
> Task :compileKotlinMacos FAILED
Caching disabled for task ':compileKotlinMacos' because:
  Build cache is disabled
Task ':compileKotlinMacos' is not up-to-date because:
  Task has failed previously.
file or directory '/Users/holger/projects/customers/Customer 01/20200110 - CSV/repo/src/commonMain/kotlin', not found
file or directory '/Users/holger/projects/customers/Customer 01/20200110 - CSV/repo/src/commonMain/kotlin', not found
Run tool: konanc with args: -g -ea -target macos_x64 -p library -o /Users/holger/projects/customers/Customer 01/20200110 - CSV/repo/build/classes/kotlin/macos/main/repo.klib -Xmulti-platform -no-endorsed-libs /Users/holger/projects/customers/Customer 01/20200110 - CSV/repo/src/macosMain/kotlin/hello.kt
Starting process 'command '/Users/holger/.asdf/installs/java/openjdk-11.0.1/bin/java''. Working directory: /Users/holger/projects/customers/Customer 01/20200110 - CSV/repo Command: /Users/holger/.asdf/installs/java/openjdk-11.0.1/bin/java -Dawt.toolkit=sun.lwawt.macosx.LWCToolkit -Dfile.separator=/ -Dftp.nonProxyHosts=local|*.local|169.254/16|*.169.254/16 -DgopherProxySet=false -Dhttp.nonProxyHosts=local|*.local|169.254/16|*.169.254/16 -Djava.awt.graphicsenv=sun.awt.CGraphicsEnvironment -Djava.awt.printerjob=sun.lwawt.macosx.CPrinterJob -Djava.class.path=/Users/holger/.gradle/wrapper/dists/gradle-5.5.1-bin/cfsov38hb3r1zj4ic9bbjcc7n/gradle-5.5.1/lib/gradle-launcher-5.5.1.jar -Djava.class.version=55.0 -Djava.home=/Users/holger/.asdf/installs/java/openjdk-11.0.1 -Djava.library.path=/Users/holger/.konan/kotlin-native-macos-1.3.61/konan/nativelib -Djava.runtime.name=OpenJDK Runtime Environment -Djava.runtime.version=11.0.1+13 -Djava.specification.name=Java Platform API Specification -Djava.specification.vendor=Oracle Corporation -Djava.specification.version=11 -Djava.vendor=Oracle Corporation -Djava.vendor.url=<http://java.oracle.com/> -Djava.vendor.url.bug=<http://bugreport.java.com/bugreport/> -Djava.vendor.version=18.9 -Djava.version=11.0.1 -Djava.version.date=2018-10-16 -Djava.vm.compressedOopsMode=Zero based -<http://Djava.vm.info|Djava.vm.info>=mixed mode -Djava.vm.name=OpenJDK 64-Bit Server VM -Djava.vm.specification.name=Java Virtual Machine Specification -Djava.vm.specification.vendor=Oracle Corporation -Djava.vm.specification.version=11 -Djava.vm.vendor=Oracle Corporation -Djava.vm.version=11.0.1+13 -Djdk.debug=release -Dkonan.home=/Users/holger/.konan/kotlin-native-macos-1.3.61 -Dkotlin.environment.keepalive=true -Dlibrary.jansi.path=/Users/holger/.gradle/native/jansi/1.17.1/osx -Dline.separator=
 -Dorg.gradle.appname=gradlew -Dorg.jetbrains.kotlin.cliMessageRenderer=GradleStyle -Dos.arch=x86_64 -Dos.name=Mac OS X -Dos.version=10.15.2 -Dpath.separator=: -DsocksNonProxyHosts=local|*.local|169.254/16|*.169.254/16 -Dsun.arch.data.model=64 -Dsun.boot.library.path=/Users/holger/.asdf/installs/java/openjdk-11.0.1/lib -Dsun.cpu.endian=little -Dsun.cpu.isalist -<http://Dsun.io|Dsun.io>.unicode.encoding=UnicodeBig -Dsun.java.command=org.gradle.launcher.daemon.bootstrap.GradleDaemon 5.5.1 -Dsun.java.launcher=SUN_STANDARD -Dsun.jnu.encoding=UTF-8 -Dsun.management.compiler=HotSpot 64-Bit Tiered Compilers -Dsun.os.patch.level=unknown -Duser.dir=/Users/holger/projects/customers/Customer 01/20200110 - CSV/repo -Duser.home=/Users/holger -Duser.name=holger -Duser.timezone -Xmx3G -Dfile.encoding=UTF-8 -<http://Djava.io|Djava.io>.tmpdir=/var/folders/5c/2z1wrqmd00jf2wqgd8c4ytzh0000gn/T/ -Duser.country=GB -Duser.language=en -Duser.variant -ea -cp /Users/holger/.konan/kotlin-native-macos-1.3.61/konan/lib/kotlin-stdlib.jar:/Users/holger/.konan/kotlin-native-macos-1.3.61/konan/lib/klib.jar:/Users/holger/.konan/kotlin-native-macos-1.3.61/konan/lib/Runtime.jar:/Users/holger/.konan/kotlin-native-macos-1.3.61/konan/lib/protobuf-java-2.6.1.jar:/Users/holger/.konan/kotlin-native-macos-1.3.61/konan/lib/shared.jar:/Users/holger/.konan/kotlin-native-macos-1.3.61/konan/lib/kotlin-util-io.jar:/Users/holger/.konan/kotlin-native-macos-1.3.61/konan/lib/kotlin-script-runtime.jar:/Users/holger/.konan/kotlin-native-macos-1.3.61/konan/lib/kotlin-compiler.jar:/Users/holger/.konan/kotlin-native-macos-1.3.61/konan/lib/kotlin-reflect.jar:/Users/holger/.konan/kotlin-native-macos-1.3.61/konan/lib/konan.metadata.jar:/Users/holger/.konan/kotlin-native-macos-1.3.61/konan/lib/kotlin-util-klib.jar:/Users/holger/.konan/kotlin-native-macos-1.3.61/konan/lib/utilities.jar:/Users/holger/.konan/kotlin-native-macos-1.3.61/konan/lib/backend.native.jar:/Users/holger/.konan/kotlin-native-macos-1.3.61/konan/lib/trove4j.jar:/Users/holger/.konan/kotlin-native-macos-1.3.61/konan/lib/StubGenerator.jar:/Users/holger/.konan/kotlin-native-macos-1.3.61/konan/lib/konan.serializer.jar:/Users/holger/.konan/kotlin-native-macos-1.3.61/konan/lib/kotlinx.cli-jvm.jar:/Users/holger/.konan/kotlin-native-macos-1.3.61/konan/lib/kotlin-native-utils.jar:/Users/holger/.konan/kotlin-native-macos-1.3.61/konan/lib/Indexer.jar org.jetbrains.kotlin.cli.utilities.MainKt konanc @/var/folders/5c/2z1wrqmd00jf2wqgd8c4ytzh0000gn/T/konancArgs1107009468518817141.lst
Successfully started process 'command '/Users/holger/.asdf/installs/java/openjdk-11.0.1/bin/java''
e: Invalid argument: -
i: Use -help for more information
:compileKotlinMacos (Thread[Execution worker for ':',5,main]) completed. Took 1.559 secs.

FAILURE: Build failed with an exception.
Hope it helps
a

Artyom Degtyarev [JB]

01/14/2020, 2:11 PM
Yep, I see. The problem is just about whitespace-dash-whitespace in the path. There is
GSM Treuhand/20200110 - CSV/repo/
fragment, compiler supposes that as some kind of empty flag and breaks up. I think it can be fixed with the next release, but for now the quickest solution will be the directory rename. Can you give it a try?
h

Holger Steinhauer [Mod]

01/14/2020, 2:33 PM
Will do
s

sksk

01/14/2020, 3:27 PM
@Holger Steinhauer [Mod] you might want to filter the customer name in your comments, never good idea to publicly show that stuff
h

Holger Steinhauer [Mod]

01/14/2020, 4:19 PM
Good point. Forgot about that, wanted to get this out of the way
Yep, it is due to the spaces and the - in the path
🎉 1
View count: 13