Giter Club home page Giter Club logo

emacs-swift-module's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

emacs-swift-module's Issues

Warnings trigged by loading multiple modules

Thanks for the great package. I have used it developing multiple dynamic modules. However, when I loading the modules constructed with emacs-swift-module, it throws warning as the following:

objc[49686]: Class _TtC16EmacsSwiftModule9LazyHook0 is implemented in both libEMT.dylib (0x12a405080) and libmacime.dylib (0x129ba6f78).

One of the two will be used. Which one is undefined.

I guess it is because the symbol name within two modules are duplicated. And I want to know how to solve the warning.

Any new release?

The package is great, and I'm writing a swift module with it.

However, I found that the commit c776706 fixes a bug (which I encountered in version 1.3.2) related to string conversion. But no new releases are published.

Can we publish a new release 1.3.3 based on commit c776706?

String conversion and DCSCopyTextDefinition

Thanks for this great package. I am already using it for a few functions ported from python + objc.

I had this bug where the output (a string) is different on Emacs than on Swift. The emacs one looks truncated.

try env.defun("get-definition") {
    (phrase: String) -> String? in
    let ns = phrase as NSString
    let range = CFRange(location: 0, length: ns.length)
    guard let definition = DCSCopyTextDefinition(nil, ns, range) else {
        return nil
    }
    let s = String(definition.takeUnretainedValue())
    print(s)
    return s
}

Use get-definition on the word "select" and observe the difference between the return value and what is printed on the console. I could produce this on macOS 13.4 and Swift 5.8.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.