-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve onboarding #52
Comments
I've run into #3 as well... At least twice I've had issues where my command line script says successful build but the binary it copies over does not have my changes. I assumed it to be an Xcode issue as well (and I live in Xcode during the week so maybe I'm predisposed to blame Xcode). But since someone else has the same issue maybe it's worth investigating/noting. |
Xcode seems to be way too happy to rebuild everything even when not needed, but I would not put the blame just yet on it, or on SwiftPM, I might have gotten a dependency wrong or I might be accidentally causing something to trip the dependency checker in the wrong way. I will try to investigate because it is tedious. In the meantime, I did a new 0.4 release with the xcframework which should be slightly less painful, but makes it harder to make changes live to the binding. |
@alicerunsonfedora can you tell me how to get around that? |
Pull the dependency with a specified revision or branch instead: // swift-tools-version: 5.8
import PackageDescription
let package = Package(
name: "Protractor",
platforms: [ ... ],
products: [
.library(
name: "Protractor",
type: .dynamic,
targets: ["Protractor"]),
],
dependencies: [
.package(url: "https://github.com/migueldeicaza/SwiftGodot", branch: "main")
],
targets: [ ... ]
) Alternatively, you can use the prebuilt xcframework with a binary target. |
Another small detail: the |
I don’t think this is the case, as Godot doesn’t seem to care as long as you point to the correct file ame/path when creating the GDExtension file. I use the libXXX.dylib naming in my own projects and they work just fine. |
I can echo this, I have my own name for my dylib file and it works fine. My gdextension file has something like
If I ever get to the point where I am building for more than just my own machine the names might end up more complicated of course. |
Just a quick update regarding these points:
I've just created some tutorials that were merged (see #98) that better explains this process, which should greatly improve the onboarding. I'm not sure when the website version will get updated (or maybe it is already updated), but it should be there for the DocC bundle at the very least. |
Back at my computer: documentation pushed. I might look into automatically generating the docs on pull requests, so I don't need to run this manually, but it is an slow process, so might want to find a way of not doing this on every push. |
Doing it automatically would be nice. I planned to make a PR for that as well, but the current CI runs are failing. Perhaps once we can get the CI checks to pass, this can be done? |
The current build process and README documentation leaves a lot to be desired in terms of flow. In my testing as a first time user, I encountered some friction that could be helped with either an explanation in the README or some changes in the library:
print
weren't available to me, which made it trickier to determine if my scripts were being loaded correctly.I think improving the onboarding process can make working with the library a little easier and less of a developer headache.
The text was updated successfully, but these errors were encountered: