pureswift / dbus Goto Github PK
View Code? Open in Web Editor NEWSwift library for D-Bus
License: MIT License
Swift library for D-Bus
License: MIT License
Running tests on linux fails currently with the following:
DBus$ swift test
Fetching https://github.com/PureSwift/CDBus.git
Completed resolution in 0.62s
Cloning https://github.com/PureSwift/CDBus.git
Resolving https://github.com/PureSwift/CDBus.git at master
Compile Swift Module 'DBus' (18 sources)
Compile Swift Module 'DBusTests' (4 sources)
Compile Swift Module 'DBusPackageTests' (1 sources)
DBus/Tests/LinuxMain.swift:5:5: error: cannot invoke 'testCase' with an argument list of type '([((ObjectPathTests) -> () -> (), String)])'
testCase(ObjectPathTests.allTests),
^
DBus/Tests/LinuxMain.swift:5:5: note: overloads for 'testCase' exist with these partially matching parameter lists: ([(String, (T) -> () throws -> Void)]), ([(String, (T) -> () -> Void)])
testCase(ObjectPathTests.allTests),
^
error: terminated(1): .swiftenv/versions/4.2.1/usr/bin/swift-build-tool -f DBus/.build/debug.yaml test output:
pull request #1 fixes the issue.
Thanks for your helpful library !
I imported and created a DBusConnection on macOS.
let conn = try DBusConnection.init(address: "/tmp/dbus-1AGCwnZNuj", shared: false);
An error occured Fatal error: Unexpectedly found nil while implicitly unwrapping an Optional value
.
It seems that padding1
is nil
which caused this problem.
I changed internal let internalPointer: OpaquePointer?
to fix it.
The situation is that when there is error in connection, the returned pointer is NULL/nil
.
My Swift version is Apple Swift version 5.0.1 (swiftlang-1001.0.82.4 clang-1001.0.46.5) Target: x86_64-apple-darwin18.6.0
.
Thanks in advance !
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.