Ryan Loebs
09/12/2021, 9:31 PMsnprintf
to do the actual formatting but I've been unable to find a way to do it. At this point I'm thinking of trying a convoluted approach of writing a C method that I can pass as the initial callback that will do the snprintf in C code, then callback into my kotlin code with the final string.Yaniv Sosnovsky
09/14/2021, 11:06 AMBrian Donovan
09/15/2021, 5:34 PMArkadii Ivanov
09/17/2021, 8:46 PMtimespec
are of type <http://kotlin.Int|kotlin.Int>
for watchosArm64
target, __darwin_time_t
is also defined as <http://kotlin.Int|kotlin.Int>
. Is it by design? Shouldn't it be kotlin.Long
?Joffrey
09/18/2021, 10:09 PMiosTest
(unit tests), but everything is just stuck.
I saw this comment in a very old thread, and I'm thinking maybe it's the same "queue is not run" problem.
Is there anyway for me to run this queue within an iOS unit test? I'm writing a multiplatform library so I don't have an iOS app project.
It looks like I don't have access to NSApplication
there.napperley
09/19/2021, 2:03 AMhfhbd
09/19/2021, 12:01 PMe: Compilation failed: Symbol for public platform.Foundation/NSCopyingProtocol|null[100] is unbound
* Source files:
* Compiler version info: Konan: 1.5.30 / Kotlin: 1.5.30
* Output kind: FRAMEWORK
napperley
09/20/2021, 12:16 AMankushg
09/20/2021, 7:39 PMJames
09/21/2021, 2:56 PMkpgalligan
09/21/2021, 3:42 PMtypedef struct
produces a kotlin definition with package cnames.structs
. I don't think it's possible to change the package used, or I can't find a way in the docs. It works OK on linux, but we have a name collision with a darwin platform struct. It doesn't make a lot of sense to me. They have the same name, but when I navigate to the type in the IDE, the darwin platform type has a different package.
In our code, we import `import cnames.structs.JSContext`and that works for target linuxX64
but not for iosX64
(macosX64
, etc).
Any quick thoughts before I start deep diving? Thanks in advance...kevin.cianfarini
09/22/2021, 6:30 PMcpp-library
. Unfortunately it seems that this grade plugin doesn’t support mixed C/C++ sourcesets for compilation.
So, does Kotlin cintertop work when a header file doesn’t use any C++ features, but the implementation is in C++? Is it even possible to implement a C header files with C++? I’m a total C++ noob. Any help is appreciated 🙂napperley
09/22/2021, 10:17 PMfabianterhorst
09/24/2021, 9:03 AM#import <Foundation/NSBundle.h>
im getting the following error
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSBundle.h:91:143: error: function does not return NSString
i couldn't find anything that would explain this error. The error is also happening when i include
#import <Foundation/Foundation.h>
or
#import <UIKit/UIView.h>
since that all includes all foundation headers internally.Jan
09/24/2021, 5:24 PMC:\Users\jan\.konan\dependencies\msys2-mingw-w64-x86_64-clang-llvm-lld-compiler_rt-8.0.1\bin\ld: cannot find -lcurl
napperley
09/27/2021, 9:10 PMeina_stringshare_replace
function should accept a CPointer<Eina_StringshareVar>? as the first parameter. Instead the function only accepts a CValuesRef<CPointerVar<Eina_StringshareVar>>? as the first parameter.kevin.cianfarini
09/28/2021, 6:06 PMmemScope
would work for this, but I’m unsureansman
09/29/2021, 12:37 AMe: Compilation failed: Symbol for public com.example/Example.stuff.<get-stuff>|-6269057140886526916[0] is unbound
leandro
09/29/2021, 12:35 PM__attribute__((swift_name("Decoder")))
@protocol CommonDecoder
(BOOL)decodeBoolean __attribute__((swift_name("decodeBoolean()")));
- (int8_t)decodeByte __attribute__((swift_name("decodeByte()")));
- (unichar)decodeChar __attribute__((swift_name("decodeChar()")));
- (double)decodeDouble __attribute__((swift_name("decodeDouble()")));
...
@end;
this causes import issues with Swift.Decoder and Swift.Encoder. How can I change the swift_name of this class that I dont own?leandro
09/29/2021, 5:47 PMGavin Ray
09/29/2021, 6:44 PMjw
09/30/2021, 12:47 PMtypedef struct Foo Foo;
winds up as cnames.structs.Foo
whereas typedef struct Foo { ... } Foo;
goes into my.package.Foo
? I'm running into simple name collisions in cnames.structs
which are causing compilation failures only on some native targets.kpgalligan
10/01/2021, 1:03 PMmartmists
10/03/2021, 10:06 AMmartmists
10/03/2021, 10:06 AMmartmists
10/03/2021, 10:15 AMnatario1
10/04/2021, 8:06 PM2021-10-04 21:47:44.065 0-0/? I/playground2.so[20392]: segfault at 0 ip 00000000f52ce047 sp 00000000ffe03130 error 6 in playground2.so[f52ce000+143000]
2021-10-04 21:47:44.068 0-0/? I/Code: 00 00 00 d8 3e 2d 00 00 00 00 00 34 00 20 00 08 00 28 00 28 00 27 00 06 00 00 00 34 00 00 00 34 00 00 00 34 00 00 00 00 01 00 <00> 00 01 00 00 04 00 00 00 04 00 00 00 01 00 00 00 00 00 00 00 00
I'm not experienced in native development, but none of my attempts led anywhere - addr2line gives ??, malloc debugging (here) does nothing. I managed to get a linux core dump and fed it to lldb, but I'm not able to get any information from it.
The same code works perfectly when compiled as a shared library. Any clue on how to dig deeper before filing an issue?spierce7
10/05/2021, 2:19 PMAn operation is not implemented: support enum forward declarations: enum AEPLogLevel
. What can we do?mbonnin
10/06/2021, 12:31 PMTest running process exited unexpectedly.
and the stacktrace. Is it possible to install an uncaught exception handler in a native thread?Landerl Young
10/06/2021, 6:28 PMLanderl Young
10/06/2021, 6:28 PMnapperley
10/07/2021, 1:17 AMLanderl Young
10/07/2021, 4:51 AM